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
This commit is contained in:
Robert O'Callahan 2013-03-22 15:17:29 +13:00
parent 1f73e74382
commit 979f4042d4

View File

@ -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 <none> 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.