From c29dd59eb0618258efadecc3ba26d41e04ab6567 Mon Sep 17 00:00:00 2001 From: Ryan VanderMeulen Date: Mon, 10 Feb 2014 11:04:20 -0500 Subject: [PATCH] Backed out changeset 68de70a3d9f8 (bug 969591) for assertions. --- gfx/layers/RotatedBuffer.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/gfx/layers/RotatedBuffer.cpp b/gfx/layers/RotatedBuffer.cpp index 79a0661e1dd4..8476c16b2ad0 100644 --- a/gfx/layers/RotatedBuffer.cpp +++ b/gfx/layers/RotatedBuffer.cpp @@ -503,16 +503,8 @@ RotatedContentBuffer::BeginPaint(ThebesLayer* aLayer, // or call CreateBuffer before this call. FinalizeFrame(result.mRegionToDraw); - // Have some cases where the region to draw is empty, - // but the needed region is not empty, so we still need to allocate - // a clean buffer for those cases. If everything is empty, then clear out - // the buffers. - if (result.mRegionToDraw.IsEmpty() && canReuseBuffer) { - if (neededRegion.IsEmpty()) { - Clear(); - } + if (result.mRegionToDraw.IsEmpty()) return result; - } nsIntRect drawBounds = result.mRegionToDraw.GetBounds(); RefPtr destDTBuffer;