Index: Source/core/svg/SVGSVGElement.cpp |
diff --git a/Source/core/svg/SVGSVGElement.cpp b/Source/core/svg/SVGSVGElement.cpp |
index 0d4005572d50d263725c27aa3227d3e2d4510f44..7a9e9b955018d9b346d483d0444d2ecf1bcafc8a 100644 |
--- a/Source/core/svg/SVGSVGElement.cpp |
+++ b/Source/core/svg/SVGSVGElement.cpp |
@@ -336,7 +336,7 @@ void SVGSVGElement::forceRedraw() |
PassRefPtr<NodeList> SVGSVGElement::collectIntersectionOrEnclosureList(const SVGRect& rect, SVGElement* referenceElement, CollectIntersectionOrEnclosure collect) const |
{ |
Vector<RefPtr<Node> > nodes; |
- Element* element = ElementTraversal::next(referenceElement ? referenceElement : this); |
+ Element* element = ElementTraversal::next(*(referenceElement ? referenceElement : this)); |
while (element) { |
if (element->isSVGElement()) { |
SVGElement* svgElement = toSVGElement(element); |
@@ -349,7 +349,7 @@ PassRefPtr<NodeList> SVGSVGElement::collectIntersectionOrEnclosureList(const SVG |
} |
} |
- element = ElementTraversal::next(element, referenceElement ? referenceElement : this); |
+ element = ElementTraversal::next(*element, referenceElement ? referenceElement : this); |
} |
return StaticNodeList::adopt(nodes); |
} |
@@ -774,7 +774,7 @@ Element* SVGSVGElement::getElementById(const AtomicString& id) const |
// Fall back to traversing our subtree. Duplicate ids are allowed, the first found will |
// be returned. |
- for (Node* node = firstChild(); node; node = NodeTraversal::next(node, this)) { |
+ for (Node* node = firstChild(); node; node = NodeTraversal::next(*node, this)) { |
if (!node->isElementNode()) |
continue; |