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

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

Issue 2883503004: [DMC #7] Only create RenderedDocumentMarkers for TextMatchMarkerListImpl (Closed)
Patch Set: Rebase on InvalidateRectsForAllMarkers() refactor 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
« no previous file with comments | « third_party/WebKit/Source/core/editing/markers/TextMatchMarkerListImpl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/markers/TextMatchMarkerListImpl.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/TextMatchMarkerListImpl.cpp b/third_party/WebKit/Source/core/editing/markers/TextMatchMarkerListImpl.cpp
index 24d39f76014e18a9d977a52c4cedf4287687a7e4..cea15c01f1c4d6a4190d6fa45444eede2de07ada 100644
--- a/third_party/WebKit/Source/core/editing/markers/TextMatchMarkerListImpl.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/TextMatchMarkerListImpl.cpp
@@ -18,16 +18,16 @@ bool TextMatchMarkerListImpl::IsEmpty() const {
}
void TextMatchMarkerListImpl::Add(DocumentMarker* marker) {
- DocumentMarkerListEditor::AddMarkerWithoutMergingOverlapping(&markers_,
- marker);
+ DocumentMarkerListEditor::AddMarkerWithoutMergingOverlapping(
+ &markers_, RenderedDocumentMarker::Create(*marker));
}
void TextMatchMarkerListImpl::Clear() {
markers_.clear();
}
-const HeapVector<Member<RenderedDocumentMarker>>&
-TextMatchMarkerListImpl::GetMarkers() const {
+const HeapVector<Member<DocumentMarker>>& TextMatchMarkerListImpl::GetMarkers()
+ const {
return markers_;
}
« no previous file with comments | « third_party/WebKit/Source/core/editing/markers/TextMatchMarkerListImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698