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

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

Issue 2909553002: [DMC #20] Remove DocumentMarker::IsActiveMatch() and SetIsActiveMatch() methods (Closed)
Patch Set: Update comment 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 18d25c08b5aa3d098e27b13be317dccbe1340309..d9cd745a7d4587011d0f7e76a7154062e5644c25 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
@@ -662,7 +662,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