make sure that style attributes get the reresolve dance

This commit is contained in:
shaver%mozilla.org 2000-05-16 22:05:47 +00:00
Родитель ec5e703948
Коммит 63db255403
2 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -42,6 +42,7 @@
#include "nsDST.h" #include "nsDST.h"
#include "nsPlaceholderFrame.h" #include "nsPlaceholderFrame.h"
#include "nsLayoutAtoms.h" #include "nsLayoutAtoms.h"
#include "nsHTMLAtoms.h"
#ifdef NS_DEBUG #ifdef NS_DEBUG
#include "nsISupportsArray.h" #include "nsISupportsArray.h"
#include "nsIStyleRule.h" #include "nsIStyleRule.h"
@ -1392,6 +1393,10 @@ NS_IMETHODIMP
FrameManager::AttributeAffectsStyle(nsIAtom *aAttribute, nsIContent *aContent, FrameManager::AttributeAffectsStyle(nsIAtom *aAttribute, nsIContent *aContent,
PRBool &aAffects) PRBool &aAffects)
{ {
if (aAttribute == nsHTMLAtoms::style) {
aAffects = PR_TRUE;
return NS_OK;
}
return mStyleSet->AttributeAffectsStyle(aAttribute, aContent, aAffects); return mStyleSet->AttributeAffectsStyle(aAttribute, aContent, aAffects);
} }

Просмотреть файл

@ -42,6 +42,7 @@
#include "nsDST.h" #include "nsDST.h"
#include "nsPlaceholderFrame.h" #include "nsPlaceholderFrame.h"
#include "nsLayoutAtoms.h" #include "nsLayoutAtoms.h"
#include "nsHTMLAtoms.h"
#ifdef NS_DEBUG #ifdef NS_DEBUG
#include "nsISupportsArray.h" #include "nsISupportsArray.h"
#include "nsIStyleRule.h" #include "nsIStyleRule.h"
@ -1392,6 +1393,10 @@ NS_IMETHODIMP
FrameManager::AttributeAffectsStyle(nsIAtom *aAttribute, nsIContent *aContent, FrameManager::AttributeAffectsStyle(nsIAtom *aAttribute, nsIContent *aContent,
PRBool &aAffects) PRBool &aAffects)
{ {
if (aAttribute == nsHTMLAtoms::style) {
aAffects = PR_TRUE;
return NS_OK;
}
return mStyleSet->AttributeAffectsStyle(aAttribute, aContent, aAffects); return mStyleSet->AttributeAffectsStyle(aAttribute, aContent, aAffects);
} }