Backing out unapproved checkin for bug 97227. a=brendan,blizzard
git-svn-id: svn://10.0.0.236/trunk@102064 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -40,10 +40,6 @@
|
||||
#include "nsIXULBrowserWindow.h"
|
||||
#include "nsPIDOMWindow.h"
|
||||
|
||||
// Needed for nsIDocument::FlushPendingNotifications(...)
|
||||
#include "nsIDOMDocument.h"
|
||||
#include "nsIDocument.h"
|
||||
|
||||
// CIDs
|
||||
static NS_DEFINE_CID(kWindowMediatorCID, NS_WINDOWMEDIATOR_CID);
|
||||
|
||||
@@ -342,24 +338,7 @@ NS_IMETHODIMP nsContentTreeOwner::SetStatus(PRUint32 aStatusType, const PRUnicha
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Force pending notifications to be processed immediately... This
|
||||
// causes the status message to be displayed synchronously.
|
||||
//
|
||||
// XXX: This is nasty because we have to drill down to the nsIDocument to
|
||||
// force the flushing...
|
||||
//
|
||||
nsCOMPtr<nsIDOMDocument> domDoc;
|
||||
nsCOMPtr<nsIDocument> doc;
|
||||
|
||||
domWindow->GetDocument(getter_AddRefs(domDoc));
|
||||
doc = do_QueryInterface(domDoc);
|
||||
|
||||
if (doc) {
|
||||
doc->FlushPendingNotifications(PR_TRUE, PR_TRUE);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsContentTreeOwner::SetWebBrowser(nsIWebBrowser* aWebBrowser)
|
||||
|
||||
Reference in New Issue
Block a user