mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 458928. Reparenting hack to ensure plugins are fully painted to non-screen targets is evil and probably breaking things; back it out. r+sr=jst
This commit is contained in:
parent
4c3aa3c79d
commit
cdd65555c6
@ -1549,14 +1549,7 @@ nsObjectFrame::PaintPlugin(nsIRenderingContext& aRenderingContext,
|
||||
new gfxWindowsSurface(gfxIntSize(rc.right - rc.left, rc.bottom - rc.top));
|
||||
|
||||
if (surface && printProc) {
|
||||
// CAUTION: EVIL AHEAD
|
||||
// We have to temporarily make hwnd a top-level window so that
|
||||
// PrintWindow won't clip it
|
||||
HWND parent = ::GetParent(hwnd);
|
||||
::SetParent(hwnd, NULL);
|
||||
printProc(hwnd, surface->GetDC(), 0);
|
||||
::SetParent(hwnd, parent);
|
||||
// END EVIL
|
||||
|
||||
ctx->Translate(frameGfxRect.pos);
|
||||
ctx->SetSource(surface);
|
||||
|
Loading…
Reference in New Issue
Block a user