diff --git a/dom/svg/SVGContentUtils.cpp b/dom/svg/SVGContentUtils.cpp index 8fd24867b8e..7321c0557d6 100644 --- a/dom/svg/SVGContentUtils.cpp +++ b/dom/svg/SVGContentUtils.cpp @@ -144,9 +144,6 @@ GetStrokeDashData(SVGContentUtils::AutoStrokeOptions* aStrokeOptions, // stroke to essentially be continuous or to be nonexistent in which case // we can avoid expensive stroking operations (the underlying platform // graphics libraries don't seem to optimize for this). - if (totalLengthOfDashes <= 0 && totalLengthOfGaps <= 0) { - return eNoStroke; - } if (totalLengthOfGaps <= 0) { return eContinuousStroke; } diff --git a/layout/reftests/svg/stroke-linecap-round-w-zero-length-segs-01.svg b/layout/reftests/svg/stroke-linecap-round-w-zero-length-segs-01.svg index 475b536ef4d..0f8e174d99b 100644 --- a/layout/reftests/svg/stroke-linecap-round-w-zero-length-segs-01.svg +++ b/layout/reftests/svg/stroke-linecap-round-w-zero-length-segs-01.svg @@ -152,4 +152,10 @@ path.coverer { + + + + + +