diff --git a/layout/painting/FrameLayerBuilder.cpp b/layout/painting/FrameLayerBuilder.cpp index 87a46823381b..3bdd2ab0587b 100644 --- a/layout/painting/FrameLayerBuilder.cpp +++ b/layout/painting/FrameLayerBuilder.cpp @@ -5741,7 +5741,6 @@ FrameLayerBuilder::AddPaintedDisplayItem(PaintedLayerData* aLayerData, layer->GetUserData(&gPaintedDisplayItemLayerUserData)); RefPtr tempManager; nsIntRect intClip; - bool hasClip = false; if (aItem.mLayerState != LAYER_NONE) { if (aItem.mDisplayItemData) { tempManager = aItem.mDisplayItemData->mInactiveManager; @@ -5903,10 +5902,6 @@ FrameLayerBuilder::AddPaintedDisplayItem(PaintedLayerData* aLayerData, invalid.ScaleRoundOut(paintedData->mXScale, paintedData->mYScale); - if (hasClip) { - invalid.And(invalid, intClip); - } - InvalidatePostTransformRegion( layer, invalid, GetTranslationForPaintedLayer(layer)); }