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) |