diff --git a/gfx/layers/basic/BasicThebesLayer.cpp b/gfx/layers/basic/BasicThebesLayer.cpp index 0785ad50cc5..158c42d2bd0 100644 --- a/gfx/layers/basic/BasicThebesLayer.cpp +++ b/gfx/layers/basic/BasicThebesLayer.cpp @@ -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,