Index: Source/core/rendering/svg/RenderSVGPath.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGPath.cpp b/Source/core/rendering/svg/RenderSVGPath.cpp |
index 8f60c8d1cfb0f004d33000c5364795ccf8e9930d..1761443d444cbce8c68b52ccbb9608cabfacbb25 100644 |
--- a/Source/core/rendering/svg/RenderSVGPath.cpp |
+++ b/Source/core/rendering/svg/RenderSVGPath.cpp |
@@ -160,4 +160,11 @@ void RenderSVGPath::updateZeroLengthSubpaths() |
subpathData.pathIsDone(); |
} |
+bool RenderSVGPath::isRenderingDisabled() const |
+{ |
+ // For a polygon, polyline and path, rendering is disabled if the d |
+ // or points attribute is missing or empty. |
+ return path().isEmpty(); |
+} |
+ |
} |