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

Unified Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp

Issue 2907643004: [DMC #22] Move DocumentMarker::MatchStatus enum to TextMatchMarker (Closed)
Patch Set: Rebase Created 3 years, 7 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 73a528db31283e59a3b206cfb424762253538936..545678929d4ee0cb63895f7027c62bf4c52bd45e 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
@@ -146,7 +146,7 @@ void DocumentMarkerController::AddSpellCheckMarker(
void DocumentMarkerController::AddTextMatchMarker(
const EphemeralRange& range,
- DocumentMarker::MatchStatus match_status) {
+ TextMatchMarker::MatchStatus match_status) {
DCHECK(!document_->NeedsLayoutTreeUpdate());
AddMarkerInternal(range, [match_status](int start_offset, int end_offset) {
return new TextMatchMarker(start_offset, end_offset, match_status);
@@ -673,7 +673,9 @@ void DocumentMarkerController::ShowMarkers() const {
builder.Append(":");
builder.AppendNumber(marker->EndOffset());
builder.Append("](");
- builder.AppendNumber(marker->IsActiveMatch());
+ builder.AppendNumber(type == DocumentMarker::kTextMatch
+ ? ToTextMatchMarker(marker)->IsActiveMatch()
+ : 0);
builder.Append(")");
}
}

Powered by Google App Engine
This is Rietveld 408576698