зеркало из https://github.com/mozilla/gecko-dev.git
Bug 845526 - Limit complexity of invalid region in RemoveFrameFromLayerManager. r=mattwoodrow
This commit is contained in:
Родитель
5ccdbadacb
Коммит
8f9549d254
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче