Index: Source/core/html/HTMLTextFormControlElement.cpp |
diff --git a/Source/core/html/HTMLTextFormControlElement.cpp b/Source/core/html/HTMLTextFormControlElement.cpp |
index cae3020820f0623c0cdbb3749837c0d4ec571c34..6067d4792f8f78123e55300d0031c63204f73310 100644 |
--- a/Source/core/html/HTMLTextFormControlElement.cpp |
+++ b/Source/core/html/HTMLTextFormControlElement.cpp |
@@ -458,14 +458,14 @@ PassRefPtrWillBeRawPtr<Range> HTMLTextFormControlElement::selection() const |
if (!innerText) |
return nullptr; |
- if (!innerText->firstChild()) |
+ if (!innerText->hasChildren()) |
return Range::create(document(), innerText, 0, innerText, 0); |
int offset = 0; |
Node* startNode = 0; |
Node* endNode = 0; |
for (Node* node = innerText->firstChild(); node; node = NodeTraversal::next(*node, innerText)) { |
- ASSERT(!node->firstChild()); |
+ ASSERT(!node->hasChildren()); |
ASSERT(node->isTextNode() || isHTMLBRElement(*node)); |
int length = node->isTextNode() ? lastOffsetInNode(node) : 1; |