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:
roc+@cs.cmu.edu 2008-04-01 15:30:58 -07:00
Родитель 67e18da504
Коммит c1ea1bd2c2
1 изменённых файлов: 4 добавлений и 7 удалений

Просмотреть файл

@ -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)