From c1ea1bd2c2b257c0503a092c723088293307c12e Mon Sep 17 00:00:00 2001 From: "roc+@cs.cmu.edu" Date: Tue, 1 Apr 2008 15:30:58 -0700 Subject: [PATCH] Bug 415789. nsWebBrowser needs to return a non-ignore status when it paints to ensure that the painting is actually committed. r=vlad --- embedding/browser/webBrowser/nsWebBrowser.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/embedding/browser/webBrowser/nsWebBrowser.cpp b/embedding/browser/webBrowser/nsWebBrowser.cpp index acbab66c390..57119d91356 100644 --- a/embedding/browser/webBrowser/nsWebBrowser.cpp +++ b/embedding/browser/webBrowser/nsWebBrowser.cpp @@ -1645,16 +1645,15 @@ NS_IMETHODIMP nsWebBrowser::EnsureDocShellTreeOwner() /* static */ nsEventStatus PR_CALLBACK nsWebBrowser::HandleEvent(nsGUIEvent *aEvent) { - nsEventStatus result = nsEventStatus_eIgnore; nsWebBrowser *browser = nsnull; void *data = nsnull; if (!aEvent->widget) - return result; + return nsEventStatus_eIgnore; aEvent->widget->GetClientData(data); if (!data) - return result; + return nsEventStatus_eIgnore; browser = static_cast(data); @@ -1694,16 +1693,14 @@ nsEventStatus PR_CALLBACK nsWebBrowser::HandleEvent(nsGUIEvent *aEvent) rc->FillRect(r); } rc->SetColor(oldColor); - break; + return nsEventStatus_eConsumeDoDefault; } default: break; } - return result; - - + return nsEventStatus_eIgnore; } NS_IMETHODIMP nsWebBrowser::GetPrimaryContentWindow(nsIDOMWindowInternal **aDOMWindow)