Bug 625672. Part 1.5: Make layer managers silently do nothing when ending a transaction with no root layer. r=bas,a=blocker

This commit is contained in:
Robert O'Callahan
2011-02-10 21:58:11 +13:00
parent 70d1a9dc8c
commit f0909b1d44
5 changed files with 65 additions and 64 deletions

View File

@@ -1271,9 +1271,7 @@ BasicLayerManager::EndTransactionInternal(DrawThebesLayerCallback aCallback,
mTransactionIncomplete = false;
if (mTarget) {
NS_ASSERTION(mRoot, "Root not set");
if (mTarget && mRoot) {
nsRefPtr<gfxContext> finalTarget = mTarget;
gfxPoint cachedSurfaceOffset;