Bug 840372: Don't let valid regions grow beyond 8 rects. r=roc

This commit is contained in:
Chris Jones 2013-02-12 13:13:16 -08:00
parent 4dcee2ea37
commit 6c35700be5

View File

@ -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,