diff --git a/layout/base/nsFrameManager.cpp b/layout/base/nsFrameManager.cpp index be5948b94cc..5391fbc34b4 100644 --- a/layout/base/nsFrameManager.cpp +++ b/layout/base/nsFrameManager.cpp @@ -42,6 +42,7 @@ #include "nsDST.h" #include "nsPlaceholderFrame.h" #include "nsLayoutAtoms.h" +#include "nsHTMLAtoms.h" #ifdef NS_DEBUG #include "nsISupportsArray.h" #include "nsIStyleRule.h" @@ -1392,6 +1393,10 @@ NS_IMETHODIMP FrameManager::AttributeAffectsStyle(nsIAtom *aAttribute, nsIContent *aContent, PRBool &aAffects) { + if (aAttribute == nsHTMLAtoms::style) { + aAffects = PR_TRUE; + return NS_OK; + } return mStyleSet->AttributeAffectsStyle(aAttribute, aContent, aAffects); } diff --git a/layout/html/base/src/nsFrameManager.cpp b/layout/html/base/src/nsFrameManager.cpp index be5948b94cc..5391fbc34b4 100644 --- a/layout/html/base/src/nsFrameManager.cpp +++ b/layout/html/base/src/nsFrameManager.cpp @@ -42,6 +42,7 @@ #include "nsDST.h" #include "nsPlaceholderFrame.h" #include "nsLayoutAtoms.h" +#include "nsHTMLAtoms.h" #ifdef NS_DEBUG #include "nsISupportsArray.h" #include "nsIStyleRule.h" @@ -1392,6 +1393,10 @@ NS_IMETHODIMP FrameManager::AttributeAffectsStyle(nsIAtom *aAttribute, nsIContent *aContent, PRBool &aAffects) { + if (aAttribute == nsHTMLAtoms::style) { + aAffects = PR_TRUE; + return NS_OK; + } return mStyleSet->AttributeAffectsStyle(aAttribute, aContent, aAffects); }