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
Родитель 5ccdbadacb
Коммит 8f9549d254
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -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);
} }
} }