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

Unified Diff: third_party/WebKit/Source/core/layout/OverflowModelTest.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/OverflowModelTest.cpp
diff --git a/third_party/WebKit/Source/core/layout/OverflowModelTest.cpp b/third_party/WebKit/Source/core/layout/OverflowModelTest.cpp
index 38ff381894360e7bf9bfb0fb9af162889fef8a36..27f0877adbf79a0999945b671375ee7cf6cacd15 100644
--- a/third_party/WebKit/Source/core/layout/OverflowModelTest.cpp
+++ b/third_party/WebKit/Source/core/layout/OverflowModelTest.cpp
@@ -157,20 +157,20 @@ TEST_F(OverflowModelTest, AddContentsVisualOverflowEmpty)
TEST_F(OverflowModelTest, MoveAffectsLayoutOverflow)
{
- m_overflow.move(500, 100);
+ m_overflow.move(LayoutUnit(500), LayoutUnit(100));
EXPECT_EQ(LayoutRect(510, 110, 80, 80), m_overflow.layoutOverflowRect());
}
TEST_F(OverflowModelTest, MoveAffectsVisualOverflow)
{
- m_overflow.move(500, 100);
+ m_overflow.move(LayoutUnit(500), LayoutUnit(100));
EXPECT_EQ(LayoutRect(500, 100, 100, 100), m_overflow.visualOverflowRect());
}
TEST_F(OverflowModelTest, MoveAffectsContentsVisualOverflow)
{
m_overflow.addContentsVisualOverflow(LayoutRect(0, 0, 10, 10));
- m_overflow.move(500, 100);
+ m_overflow.move(LayoutUnit(500), LayoutUnit(100));
EXPECT_EQ(LayoutRect(500, 100, 10, 10), m_overflow.contentsVisualOverflowRect());
}

Powered by Google App Engine
This is Rietveld 408576698