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

This commit is contained in:
rbs@maths.uq.edu.au
2002-03-15 09:45:31 +00:00
parent 9bee89944c
commit dc1ee94282
23 changed files with 474 additions and 363 deletions

View File

@@ -122,7 +122,8 @@ public:
NS_DECL_NSIDOMXMLDOCUMENT
protected:
virtual void InternalAddStyleSheet(nsIStyleSheet* aSheet); // subclass hook for sheet ordering
// subclass hooks for sheet ordering
virtual void InternalAddStyleSheet(nsIStyleSheet* aSheet, PRUint32 aFlags);
virtual void InternalInsertStyleSheetAt(nsIStyleSheet* aSheet, PRInt32 aIndex);
nsresult CreateElement(nsINodeInfo *aNodeInfo, nsIDOMElement** aResult);
@@ -131,6 +132,10 @@ protected:
// XXX This is not clean, but is there a better way?
nsIHTMLStyleSheet* mAttrStyleSheet;
nsIHTMLCSSStyleSheet* mInlineStyleSheet;
// For additional catalog sheets (if any) needed to layout the XML vocabulary
// of the document. Catalog sheets are kept at the beginning of our array of
// style sheets and this counter is used as an offset to distinguish them
PRInt32 mCountCatalogSheets;
nsString mBaseTarget;
nsIParser *mParser;