Index: third_party/WebKit/Source/core/svg/SVGUseElement.h |
diff --git a/third_party/WebKit/Source/core/svg/SVGUseElement.h b/third_party/WebKit/Source/core/svg/SVGUseElement.h |
index 0b67aa35654286140d915eb2492ff8317a77a921..477e98b3a4b5cf129507ac726715169b5edb979c 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGUseElement.h |
+++ b/third_party/WebKit/Source/core/svg/SVGUseElement.h |
@@ -89,6 +89,11 @@ class SVGUseElement final : public SVGGraphicsElement, |
bool selfHasRelativeLengths() const override; |
+ ShadowRoot& useShadowRoot() const { |
+ CHECK(closedShadowRoot()); |
+ return *closedShadowRoot(); |
+ } |
+ |
// Instance tree handling |
Element* resolveTargetElement(); |
void buildShadowAndInstanceTree(SVGElement& target); |