Skip to content

Commit

Permalink
adapt assertion to be as introduced in Bug 1125848
Browse files Browse the repository at this point in the history
  • Loading branch information
rmottola committed Nov 7, 2019
1 parent ceda5a1 commit 8770712
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions widget/windows/nsWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3327,13 +3327,10 @@ nsWindow::GetLayerManager(PLayerTransactionChild* aShadowManager,
}

if (!mLayerManager) {
MOZ_ASSERT(!mCompositorParent && !mCompositorChild);
mLayerManager = CreateBasicLayerManager();
}

// If we don't have a layer manager at this point we shouldn't have a
// PCompositor actor pair either.
MOZ_ASSERT(mLayerManager || (!mCompositorParent && !mCompositorChild));

NS_ASSERTION(mLayerManager, "Couldn't provide a valid layer manager.");

return mLayerManager;
Expand Down

0 comments on commit 8770712

Please sign in to comment.