Index: Source/core/svg/SVGSVGElement.cpp |
diff --git a/Source/core/svg/SVGSVGElement.cpp b/Source/core/svg/SVGSVGElement.cpp |
index f8ec63489d0e00963964c9294ffb69cbc55cd33b..29b889ed4edc18c7b66ff16bf865a6f081db7431 100644 |
--- a/Source/core/svg/SVGSVGElement.cpp |
+++ b/Source/core/svg/SVGSVGElement.cpp |
@@ -773,21 +773,4 @@ void SVGSVGElement::inheritViewAttributes(SVGViewElement* viewElement) |
view->setZoomAndPan(zoomAndPan()); |
} |
-// getElementById on SVGSVGElement is restricted to only the child subtree defined by the <svg> element. |
-// See http://www.w3.org/TR/SVG11/struct.html#InterfaceSVGSVGElement |
-Element* SVGSVGElement::getElementById(const AtomicString& id) const |
-{ |
- Element* element = treeScope().getElementById(id); |
- if (element && element->isDescendantOf(this)) |
- return element; |
- |
- // Fall back to traversing our subtree. Duplicate ids are allowed, the first found will |
- // be returned. |
- for (Element* element = ElementTraversal::firstWithin(*this); element; element = ElementTraversal::next(*element, this)) { |
- if (element->getIdAttribute() == id) |
- return element; |
- } |
- return 0; |
-} |
- |
} |