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
Родитель 5fb743947b
Коммит 900115d2fc
1 изменённых файлов: 0 добавлений и 7 удалений

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

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