зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
5fb743947b
Коммит
900115d2fc
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче