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

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

Issue 2920913003: Rename TextMatchMarker::rendered_rect_ to layout_rect_ (Closed)
Patch Set: Rename DMC::RenderedRectsForTextMatchMarkers() Created 3 years, 6 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/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 4dfaee97ead5fb2983c0c1539405dd525c51f181..6a89e3c53b5321eec53b0925160bad61fc392189 100644
--- a/third_party/WebKit/Source/core/editing/markers/TextMatchMarkerListImpl.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/TextMatchMarkerListImpl.cpp
@@ -57,24 +57,23 @@ DEFINE_TRACE(TextMatchMarkerListImpl) {
DocumentMarkerList::Trace(visitor);
}
-static void UpdateMarkerRenderedRect(const Node& node,
- TextMatchMarker& marker) {
+static void UpdateMarkerLayoutRect(const Node& node, 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);
- marker.SetRenderedRect(LayoutRect(ComputeTextRect(range)));
+ marker.SetLayoutRect(LayoutRect(ComputeTextRect(range)));
}
-Vector<IntRect> TextMatchMarkerListImpl::RenderedRects(const Node& node) const {
+Vector<IntRect> TextMatchMarkerListImpl::LayoutRects(const Node& node) const {
Vector<IntRect> result;
for (DocumentMarker* marker : markers_) {
TextMatchMarker* const text_match_marker = ToTextMatchMarker(marker);
if (!text_match_marker->IsValid())
- UpdateMarkerRenderedRect(node, *text_match_marker);
+ UpdateMarkerLayoutRect(node, *text_match_marker);
if (!text_match_marker->IsRendered())
continue;
- result.push_back(text_match_marker->RenderedRect());
+ result.push_back(text_match_marker->GetLayoutRect());
}
return result;

Powered by Google App Engine
This is Rietveld 408576698