Move things that aren't author stylesheets out of nsDocument's mStyleSheets array to simplify stylesheet management code. Add a level of the cascade for style attributes and ensure that there's only one rule processor per level of the cascade, and simplify the logic of nsCSSRuleProcessor creation. b=252578 r+sr=bzbarsky

This commit is contained in:
dbaron@dbaron.org
2004-07-28 07:08:41 +00:00
parent 5c1c1d2421
commit 08d6baff75
46 changed files with 767 additions and 1091 deletions

View File

@@ -499,15 +499,6 @@ nsHTMLStyleSheet::~nsHTMLStyleSheet()
NS_IMPL_ISUPPORTS2(nsHTMLStyleSheet, nsIStyleSheet, nsIStyleRuleProcessor)
NS_IMETHODIMP
nsHTMLStyleSheet::GetStyleRuleProcessor(nsIStyleRuleProcessor*& aProcessor,
nsIStyleRuleProcessor* /*aPrevProcessor*/)
{
aProcessor = this;
NS_ADDREF(aProcessor);
return NS_OK;
}
static nsresult GetBodyColor(nsIPresContext* aPresContext, nscolor* aColor)
{
nsCOMPtr<nsIDocument> doc;