Index: Source/core/rendering/RenderObject.cpp |
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp |
index a778300e2f564c88aa31eeeb3edefee0c3ef372c..0f66c5d8a0b68b78f75bc0f902a1f3282efc5aff 100644 |
--- a/Source/core/rendering/RenderObject.cpp |
+++ b/Source/core/rendering/RenderObject.cpp |
@@ -3056,7 +3056,7 @@ int RenderObject::caretMinOffset() const |
int RenderObject::caretMaxOffset() const |
{ |
if (isReplaced()) |
- return node() ? max(1U, node()->childNodeCount()) : 1; |
+ return node() ? max(1U, node()->countChildren()) : 1; |
if (isHR()) |
return 1; |
return 0; |