Index: Source/core/editing/htmlediting.cpp |
diff --git a/Source/core/editing/htmlediting.cpp b/Source/core/editing/htmlediting.cpp |
index 11295afa05ba1a8866a0b4a5b4893a28398fd901..501df6febcd320b6f8363059268641f98228ecdf 100644 |
--- a/Source/core/editing/htmlediting.cpp |
+++ b/Source/core/editing/htmlediting.cpp |
@@ -503,7 +503,7 @@ Node* isLastPositionBeforeTable(const VisiblePosition& visiblePosition) |
VisiblePosition visiblePositionBeforeNode(Node* node) |
{ |
ASSERT(node); |
- if (node->childNodeCount()) |
+ if (node->hasChildNodes()) |
return VisiblePosition(firstPositionInOrBeforeNode(node), DOWNSTREAM); |
ASSERT(node->parentNode()); |
ASSERT(!node->parentNode()->isShadowRoot()); |
@@ -514,7 +514,7 @@ VisiblePosition visiblePositionBeforeNode(Node* node) |
VisiblePosition visiblePositionAfterNode(Node* node) |
{ |
ASSERT(node); |
- if (node->childNodeCount()) |
+ if (node->hasChildNodes()) |
return VisiblePosition(lastPositionInOrAfterNode(node), DOWNSTREAM); |
ASSERT(node->parentNode()); |
ASSERT(!node->parentNode()->isShadowRoot()); |