Bug 1022612. Part 43: Fix up SuppressComponentAlpha to allow component alpha in inactive layers over opaque parts of the chrome window. r=mattwoodrow

This commit is contained in:
Robert O'Callahan
2014-07-15 16:23:37 +12:00
parent 21b91ec109
commit 57770a1fe3
4 changed files with 32 additions and 30 deletions

View File

@@ -3019,7 +3019,7 @@ nsLayoutUtils::PaintFrame(nsRenderingContext* aRenderingContext, nsIFrame* aFram
!(aFlags & PAINT_DOCUMENT_RELATIVE)) {
nsIWidget *widget = aFrame->GetNearestWidget();
if (widget) {
nsRegion excludedRegion = builder.GetExcludedGlassRegion();
nsRegion excludedRegion = builder.GetWindowOpaqueRegion();
nsIntRegion windowRegion(excludedRegion.ToNearestPixels(presContext->AppUnitsPerDevPixel()));
widget->UpdateOpaqueRegion(windowRegion);
}