summaryrefslogtreecommitdiff
path: root/layout/svg
diff options
context:
space:
mode:
authoryami <34216515+kn-yami@users.noreply.github.com>2019-04-03 19:10:37 +0200
committeryami <34216515+kn-yami@users.noreply.github.com>2019-04-03 19:10:37 +0200
commit00baf283622b47ad7926c6e62364854d3dfbc00a (patch)
treebba47fa5fa14856ea3ab47039901e43585cb5f1c /layout/svg
parent71c0318322ce998ea411f343607de524b2058799 (diff)
downloaduxp-00baf283622b47ad7926c6e62364854d3dfbc00a.tar.gz
add a nullptr check in nsSVGUtils::PaintFrameWithEffects
Diffstat (limited to 'layout/svg')
-rw-r--r--layout/svg/nsSVGUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/layout/svg/nsSVGUtils.cpp b/layout/svg/nsSVGUtils.cpp
index 0bded21ffe..b8794a05d0 100644
--- a/layout/svg/nsSVGUtils.cpp
+++ b/layout/svg/nsSVGUtils.cpp
@@ -685,7 +685,7 @@ nsSVGUtils::PaintFrameWithEffects(nsIFrame *aFrame,
bool isOK = effectProperties.HasNoFilterOrHasValidFilter();
nsSVGClipPathFrame *clipPathFrame = effectProperties.GetClipPathFrame(&isOK);
nsSVGMaskFrame *maskFrame = effectProperties.GetFirstMaskFrame(&isOK);
- if (!isOK) {
+ if (!isOK || !maskFrame) {
// Some resource is invalid. We shouldn't paint anything.
return DrawResult::SUCCESS;
}