mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1345052 - Remove EffectProperties::MightHaveNoneSVGMask. r=heycam
MozReview-Commit-ID: 3WFAjwhBkDp --HG-- extra : rebase_source : 1840ab0b7d156e4ff6e65ebe1f6127e5975ac6ac
This commit is contained in:
parent
deb5451dee
commit
6a92a74443
@ -672,24 +672,6 @@ nsSVGEffects::EffectProperties::HasNoOrValidEffects()
|
||||
return HasNoOrValidClipPath() && HasNoOrValidMask() && HasNoOrValidFilter();
|
||||
}
|
||||
|
||||
bool
|
||||
nsSVGEffects::EffectProperties::MightHaveNoneSVGMask() const
|
||||
{
|
||||
if (!mMask) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const nsTArray<RefPtr<nsSVGPaintingProperty>>& props = mMask->GetProps();
|
||||
for (size_t i = 0; i < props.Length(); i++) {
|
||||
if (!props[i] ||
|
||||
!props[i]->GetReferencedFrame(nsGkAtoms::svgMaskFrame, nullptr)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
nsSVGEffects::EffectProperties::HasNoOrValidClipPath()
|
||||
{
|
||||
|
@ -483,8 +483,6 @@ public:
|
||||
*/
|
||||
nsTArray<nsSVGMaskFrame*> GetMaskFrames();
|
||||
|
||||
bool MightHaveNoneSVGMask() const;
|
||||
|
||||
/*
|
||||
* @return true if all effects we have are valid or we have no effect
|
||||
* at all.
|
||||
|
Loading…
Reference in New Issue
Block a user