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

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

Issue 2886893008: [DMC #8] Rename DocumentMarkerController::RenderedRectsForMarkers() (Closed)
Patch Set: 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
Index: third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp
index d741378ced50b52c93943adc0c196f07832e5642..a5af0a4d0d92d26a13beb63e2855b8f9fefd0f8e 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp
@@ -205,13 +205,13 @@ TEST_F(DocumentMarkerControllerTest, UpdateRenderedRects) {
Element* div = ToElement(GetDocument().body()->firstChild());
MarkNodeContentsTextMatch(div);
Vector<IntRect> rendered_rects =
- MarkerController().RenderedRectsForMarkers(DocumentMarker::kTextMatch);
+ MarkerController().RenderedRectsForTextMatchMarkers();
EXPECT_EQ(1u, rendered_rects.size());
div->setAttribute(HTMLNames::styleAttr, "margin: 200px");
GetDocument().UpdateStyleAndLayout();
Vector<IntRect> new_rendered_rects =
- MarkerController().RenderedRectsForMarkers(DocumentMarker::kTextMatch);
+ MarkerController().RenderedRectsForTextMatchMarkers();
EXPECT_EQ(1u, new_rendered_rects.size());
EXPECT_NE(rendered_rects[0], new_rendered_rects[0]);
}

Powered by Google App Engine
This is Rietveld 408576698