зеркало из https://github.com/mozilla/gecko-dev.git
Bug 840372 - Don't let valid regions grow beyond 8 rects. r=roc, a=tef+
This commit is contained in:
Родитель
4ea7a9292e
Коммит
182d617af7
|
@ -397,6 +397,10 @@ BasicShadowableThebesLayer::PaintBuffer(gfxContext* aContext,
|
|||
LayerManager::DrawThebesLayerCallback aCallback,
|
||||
void* aCallbackData)
|
||||
{
|
||||
// NB: this just throws away the entire valid region if there are
|
||||
// too many rects.
|
||||
mValidRegion.SimplifyInward(8);
|
||||
|
||||
Base::PaintBuffer(aContext,
|
||||
aRegionToDraw, aExtendedRegionToDraw, aRegionToInvalidate,
|
||||
aDidSelfCopy,
|
||||
|
|
Загрузка…
Ссылка в новой задаче