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

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

Issue 2752763002: Change the type of a SVG <use> element's shadow tree from "user agent" to "closed" (Closed)
Patch Set: Created 3 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
Index: third_party/WebKit/Source/core/svg/SVGElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGElement.cpp b/third_party/WebKit/Source/core/svg/SVGElement.cpp
index 313e7bbfbedcdd9065539b253ebdb11a8adfda88..55be78b9f4239aea6cf99783b5a6b1a10de66cde 100644
--- a/third_party/WebKit/Source/core/svg/SVGElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGElement.cpp
@@ -651,7 +651,7 @@ SVGElement* SVGElement::correspondingElement() const {
SVGUseElement* SVGElement::correspondingUseElement() const {
if (ShadowRoot* root = containingShadowRoot()) {
if (isSVGUseElement(root->host()) &&
- (root->type() == ShadowRootType::UserAgent))
+ (root->type() == ShadowRootType::Closed))
fs 2017/03/15 13:34:45 Nit: Could you drop the redundant ()?
hayato 2017/03/16 03:57:34 Good catch. It is redundant. Done.
return &toSVGUseElement(root->host());
}
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698