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. |
} |