From 90bfe7361a08bc77a3ca0810a650adc0813f8cb9 Mon Sep 17 00:00:00 2001 From: Jeff Muizelaar Date: Mon, 2 Jun 2014 11:05:01 -0400 Subject: [PATCH] Bug 1018416. Inline TransformRegion. --HG-- rename : dom/datastore/tests/test_bug957086.html => dom/datastore/tests/test_basic.html extra : rebase_source : ab175afb006c0f6ebb02863f510b6fdc6e578f3c --- gfx/layers/LayerTreeInvalidation.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/gfx/layers/LayerTreeInvalidation.cpp b/gfx/layers/LayerTreeInvalidation.cpp index 567171a9766c..92df53404fb2 100644 --- a/gfx/layers/LayerTreeInvalidation.cpp +++ b/gfx/layers/LayerTreeInvalidation.cpp @@ -69,14 +69,6 @@ AddRegion(nsIntRegion& aDest, const nsIntRegion& aSource) aDest.SimplifyOutward(20); } - -static nsIntRegion -TransformRegion(nsIntRegion& aRegion, const gfx3DMatrix& aTransform) -{ - aRegion.Transform(aTransform); - return aRegion; -} - /** * Walks over this layer, and all descendant layers. * If any of these are a ContainerLayer that reports invalidations to a PresShell, @@ -325,7 +317,8 @@ struct ContainerLayerProperties : public LayerPropertiesBase gfx3DMatrix transform; gfx::To3DMatrix(mLayer->GetTransform(), transform); - return TransformRegion(result, transform); + result.Transform(transform); + return result; } // The old list of children: