Bug 542337 - '[OOPP] hang in test_plugin_clipping2.xhtml' Followup fix, r=roc.

This commit is contained in:
Ben Turner 2010-01-28 12:23:07 -08:00
parent d3e3951be9
commit bbc4e6332d

View File

@ -549,7 +549,10 @@ nsresult nsPluginNativeWindowWin::SubclassAndAssociateWindow()
// Out of process plugins must not have the WS_CLIPCHILDREN style set on their
// parent windows or else synchronous paints (via UpdateWindow() and others)
// will cause deadlocks.
style &= ~WS_CLIPCHILDREN;
if (::GetPropW(hWnd, L"PluginInstanceParentProperty"))
style &= ~WS_CLIPCHILDREN;
else
style |= WS_CLIPCHILDREN;
#else
style |= WS_CLIPCHILDREN;
#endif