Index: Source/core/dom/shadow/ComposedTreeWalker.cpp |
diff --git a/Source/core/dom/shadow/ComposedTreeWalker.cpp b/Source/core/dom/shadow/ComposedTreeWalker.cpp |
index 29a180f903877a09868f190f747132aba2c2e592..55390f60d295fe2dd306d8cab292e7ac629dc59b 100644 |
--- a/Source/core/dom/shadow/ComposedTreeWalker.cpp |
+++ b/Source/core/dom/shadow/ComposedTreeWalker.cpp |
@@ -72,7 +72,7 @@ Node* ComposedTreeWalker::traverseNode(const Node* node, TraversalDirection dire |
const InsertionPoint* insertionPoint = toInsertionPoint(node); |
if (Node* found = traverseDistributedNodes(direction == TraversalDirectionForward ? insertionPoint->first() : insertionPoint->last(), insertionPoint, direction)) |
return found; |
- ASSERT(node->hasTagName(HTMLNames::shadowTag) || (node->hasTagName(HTMLNames::contentTag) && !node->hasChildren())); |
+ ASSERT(isHTMLShadowElement(node) || (isHTMLContentElement(node) && !node->hasChildren())); |
return 0; |
} |