perf bug 124570 - configure mathml.css as a catalog stylesheet that is loaded on demand rather than at startup, r=harishd, sr=jst, a=asa

git-svn-id: svn://10.0.0.236/trunk@116637 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rbs%maths.uq.edu.au
2002-03-15 09:45:31 +00:00
parent a8b2d64408
commit 84d6bd5d71
23 changed files with 474 additions and 363 deletions

View File

@@ -477,7 +477,7 @@ nsHTMLDocument::BaseResetToURI(nsIURI *aURL)
result = mAttrStyleSheet->Reset(aURL);
}
if (NS_SUCCEEDED(result)) {
AddStyleSheet(mAttrStyleSheet); // tell the world about our new style sheet
AddStyleSheet(mAttrStyleSheet, 0); // tell the world about our new style sheet
if (!mStyleAttrStyleSheet) {
result = NS_NewHTMLCSSStyleSheet(&mStyleAttrStyleSheet, aURL, this);
@@ -486,7 +486,7 @@ nsHTMLDocument::BaseResetToURI(nsIURI *aURL)
result = mStyleAttrStyleSheet->Reset(aURL);
}
if (NS_SUCCEEDED(result)) {
AddStyleSheet(mStyleAttrStyleSheet); // tell the world about our new style sheet
AddStyleSheet(mStyleAttrStyleSheet, 0); // tell the world about our new style sheet
}
}
}
@@ -1161,8 +1161,9 @@ nsHTMLDocument::GetInlineStyleSheet(nsIHTMLCSSStyleSheet** aResult)
return NS_OK;
}
// subclass hooks for sheet ordering
void
nsHTMLDocument::InternalAddStyleSheet(nsIStyleSheet* aSheet) // subclass hook for sheet ordering
nsHTMLDocument::InternalAddStyleSheet(nsIStyleSheet* aSheet, PRUint32 aFlags)
{
if (aSheet == mAttrStyleSheet) { // always first
mStyleSheets.InsertElementAt(aSheet, 0);