From 4aad4d442d00c800941dd3deeaf6fc6bb140e192 Mon Sep 17 00:00:00 2001 From: "jst%netscape.com" Date: Tue, 30 Oct 2001 09:58:07 +0000 Subject: [PATCH] Make the signature of nsHTMLDocument::FlushPendingNotifications() match nsIDocument::FlushPendingNotifications() so that callers of the interface method actually call the correct method. No bug. r=peterv@netscape.com, sr=rpotts@netscape.com. Problem found by jkeiser@iname.com git-svn-id: svn://10.0.0.236/trunk@106680 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/html/document/src/nsHTMLDocument.cpp | 6 ++++-- mozilla/content/html/document/src/nsHTMLDocument.h | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/mozilla/content/html/document/src/nsHTMLDocument.cpp b/mozilla/content/html/document/src/nsHTMLDocument.cpp index 9a139700cb2..bb247cbd2fc 100644 --- a/mozilla/content/html/document/src/nsHTMLDocument.cpp +++ b/mozilla/content/html/document/src/nsHTMLDocument.cpp @@ -1246,7 +1246,8 @@ nsHTMLDocument::AttributeChanged(nsIContent* aContent, PRInt32 aNameSpaceID, } NS_IMETHODIMP -nsHTMLDocument::FlushPendingNotifications(PRBool aFlushReflows) +nsHTMLDocument::FlushPendingNotifications(PRBool aFlushReflows, + PRBool aUpdateViews) { // Determine if it is safe to flush the sink // by determining if it safe to flush all the presshells. @@ -1274,7 +1275,8 @@ nsHTMLDocument::FlushPendingNotifications(PRBool aFlushReflows) } if (NS_SUCCEEDED(result)) { - result = nsDocument::FlushPendingNotifications(aFlushReflows); + result = nsDocument::FlushPendingNotifications(aFlushReflows, + aUpdateViews); } return result; diff --git a/mozilla/content/html/document/src/nsHTMLDocument.h b/mozilla/content/html/document/src/nsHTMLDocument.h index 88a5306f533..7ebea0f4ade 100644 --- a/mozilla/content/html/document/src/nsHTMLDocument.h +++ b/mozilla/content/html/document/src/nsHTMLDocument.h @@ -139,7 +139,8 @@ public: PRInt32 aNameSpaceID, nsIAtom* aAttribute); - NS_IMETHOD FlushPendingNotifications(PRBool aFlushReflows = PR_TRUE); + NS_IMETHOD FlushPendingNotifications(PRBool aFlushReflows = PR_TRUE, + PRBool aUpdateViews = PR_FALSE); // nsIDOMDocument interface NS_DECL_NSIDOMDOCUMENT