зеркало из https://github.com/mozilla/pjs.git
Bug 415789. nsWebBrowser needs to return a non-ignore status when it paints to ensure that the painting is actually committed. r=vlad
This commit is contained in:
Родитель
67e18da504
Коммит
c1ea1bd2c2
|
@ -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<nsWebBrowser *>(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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче