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

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

Issue 2801483002: Add DocumentMarker::MatchStatus enum for text match markers (Closed)
Patch Set: Add k prefix Created 3 years, 8 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/core/testing/Internals.cpp ('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 7fd1db6032c3ba42c1a40bff96e934d7b7e55391..25748605487b233f00a249b777203fe7cf836591 100644
--- a/third_party/WebKit/Source/web/TextFinder.cpp
+++ b/third_party/WebKit/Source/web/TextFinder.cpp
@@ -397,7 +397,9 @@ void TextFinder::scopeStringMatches(int identifier,
}
ownerFrame().frame()->document()->markers().addTextMatchMarker(
- EphemeralRange(resultRange), foundActiveMatch);
+ EphemeralRange(resultRange),
+ foundActiveMatch ? DocumentMarker::MatchStatus::kActive
+ : DocumentMarker::MatchStatus::kInactive);
m_findMatchesCache.push_back(
FindMatch(resultRange, m_lastMatchCount + matchCount));
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698