diff --git a/layout/base/FrameLayerBuilder.cpp b/layout/base/FrameLayerBuilder.cpp index b8c61fb1bf6..0127964c85c 100644 --- a/layout/base/FrameLayerBuilder.cpp +++ b/layout/base/FrameLayerBuilder.cpp @@ -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;