Bug 564991. Part 32: Fix assertion in BasicThebesLayer; it's entirely possible that we need to invalidate an area, but the actual visible region is empty so there's no context to draw to. r=cjones

This commit is contained in:
Robert O'Callahan 2010-07-16 09:08:10 +12:00
parent 78f7a6b002
commit da8eac7e0e

View File

@ -337,8 +337,9 @@ BasicThebesLayer::Paint(gfxContext* aContext,
state.mRegionToInvalidate, aCallbackData);
mValidRegion.Or(mValidRegion, state.mRegionToDraw);
} else {
NS_ASSERTION(state.mRegionToDraw.IsEmpty() &&
state.mRegionToInvalidate.IsEmpty(),
// It's possible that state.mRegionToInvalidate is nonempty here,
// if we are shrinking the valid region to nothing.
NS_ASSERTION(state.mRegionToDraw.IsEmpty(),
"If we need to draw, we should have a context");
}
}