Change FlushPendingNotifications to have more granularity and update callers to

only flush the things they really need flushed.  Bug 144072, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@157037 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2004-05-27 22:08:42 +00:00
parent 72154a8082
commit 73690f9d73
62 changed files with 392 additions and 202 deletions

View File

@@ -109,10 +109,13 @@ public:
NS_IMETHOD SetParser(nsIParser* aParser)=0;
/**
* Flush all pending notifications so that the content model
* is in sync with the state of the sink.
* Flush content so that the content model is in sync with the state
* of the sink.
*
* @param aNotify true if notifications should be fired in the
* process (instead of deferred for now).
*/
NS_IMETHOD FlushPendingNotifications()=0;
virtual void FlushContent(PRBool aNotify)=0;
/**
* Set the document character set. This should be passed on to the

View File

@@ -104,7 +104,7 @@ public:
NS_IMETHOD WillInterrupt(void) { return NS_OK; }
NS_IMETHOD WillResume(void) { return NS_OK; }
NS_IMETHOD SetParser(nsIParser* aParser) { return NS_OK; }
NS_IMETHOD FlushPendingNotifications() { return NS_OK; }
virtual void FlushContent(PRBool aNotify) { }
NS_IMETHOD SetDocumentCharset(nsACString& aCharset) { return NS_OK; }
NS_IMETHOD WillProcessTokens(void) { return NS_OK; }
NS_IMETHOD DidProcessTokens(void) { return NS_OK; }

View File

@@ -72,7 +72,7 @@ public:
NS_IMETHOD AddComment(const nsIParserNode& aNode);
NS_IMETHOD AddProcessingInstruction(const nsIParserNode& aNode);
NS_IMETHOD AddDocTypeDecl(const nsIParserNode& aNode);
NS_IMETHOD FlushPendingNotifications() { return NS_OK; }
virtual void FlushContent(PRBool aNotify) { }
NS_IMETHOD SetDocumentCharset(nsACString& aCharset) { return NS_OK; }
NS_IMETHOD NotifyTagObservers(nsIParserNode* aNode) { return NS_OK; }