Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1570)

Unified Diff: Source/core/rendering/svg/RenderSVGPath.cpp

Issue 355813004: [SVG2] Elements that don't render shouldn't contribute to ancestor bboxes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
+}
+
}

Powered by Google App Engine
This is Rietveld 408576698