Backout d22512e72e42 (bug 798990) for reftest failures in empty-transaction-1.html

This commit is contained in:
Ed Morley 2012-10-08 13:50:42 +01:00
parent 9422806f42
commit 8b7c0e18e0

View File

@ -4630,11 +4630,8 @@ nsCanvasRenderingContext2DAzure::GetCanvasLayer(nsDisplayListBuilder* aBuilder,
CanvasLayer *aOldLayer,
LayerManager *aManager)
{
// Don't call EnsureTarget() ... if there isn't already a surface, then
// we have nothing to paint and there is no need to create a surface just
// to paint nothing. Also, EnsureTarget() can cause creation of a persistent
// layer manager which must NOT happen during a paint.
if (!mTarget || !IsTargetValid()) {
EnsureTarget();
if (!IsTargetValid()) {
// No DidTransactionCallback will be received, so mark the context clean
// now so future invalidations will be dispatched.
MarkContextClean();