Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 308b749a5a1b821bb9f7eb4eedd88d72bd87a0a6..f683e208514aa354a4ab66da75a1b72b4e534cde 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -2060,7 +2060,7 @@ void Document::removeAllEventListeners() |
if (DOMWindow* domWindow = this->domWindow()) |
domWindow->removeAllEventListeners(); |
- for (Node* node = firstChild(); node; node = NodeTraversal::next(node)) |
+ for (Node* node = firstChild(); node; node = NodeTraversal::next(*node)) |
node->removeAllEventListeners(); |
} |
@@ -2641,7 +2641,7 @@ void Document::updateBaseURL() |
if (!equalIgnoringFragmentIdentifier(oldBaseURL, m_baseURL)) { |
// Base URL change changes any relative visited links. |
// FIXME: There are other URLs in the tree that would need to be re-evaluated on dynamic base URL change. Style should be invalidated too. |
- for (Element* element = ElementTraversal::firstWithin(this); element; element = ElementTraversal::next(element)) { |
+ for (Element* element = ElementTraversal::firstWithin(this); element; element = ElementTraversal::next(*element)) { |
if (isHTMLAnchorElement(element)) |
toHTMLAnchorElement(element)->invalidateCachedVisitedLinkHash(); |
} |
@@ -2659,7 +2659,7 @@ void Document::processBaseElement() |
// Find the first href attribute in a base element and the first target attribute in a base element. |
const AtomicString* href = 0; |
const AtomicString* target = 0; |
- for (Element* element = ElementTraversal::firstWithin(this); element && (!href || !target); element = ElementTraversal::next(element)) { |
+ for (Element* element = ElementTraversal::firstWithin(this); element && (!href || !target); element = ElementTraversal::next(*element)) { |
if (element->hasTagName(baseTag)) { |
if (!href) { |
const AtomicString& value = element->fastGetAttribute(hrefAttr); |