Only return a valid RotatedBuffer in ContentClientBasic::CreateBuffer (bug 1416790, r=dvander)

MozReview-Commit-ID: C5l4OHAWBLL
This commit is contained in:
Ryan Hunt
2017-11-13 12:52:31 -05:00
parent ba6615b484
commit acaa8efb33

View File

@@ -616,6 +616,10 @@ ContentClientBasic::CreateBuffer(gfxContentType aType,
gfxPlatform::GetPlatform()->Optimal2DFormatForContent(aType));
}
if (!drawTarget) {
return nullptr;
}
return new DrawTargetRotatedBuffer(drawTarget, nullptr, aRect, IntPoint(0,0));
}