Backed out changeset 68de70a3d9f8 (bug 969591) for assertions.

This commit is contained in:
Ryan VanderMeulen 2014-02-10 11:04:20 -05:00
Родитель 10d2d0183a
Коммит c29dd59eb0
1 изменённых файлов: 1 добавлений и 9 удалений

Просмотреть файл

@ -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<DrawTarget> destDTBuffer;