Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2546513002: Refactor TextFinder::scopeStringMatches(). (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index 9887dd87987013fc175e43088aac32a9681f2f31..5b43176488686fa5c92f77cec38fe451e4ea838d 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -2126,14 +2126,9 @@ void WebLocalFrameImpl::requestFind(int identifier,
return;
}
- // Scoping effort begins.
- ensureTextFinder().resetMatchCount();
- textFinder()->cancelPendingScopingEffort();
-
// Start a new scoping request. If the scoping function determines that it
// needs to scope, it will defer until later.
- textFinder()->scopeStringMatches(identifier, searchText, options,
- true /* reset */);
+ ensureTextFinder().startScopingStringMatches(identifier, searchText, options);
}
bool WebLocalFrameImpl::find(int identifier,
« no previous file with comments | « third_party/WebKit/Source/web/TextFinder.cpp ('k') | third_party/WebKit/Source/web/tests/TextFinderTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698