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:
Robert O'Callahan 2008-11-03 13:53:57 +13:00
parent 4c3aa3c79d
commit cdd65555c6

View File

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