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:
Brad Werth 2023-09-08 15:14:45 +00:00
parent aefd1ddb30
commit bd88b9118f

View File

@ -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());