Index: Source/core/dom/shadow/ElementShadow.cpp |
diff --git a/Source/core/dom/shadow/ElementShadow.cpp b/Source/core/dom/shadow/ElementShadow.cpp |
index 82d678c183e5655a29a8dcb22bcb27266043ac21..97bdec59e5d63c8c7f168a4d6ffa00463d6c03a0 100644 |
--- a/Source/core/dom/shadow/ElementShadow.cpp |
+++ b/Source/core/dom/shadow/ElementShadow.cpp |
@@ -203,7 +203,7 @@ void ElementShadow::detach(const Node::AttachContext& context) |
void ElementShadow::removeAllEventListeners() |
{ |
for (ShadowRoot* root = youngestShadowRoot(); root; root = root->olderShadowRoot()) { |
- for (Node* node = root; node; node = NodeTraversal::next(node)) |
+ for (Node* node = root; node; node = NodeTraversal::next(*node)) |
node->removeAllEventListeners(); |
} |
} |
@@ -341,7 +341,7 @@ void ElementShadow::collectSelectFeatureSetFrom(ShadowRoot* root) |
if (!root->containsShadowRoots() && !root->containsContentElements()) |
return; |
- for (Element* element = ElementTraversal::firstWithin(root); element; element = ElementTraversal::next(element, root)) { |
+ for (Element* element = ElementTraversal::firstWithin(root); element; element = ElementTraversal::next(*element, root)) { |
if (ElementShadow* shadow = element->shadow()) |
m_selectFeatures.add(shadow->ensureSelectFeatureSet()); |
if (!isHTMLContentElement(element)) |