Commit 4098ab1e authored by dglazkov's avatar dglazkov Committed by Commit bot

Remove one-callsite private function on TextFinder.

It's a one-liner, too.

R=esprehn

Review-Url: https://codereview.chromium.org/2141093004
Cr-Commit-Position: refs/heads/master@{#405203}
parent d68bc0e2
......@@ -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())
......
......@@ -140,9 +140,6 @@ private:
// propagating the invalidation to child frames.
void updateFindMatchRects();
// Add a WebKit TextMatch-highlight marker to nodes in a range.
void addMarker(Range*, bool activeMatch);
// Sets the markers within a range as active or inactive. Returns true if at least
// one such marker found.
bool setMarkerActive(Range*, bool active);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment