From 148610be37f4729e5507f46195b2e60e9da593fa Mon Sep 17 00:00:00 2001 From: "sicking%bigfoot.com" Date: Wed, 2 Nov 2005 07:39:15 +0000 Subject: [PATCH] Bug 186835: Hold off notifying that the transformation is finished until all stylesheets are loaded. r=peterv sr=bz --- content/xslt/src/xslt/txMozillaXMLOutput.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/content/xslt/src/xslt/txMozillaXMLOutput.h b/content/xslt/src/xslt/txMozillaXMLOutput.h index 86896690b6d2..96284fdbd189 100644 --- a/content/xslt/src/xslt/txMozillaXMLOutput.h +++ b/content/xslt/src/xslt/txMozillaXMLOutput.h @@ -50,9 +50,11 @@ #include "nsWeakPtr.h" #include "txOutputFormat.h" #include "nsCOMArray.h" +#include "nsICSSLoaderObserver.h" class txMozillaXMLOutput : public txIOutputXMLEventHandler, - public nsIScriptLoaderObserver + public nsIScriptLoaderObserver, + public nsICSSLoaderObserver { public: txMozillaXMLOutput(const String& aRootName, @@ -67,6 +69,9 @@ public: NS_DECL_ISUPPORTS NS_DECL_NSISCRIPTLOADEROBSERVER + + // nsICSSLoaderObserver + NS_IMETHOD StyleSheetLoaded(nsICSSStyleSheet* aSheet, PRBool aNotify); /** * Signals to receive the start of an attribute. @@ -153,14 +158,6 @@ public: void startElement(const String& aName, const PRInt32 aNsID); - /** - * Removes a script element from the array of elements that are - * still loading. - * - * @param aReturn the script element to remove - */ - void removeScriptElement(nsIDOMHTMLScriptElement *aElement); - /** * Gets the Mozilla output document * @@ -192,6 +189,7 @@ private: nsCString mRefreshString; nsCOMArray mScriptElements; + nsCOMArray mStylesheets; nsAutoString mText;