From 979f4042d4c54e4fda3bdd863b2bf8b9efc9876a Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Fri, 22 Mar 2013 15:17:29 +1300 Subject: [PATCH] Bug 852489. Part 7: Remove Layer::IntersectClipRect because it's no longer used and it's prone to cause unnecessary Mutateds. r=mattwoodrow --HG-- extra : rebase_source : 45d5365865894f5bf05c1ae41da670e9f28c53bf --- gfx/layers/Layers.h | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/gfx/layers/Layers.h b/gfx/layers/Layers.h index 457a3bc1dc24..4c41b763214c 100644 --- a/gfx/layers/Layers.h +++ b/gfx/layers/Layers.h @@ -733,31 +733,6 @@ public: } } - /** - * CONSTRUCTION PHASE ONLY - * Set a clip rect which will be applied to this layer as it is - * composited to the destination. The coordinates are relative to - * the parent layer (i.e. the contents of this layer - * are transformed before this clip rect is applied). - * For the root layer, the coordinates are relative to the widget, - * in device pixels. - * The provided rect is intersected with any existing clip rect. - */ - void IntersectClipRect(const nsIntRect& aRect) - { - if (mUseClipRect) { - MOZ_LAYERS_LOG_IF_SHADOWABLE(this, ("Layer::Mutated(%p) IntersectClipRect was %d,%d,%d,%d intersecting with %d,%d,%d,%d", this, - mClipRect.x, mClipRect.y, mClipRect.width, mClipRect.height, aRect.x, aRect.y, aRect.width, aRect.height)); - mClipRect.IntersectRect(mClipRect, aRect); - } else { - MOZ_LAYERS_LOG_IF_SHADOWABLE(this, ("Layer::Mutated(%p) IntersectClipRect was intersecting with %d,%d,%d,%d", this, - aRect.x, aRect.y, aRect.width, aRect.height)); - mUseClipRect = true; - mClipRect = aRect; - } - Mutated(); - } - /** * CONSTRUCTION PHASE ONLY * Set a layer to mask this layer.