mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 08:42:13 +00:00
Bug 1851861 Part 2: Add a null-check at another callsite of CreateOffsetDrawTarget. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D187730
This commit is contained in:
parent
aefd1ddb30
commit
bd88b9118f
@ -2132,6 +2132,9 @@ inline bool RecordedCreateDrawTargetForFilter::PlayEvent(
|
||||
|
||||
RefPtr<DrawTarget> newDT =
|
||||
dt->CreateSimilarDrawTarget(transformedRect.Size(), mFormat);
|
||||
if (!newDT) {
|
||||
return false;
|
||||
}
|
||||
newDT =
|
||||
gfx::Factory::CreateOffsetDrawTarget(newDT, transformedRect.TopLeft());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user