Backed out changeset d89ec5b69c01 (bug 1076825)
authorRyan VanderMeulen <ryanvm@gmail.com>
Fri, 10 Oct 2014 12:09:09 -0400
changeset 290437 1233c159ab6da5118ee8199518415a74024d895b
parent 290436 1dd4fb21d976476fdcefcd9d6296fc5183a6edc0
child 290438 6b3eed2174251a416569ceae2575bc0caf7f8759
push id218
push userryanvm@gmail.com
push dateWed, 16 Dec 2015 22:58:33 +0000
bugs1076825
milestone33.0
backs outd89ec5b69c012c74e975fc90500c477af3e921db
Backed out changeset d89ec5b69c01 (bug 1076825)
gfx/layers/RotatedBuffer.cpp
--- a/gfx/layers/RotatedBuffer.cpp
+++ b/gfx/layers/RotatedBuffer.cpp
@@ -712,22 +712,16 @@ RotatedContentBuffer::BorrowDrawTargetFo
   }
   if (result->GetBackendType() == BackendType::DIRECT2D ||
       result->GetBackendType() == BackendType::DIRECT2D1_1) {
     drawPtr->SimplifyOutwardByArea(100 * 100);
   }
 
   if (aPaintState.mMode == SurfaceMode::SURFACE_COMPONENT_ALPHA) {
     MOZ_ASSERT(mDTBuffer && mDTBufferOnWhite);
-    if (!mDTBuffer || !mDTBufferOnWhite) {
-      // This can happen in release builds if allocating one of the two buffers
-      // failed. This is pretty bad and the reason for the failure is already
-      // reported through gfxCriticalError.
-      return nullptr;
-    }
     nsIntRegionRectIterator iter(*drawPtr);
     const nsIntRect *iterRect;
     while ((iterRect = iter.Next())) {
       mDTBuffer->FillRect(Rect(iterRect->x, iterRect->y, iterRect->width, iterRect->height),
                           ColorPattern(Color(0.0, 0.0, 0.0, 1.0)));
       mDTBufferOnWhite->FillRect(Rect(iterRect->x, iterRect->y, iterRect->width, iterRect->height),
                                  ColorPattern(Color(1.0, 1.0, 1.0, 1.0)));
     }