From b17bdef02101608cbd0df21be3986c774d032bd4 Mon Sep 17 00:00:00 2001 From: Botond Ballo Date: Thu, 11 Sep 2014 13:49:38 -0400 Subject: [PATCH] Bug 1065008 - Consider the shadow transform when computing the opaque rect to use for culling. r=roc --HG-- extra : rebase_source : 2b162f272016193e2af3316c9f18d37125050863 --- gfx/layers/composite/ContainerLayerComposite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/layers/composite/ContainerLayerComposite.cpp b/gfx/layers/composite/ContainerLayerComposite.cpp index f025b1e113c..000355482b4 100644 --- a/gfx/layers/composite/ContainerLayerComposite.cpp +++ b/gfx/layers/composite/ContainerLayerComposite.cpp @@ -57,7 +57,7 @@ GetOpaqueRect(Layer* aLayer) { nsIntRect result; gfx::Matrix matrix; - bool is2D = aLayer->GetBaseTransform().Is2D(&matrix); + bool is2D = aLayer->AsLayerComposite()->GetShadowTransform().Is2D(&matrix); // Just bail if there's anything difficult to handle. if (!is2D || aLayer->GetMaskLayer() ||