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

Unified Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.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
Index: third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
index 3f3bcc08e16b712ea1a48c4999cd88cb733fcf71..5190265f33c8bfcc2b2d67973e228330fb6b1a12 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
@@ -107,18 +107,20 @@ void DocumentMarkerController::addMarker(const Position& start,
}
}
-void DocumentMarkerController::addTextMatchMarker(const EphemeralRange& range,
- bool activeMatch) {
+void DocumentMarkerController::addTextMatchMarker(
+ const EphemeralRange& range,
+ DocumentMarker::MatchStatus matchStatus) {
DCHECK(!m_document->needsLayoutTreeUpdate());
// Use a TextIterator to visit the potentially multiple nodes the range
// covers.
for (TextIterator markedText(range.startPosition(), range.endPosition());
- !markedText.atEnd(); markedText.advance())
+ !markedText.atEnd(); markedText.advance()) {
addMarker(
markedText.currentContainer(),
DocumentMarker(markedText.startOffsetInCurrentContainer(),
- markedText.endOffsetInCurrentContainer(), activeMatch));
+ markedText.endOffsetInCurrentContainer(), matchStatus));
+ }
// Don't invalidate tickmarks here. TextFinder invalidates tickmarks using a
// throttling algorithm. crbug.com/6819.
}

Powered by Google App Engine
This is Rietveld 408576698