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

Unified Diff: third_party/WebKit/Source/core/svg/SVGUseElement.cpp

Issue 1840343002: Do not show display:none clipPath targets when referenced with <use> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/clip-path/display-none-children-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/svg/SVGUseElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGUseElement.cpp b/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
index 3f2d1ecc874ff9bb546119d116e76226d35da889..49a0cea18977e461e1de473bb82369cae8d5b7a9 100644
--- a/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
@@ -493,7 +493,7 @@ void SVGUseElement::toClipPath(Path& path) const
const SVGGraphicsElement* element = targetGraphicsElementForClipping();
- if (!element)
+ if (!element || !element->layoutObject())
return;
if (element->isSVGGeometryElement()) {
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/clip-path/display-none-children-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698