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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp

Issue 1647313003: Continue converting to explicit LayoutUnit constructors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@explicitContstructors
Patch Set: Add TODO Created 4 years, 11 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/layout/LayoutObjectTest.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp b/third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp
index 330d2954b0279f7e8b74ebff46c3cb647ef5f2cb..c62946e1c6896bb4809b8be9f4e1b79de0b9b381 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp
@@ -116,7 +116,7 @@ TEST_F(LayoutObjectTest, MapToVisibleRectInContainerSpace)
LayoutBlock* container = toLayoutBlock(document().getElementById("container")->layoutObject());
LayoutText* text = toLayoutText(container->lastChild());
- container->setScrollTop(50);
+ container->setScrollTop(LayoutUnit(50));
LayoutRect rect(0, 60, 20, 20);
text->mapToVisibleRectInAncestorSpace(container, rect, nullptr);
EXPECT_TRUE(rect == LayoutRect(0, 10, 20, 20));

Powered by Google App Engine
This is Rietveld 408576698