Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
This commit is contained in:
@@ -805,7 +805,7 @@ BasicLayerManager::PaintLayer(gfxContext* aTarget,
|
||||
gfxMatrix transform;
|
||||
// Will return an identity matrix for 3d transforms, and is handled separately below.
|
||||
bool is2D = paintLayerContext.Setup2DTransform();
|
||||
NS_ABORT_IF_FALSE(is2D || needsGroup || !container, "Must PushGroup for 3d transforms!");
|
||||
MOZ_ASSERT(is2D || needsGroup || !container, "Must PushGroup for 3d transforms!");
|
||||
|
||||
bool needsSaveRestore =
|
||||
needsGroup || clipRect || needsClipToVisibleRegion || !is2D;
|
||||
@@ -865,8 +865,8 @@ BasicLayerManager::PaintLayer(gfxContext* aTarget,
|
||||
|
||||
// Temporary fast fix for bug 725886
|
||||
// Revert these changes when 725886 is ready
|
||||
NS_ABORT_IF_FALSE(untransformedDT,
|
||||
"We should always allocate an untransformed surface with 3d transforms!");
|
||||
MOZ_ASSERT(untransformedDT,
|
||||
"We should always allocate an untransformed surface with 3d transforms!");
|
||||
gfxRect destRect;
|
||||
#ifdef DEBUG
|
||||
if (aLayer->GetDebugColorIndex() != 0) {
|
||||
|
||||
Reference in New Issue
Block a user