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

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

Issue 2909553002: [DMC #20] Remove DocumentMarker::IsActiveMatch() and SetIsActiveMatch() methods (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..5f387eb51e16ec7b8c76713339333678d323ac2d 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
@@ -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