mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1276810 follow-up - Backout the nsPresShell.cpp change to reduce infallibility coupling. r=milan
This commit is contained in:
parent
ee23c0a77c
commit
0a2efa2106
@ -2923,8 +2923,9 @@ PresShell::CreateReferenceRenderingContext()
|
||||
RefPtr<gfxContext> rc;
|
||||
if (mPresContext->IsScreen()) {
|
||||
rc = gfxContext::ForDrawTarget(gfxPlatform::GetPlatform()->ScreenReferenceDrawTarget());
|
||||
MOZ_RELEASE_ASSERT(rc, "ScreenReferenceDrawTarget never returns null and "
|
||||
"ForDrawTarget always succeeds with it");
|
||||
if (!rc) {
|
||||
return nullptr;
|
||||
}
|
||||
} else {
|
||||
// We assume the devCtx has positive width and height for this call.
|
||||
// However, width and height, may be outside of the reasonable range
|
||||
|
Loading…
Reference in New Issue
Block a user