Index: Source/core/editing/Editor.cpp |
diff --git a/Source/core/editing/Editor.cpp b/Source/core/editing/Editor.cpp |
index a8cee6762a4783273eecb83f1f3eb2f4fa9b298c..cd57d13b407b246b42b78d37b65ece64f78f775c 100644 |
--- a/Source/core/editing/Editor.cpp |
+++ b/Source/core/editing/Editor.cpp |
@@ -1160,7 +1160,7 @@ PassRefPtr<Range> Editor::rangeOfString(const String& target, Range* referenceRa |
RefPtr<Node> shadowTreeRoot = referenceRange && referenceRange->startContainer() ? referenceRange->startContainer()->nonBoundaryShadowTreeRootNode() : 0; |
if (shadowTreeRoot) { |
if (forward) |
- searchRange->setEnd(shadowTreeRoot.get(), shadowTreeRoot->childNodeCount()); |
+ searchRange->setEnd(shadowTreeRoot.get(), shadowTreeRoot->countChildren()); |
else |
searchRange->setStart(shadowTreeRoot.get(), 0); |
} |
@@ -1178,7 +1178,7 @@ PassRefPtr<Range> Editor::rangeOfString(const String& target, Range* referenceRa |
if (shadowTreeRoot) { |
if (forward) |
- searchRange->setEnd(shadowTreeRoot.get(), shadowTreeRoot->childNodeCount()); |
+ searchRange->setEnd(shadowTreeRoot.get(), shadowTreeRoot->countChildren()); |
else |
searchRange->setStart(shadowTreeRoot.get(), 0); |
} |