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; |