Bug 1065008 - Consider the shadow transform when computing the opaque rect to use for culling. r=roc

--HG--
extra : rebase_source : 2b162f272016193e2af3316c9f18d37125050863
This commit is contained in:
Botond Ballo 2014-09-11 13:49:38 -04:00
parent 2433795f24
commit b17bdef021

View File

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