Bug 788044 - Apply the ContainerState offset to ImageLayers. r=roc

This commit is contained in:
Matt Woodrow
2012-09-24 14:56:39 +12:00
parent 282654ae2e
commit 8ba982c78c

View File

@@ -1373,6 +1373,7 @@ ContainerState::PopThebesLayerData()
mParameters.mYScale);
if (data->mItemClip.mHaveClipRect) {
nsIntRect clip = ScaleToNearestPixels(data->mItemClip.mClipRect);
clip.MoveBy(mParameters.mOffset);
imageLayer->IntersectClipRect(clip);
}
layer = imageLayer;