Make CSSStyleRuleImpl immutable by changing mutation code (including some merging of code between nsDOMCSSAttributeDeclaration and DOMCSSDeclarationImpl) so that it creates a new rule for the modified declaration. Change StyleRuleChanged notification signatures, and change pres shell's handling of style rule change, addition, and removal to just do reresolution. Remove fine-grained ways of clearing style data. Change PeekStyleData so it doesn't do more work than it needs to, and can be relied on not to access rules that no longer match any content. b=188803 r+sr=bzbarsky

git-svn-id: svn://10.0.0.236/trunk@143831 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%dbaron.org
2003-06-18 01:59:57 +00:00
parent 9580a2dcbb
commit 906d582953
49 changed files with 1063 additions and 1552 deletions

View File

@@ -5448,7 +5448,8 @@ HTMLContentSink::StyleSheetApplicableStateChanged(nsIDocument *aDocument,
NS_IMETHODIMP
HTMLContentSink::StyleRuleChanged(nsIDocument *aDocument,
nsIStyleSheet* aStyleSheet,
nsIStyleRule* aStyleRule, nsChangeHint aHint)
nsIStyleRule* aOldStyleRule,
nsIStyleRule* aNewStyleRule)
{
return NS_OK;
}