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

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

Issue 2898953005: [DMC #16] Rename RenderedDocumentMarker to TextMatchMarker (Closed)
Patch Set: Rebase 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/TextMatchMarker.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 01bfa1bf31d8879938136a300b00594f6affcf16..7cd3231faca24f9d43c355ee35f9afe89475fce1 100644
--- a/third_party/WebKit/Source/core/editing/markers/TextMatchMarkerListImpl.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/TextMatchMarkerListImpl.cpp
@@ -8,7 +8,7 @@
#include "core/dom/Range.h"
#include "core/editing/EphemeralRange.h"
#include "core/editing/markers/DocumentMarkerListEditor.h"
-#include "core/editing/markers/RenderedDocumentMarker.h"
+#include "core/editing/markers/TextMatchMarker.h"
#include "third_party/WebKit/Source/core/editing/VisibleUnits.h"
namespace blink {
@@ -23,7 +23,7 @@ bool TextMatchMarkerListImpl::IsEmpty() const {
void TextMatchMarkerListImpl::Add(DocumentMarker* marker) {
DocumentMarkerListEditor::AddMarkerWithoutMergingOverlapping(
- &markers_, RenderedDocumentMarker::Create(*marker));
+ &markers_, TextMatchMarker::Create(*marker));
}
void TextMatchMarkerListImpl::Clear() {
@@ -58,7 +58,7 @@ DEFINE_TRACE(TextMatchMarkerListImpl) {
}
static void UpdateMarkerRenderedRect(const Node& node,
- RenderedDocumentMarker& marker) {
+ TextMatchMarker& marker) {
const Position start_position(&const_cast<Node&>(node), marker.StartOffset());
const Position end_position(&const_cast<Node&>(node), marker.EndOffset());
EphemeralRange range(start_position, end_position);
@@ -69,13 +69,12 @@ Vector<IntRect> TextMatchMarkerListImpl::RenderedRects(const Node& node) const {
Vector<IntRect> result;
for (DocumentMarker* marker : markers_) {
- RenderedDocumentMarker* const rendered_marker =
- ToRenderedDocumentMarker(marker);
- if (!rendered_marker->IsValid())
- UpdateMarkerRenderedRect(node, *rendered_marker);
- if (!rendered_marker->IsRendered())
+ TextMatchMarker* const text_match_marker = ToTextMatchMarker(marker);
+ if (!text_match_marker->IsValid())
+ UpdateMarkerRenderedRect(node, *text_match_marker);
+ if (!text_match_marker->IsRendered())
continue;
- result.push_back(rendered_marker->RenderedRect());
+ result.push_back(text_match_marker->RenderedRect());
}
return result;
« no previous file with comments | « third_party/WebKit/Source/core/editing/markers/TextMatchMarker.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698