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

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

Issue 2780313002: [WIP] Refactor DocumentMarker (Closed)
Patch Set: Rebase 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/TextMatchMarkerList.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/TextMatchMarkerList.cpp b/third_party/WebKit/Source/core/editing/markers/TextMatchMarkerList.cpp
index 01e5b73d03882df8482eb077ea17d79207b98d01..7d4356ff865d819fde08f280b19fa4261b8ce03f 100644
--- a/third_party/WebKit/Source/core/editing/markers/TextMatchMarkerList.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/TextMatchMarkerList.cpp
@@ -47,7 +47,7 @@ bool TextMatchMarkerList::setTextMatchMarkersActive(unsigned startOffset,
bool docDirty = false;
for (auto it = getPosOfFirstMarkerNotEndingBefore(startOffset);
it != m_markers.end(); ++it) {
- DocumentMarker& marker = **it;
+ TextMatchMarker& marker = toTextMatchMarker(**it);
// Markers are stored in order, so stop if we are now past the specified
// range.
if (marker.startOffset() >= endOffset)

Powered by Google App Engine
This is Rietveld 408576698