Index: Source/core/svg/SVGElement.cpp |
diff --git a/Source/core/svg/SVGElement.cpp b/Source/core/svg/SVGElement.cpp |
index 1e9e5b0f3676a563c08b6c5956ece3cf10093e87..fdfd69b08660c578cce3ca5d218f0c6adb573abf 100644 |
--- a/Source/core/svg/SVGElement.cpp |
+++ b/Source/core/svg/SVGElement.cpp |
@@ -236,10 +236,6 @@ String SVGElement::title() const |
// Walk up the tree, to find out whether we're inside a <use> shadow tree, to find the right title. |
if (isInShadowTree()) { |
Element* shadowHostElement = toShadowRoot(treeScope().rootNode()).host(); |
- // At this time, SVG nodes are not allowed in non-<use> shadow trees, so any shadow root we do |
- // have should be a use. The assert and following test is here to catch future shadow DOM changes |
- // that do enable SVG in a shadow tree. |
- ASSERT(!shadowHostElement || isSVGUseElement(*shadowHostElement)); |
if (isSVGUseElement(shadowHostElement)) { |
SVGUseElement& useElement = toSVGUseElement(*shadowHostElement); |