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

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

Issue 2780313002: [WIP] Refactor DocumentMarker (Closed)
Patch Set: Move accessor methods into derived classes 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 6bf395ad1c9f0d3909154a71d4898e42ee72526e..8c533337b6a9bcad89387d4713e0006a3f312675 100644
--- a/third_party/WebKit/Source/core/editing/markers/TextMatchMarkerList.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/TextMatchMarkerList.cpp
@@ -51,7 +51,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