зеркало из https://github.com/mozilla/pjs.git
make sure that style attributes get the reresolve dance
This commit is contained in:
Родитель
ec5e703948
Коммит
63db255403
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче