Bug 1195098. Null check for blurred source surface. r=mstange

This commit is contained in:
Mason Chang 2015-08-18 20:43:24 -07:00
parent e4ba0e9283
commit f2dab756fa

View File

@ -416,6 +416,9 @@ CreateBlurMask(const IntSize& aRectSize,
IntPoint topLeft;
RefPtr<SourceSurface> result = blur.DoBlur(&aDestDrawTarget, &topLeft);
if (!result) {
return nullptr;
}
IntRect expandedMinRect(topLeft, result->GetSize());
aExtendDestBy = expandedMinRect - minRect;