From 49d82fd22e43457703e2da676b89d53c7d6923fc Mon Sep 17 00:00:00 2001 From: Benoit Girard Date: Thu, 27 Aug 2015 18:29:37 -0400 Subject: [PATCH] Backout d4985245dfd55ba44e0417c42c956e03d094b0df (bug 1136766) for talos regression --HG-- extra : commitid : FLbaQb0zd8o extra : rebase_source : 2d1a6691cadd24d46da7b65971bcd0818b1f75f6 --- gfx/layers/composite/LayerManagerComposite.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gfx/layers/composite/LayerManagerComposite.cpp b/gfx/layers/composite/LayerManagerComposite.cpp index 92042f531922..f218bf2969b5 100644 --- a/gfx/layers/composite/LayerManagerComposite.cpp +++ b/gfx/layers/composite/LayerManagerComposite.cpp @@ -226,11 +226,7 @@ LayerManagerComposite::ApplyOcclusionCulling(Layer* aLayer, nsIntRegion& aOpaque LayerComposite *composite = aLayer->AsLayerComposite(); if (!localOpaque.IsEmpty()) { nsIntRegion visible = composite->GetShadowVisibleRegion(); - nsIntRegion afterCulling; - afterCulling.Sub(visible, localOpaque); - // Intersect the original region with the bounds of the culled region so - // that we don't increase the region's complexity. - visible.AndWith(afterCulling.GetBounds()); + visible.Sub(visible, localOpaque); composite->SetShadowVisibleRegion(visible); }