Bug 1313898 - Part 3. Enable svg-image on mask layer.
MozReview-Commit-ID: 87gjgioUVLx
--- a/layout/base/nsDisplayList.cpp
+++ b/layout/base/nsDisplayList.cpp
@@ -7136,30 +7136,16 @@ bool nsDisplayMask::ShouldPaintOnMaskLay
maskUsage.shouldApplyBasicShape) {
return false;
}
if (!nsSVGIntegrationUtils::IsMaskResourceReady(mFrame)) {
return false;
}
- // XXX temporary disable drawing SVG mask onto mask layer before bug 1313877
- // been fixed.
- nsIFrame* firstFrame =
- nsLayoutUtils::FirstContinuationOrIBSplitSibling(mFrame);
- nsSVGEffects::EffectProperties effectProperties =
- nsSVGEffects::GetEffectProperties(firstFrame);
- nsTArray<nsSVGMaskFrame *> maskFrames = effectProperties.GetMaskFrames();
- for (size_t i = 0; i < maskFrames.Length() ; i++) {
- nsSVGMaskFrame *maskFrame = maskFrames[i];
- if (maskFrame) {
- return false; // Found SVG mask.
- }
- }
-
if (gfxPrefs::DrawMaskLayer()) {
return false;
}
return true;
}
bool nsDisplayMask::ComputeVisibility(nsDisplayListBuilder* aBuilder,