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

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

Issue 2790703004: [WIP] Move DocumentMarker accessors into subclasses (Closed)
Patch Set: Move CompositionMarkerList::at() into previous CL Created 3 years, 9 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 4d74ac886e419d8dddf290df278481316084ceac..9c58d8f68325e7940349f484924c3df399a00396 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
@@ -439,7 +439,10 @@ static String showMarkerHelper(const DocumentMarkerVector& markers) {
builder.append(":");
builder.appendNumber(marker->endOffset());
builder.append("](");
- builder.appendNumber(marker->activeMatch());
+ if (marker->type() == DocumentMarker::TextMatch)
+ builder.appendNumber(toTextMatchMarker(marker)->activeMatch());
+ else
+ builder.appendNumber(0);
builder.append(")");
}

Powered by Google App Engine
This is Rietveld 408576698