mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-10 22:09:32 +00:00
Bug 186835: Hold off notifying that the transformation is finished until all stylesheets are loaded.
r=peterv sr=bz
This commit is contained in:
parent
99148e01cf
commit
148610be37
@ -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<nsIDOMHTMLScriptElement> mScriptElements;
|
||||
nsCOMArray<nsIStyleSheet> mStylesheets;
|
||||
|
||||
nsAutoString mText;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user