summaryrefslogtreecommitdiffstats
path: root/layout/svg
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-04-06 20:35:14 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-04-06 20:35:14 +0200
commit81cdb56fa3e232a232745a76effeda8f407b6f65 (patch)
tree8bc76c8e8c7b1d89750e7fa151f13a32e96f1a40 /layout/svg
parenta9682a32af09f2fb8ae39c66fdc19ecdee24e591 (diff)
downloadUXP-81cdb56fa3e232a232745a76effeda8f407b6f65.tar
UXP-81cdb56fa3e232a232745a76effeda8f407b6f65.tar.gz
UXP-81cdb56fa3e232a232745a76effeda8f407b6f65.tar.lz
UXP-81cdb56fa3e232a232745a76effeda8f407b6f65.tar.xz
UXP-81cdb56fa3e232a232745a76effeda8f407b6f65.zip
Revert "add a nullptr check in nsSVGUtils::PaintFrameWithEffects"
This reverts commit 00baf283622b47ad7926c6e62364854d3dfbc00a.
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 b8794a05d..0bded21ff 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 || !maskFrame) {
+ if (!isOK) {
// Some resource is invalid. We shouldn't paint anything.
return DrawResult::SUCCESS;
}