Bug 845526 - Limit complexity of invalid region in RemoveFrameFromLayerManager. r=mattwoodrow

This commit is contained in:
Robert O'Callahan
2013-03-02 12:21:00 -05:00
parent 555fd1a835
commit c9169ed15c

View File

@@ -923,6 +923,7 @@ FrameLayerBuilder::RemoveFrameFromLayerManager(nsIFrame* aFrame,
nsIntRegion rgn = old.ScaleToOutsidePixels(thebesData->mXScale, thebesData->mYScale, thebesData->mAppUnitsPerDevPixel);
rgn.MoveBy(-GetTranslationForThebesLayer(t));
thebesData->mRegionToInvalidate.Or(thebesData->mRegionToInvalidate, rgn);
thebesData->mRegionToInvalidate.SimplifyOutward(8);
}
}