Index: Source/web/TextFinder.cpp |
diff --git a/Source/web/TextFinder.cpp b/Source/web/TextFinder.cpp |
index 597fdc45dfe16344f146a61627aa9ecf99bef1ee..1cd37fc1bc3328b96ac9aa10c11426602d363327 100644 |
--- a/Source/web/TextFinder.cpp |
+++ b/Source/web/TextFinder.cpp |
@@ -242,7 +242,7 @@ void TextFinder::scopeStringMatches(int identifier, const WebString& searchText, |
// This is a continuation of a scoping operation that timed out and didn't |
// complete last time around, so we should start from where we left off. |
ASSERT(m_resumeScopingFromRange->collapsed()); |
- searchStart = m_resumeScopingFromRange->startPosition().next(); |
+ searchStart = m_resumeScopingFromRange->startPosition(); |
if (searchStart.document() != searchEnd.document()) |
return; |
} |
@@ -318,7 +318,7 @@ void TextFinder::scopeStringMatches(int identifier, const WebString& searchText, |
// result range. There is no need to use a VisiblePosition here, |
// since findPlainText will use a TextIterator to go over the visible |
// text nodes. |
- searchStart = resultStart.next(); |
+ searchStart = resultEnd; |
m_resumeScopingFromRange = Range::create(*resultStart.document(), resultStart, resultStart); |
timedOut = (currentTime() - startTime) >= maxScopingDuration; |