Bug 788044 - Apply the ContainerState offset to ImageLayers. r=roc
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user