Bug 845526 - Limit complexity of invalid region in RemoveFrameFromLayerManager. r=mattwoodrow
This commit is contained in:
@@ -923,6 +923,7 @@ FrameLayerBuilder::RemoveFrameFromLayerManager(nsIFrame* aFrame,
|
|||||||
nsIntRegion rgn = old.ScaleToOutsidePixels(thebesData->mXScale, thebesData->mYScale, thebesData->mAppUnitsPerDevPixel);
|
nsIntRegion rgn = old.ScaleToOutsidePixels(thebesData->mXScale, thebesData->mYScale, thebesData->mAppUnitsPerDevPixel);
|
||||||
rgn.MoveBy(-GetTranslationForThebesLayer(t));
|
rgn.MoveBy(-GetTranslationForThebesLayer(t));
|
||||||
thebesData->mRegionToInvalidate.Or(thebesData->mRegionToInvalidate, rgn);
|
thebesData->mRegionToInvalidate.Or(thebesData->mRegionToInvalidate, rgn);
|
||||||
|
thebesData->mRegionToInvalidate.SimplifyOutward(8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user