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

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

Issue 2141093004: Remove one-callsite private function on TextFinder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months 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
« no previous file with comments | « third_party/WebKit/Source/web/TextFinder.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/TextFinder.cpp
diff --git a/third_party/WebKit/Source/web/TextFinder.cpp b/third_party/WebKit/Source/web/TextFinder.cpp
index 8cd0d33717f0d66394748998066a36de241fc416..916a97a2058cc8660daabdba0ce5d02feb694bec 100644
--- a/third_party/WebKit/Source/web/TextFinder.cpp
+++ b/third_party/WebKit/Source/web/TextFinder.cpp
@@ -360,7 +360,7 @@ void TextFinder::scopeStringMatches(int identifier, const WebString& searchText,
identifier);
}
- addMarker(resultRange, foundActiveMatch);
+ ownerFrame().frame()->document()->markers().addTextMatchMarker(resultRange, foundActiveMatch);
m_findMatchesCache.append(FindMatch(resultRange, m_lastMatchCount + matchCount));
@@ -656,11 +656,6 @@ TextFinder::~TextFinder()
{
}
-void TextFinder::addMarker(Range* range, bool activeMatch)
-{
- ownerFrame().frame()->document()->markers().addTextMatchMarker(range, activeMatch);
-}
-
bool TextFinder::setMarkerActive(Range* range, bool active)
{
if (!range || range->collapsed())
« no previous file with comments | « third_party/WebKit/Source/web/TextFinder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698