diff options
author | yami <34216515+kn-yami@users.noreply.github.com> | 2019-04-03 19:10:37 +0200 |
---|---|---|
committer | yami <34216515+kn-yami@users.noreply.github.com> | 2019-04-03 19:10:37 +0200 |
commit | 00baf283622b47ad7926c6e62364854d3dfbc00a (patch) | |
tree | bba47fa5fa14856ea3ab47039901e43585cb5f1c /layout/svg | |
parent | 71c0318322ce998ea411f343607de524b2058799 (diff) | |
download | uxp-00baf283622b47ad7926c6e62364854d3dfbc00a.tar.gz |
add a nullptr check in nsSVGUtils::PaintFrameWithEffects
Diffstat (limited to 'layout/svg')
-rw-r--r-- | layout/svg/nsSVGUtils.cpp | 2 |
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; } |