mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 653994. Avoid trying to paint plugin widgets in the case where a plugin fails to subclass our window. r=bsmedberg
This commit is contained in:
parent
e93f14bea3
commit
be76e09cf5
@ -253,9 +253,15 @@ bool nsWindow::OnPaint(HDC aDC, PRUint32 aNestingLevel)
|
||||
::GetPropW(mWnd, L"PluginInstanceParentProperty"));
|
||||
if (instance) {
|
||||
instance->CallUpdateWindow();
|
||||
ValidateRect(mWnd, NULL);
|
||||
return true;
|
||||
} else {
|
||||
// We should never get here since in-process plugins should have
|
||||
// subclassed our HWND and handled WM_PAINT, but in some cases that
|
||||
// could fail. Return without asserting since it's not our fault.
|
||||
NS_WARNING("Plugin failed to subclass our window");
|
||||
}
|
||||
|
||||
ValidateRect(mWnd, NULL);
|
||||
return true;
|
||||
}
|
||||
|
||||
nsPaintEvent willPaintEvent(true, NS_WILL_PAINT, this);
|
||||
|
Loading…
Reference in New Issue
Block a user