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 529f1dc146
commit 65c75afdfb

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;