Bug 1345052 - Remove EffectProperties::MightHaveNoneSVGMask. r=heycam

MozReview-Commit-ID: 3WFAjwhBkDp

--HG--
extra : rebase_source : 1840ab0b7d156e4ff6e65ebe1f6127e5975ac6ac
This commit is contained in:
cku 2017-03-07 17:01:31 +08:00
parent deb5451dee
commit 6a92a74443
2 changed files with 0 additions and 20 deletions

View File

@ -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()
{

View File

@ -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.