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

Unified Diff: third_party/WebKit/Source/platform/geometry/LayoutRectTest.cpp

Issue 1660863002: Force all LayoutUnit construction to be explicit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also fix LayoutRectTest.cpp Created 4 years, 10 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/platform/geometry/LayoutRectTest.cpp
diff --git a/third_party/WebKit/Source/platform/geometry/LayoutRectTest.cpp b/third_party/WebKit/Source/platform/geometry/LayoutRectTest.cpp
index 04ad8bb4131d9315bf360656ede48022a6c5c647..305810f40ba3e8ef38b86423fad3d5fd6798f9f8 100644
--- a/third_party/WebKit/Source/platform/geometry/LayoutRectTest.cpp
+++ b/third_party/WebKit/Source/platform/geometry/LayoutRectTest.cpp
@@ -18,7 +18,7 @@ TEST(LayoutRectTest, ToString)
LayoutRect rect(1, 2, 3, 4);
EXPECT_EQ(String("1.000000,2.000000 3.000000x4.000000"), rect.toString());
- LayoutRect granularRect(1.6f, 2.7f, 3.8f, 4.9f);
+ LayoutRect granularRect(LayoutUnit(1.6f), LayoutUnit(2.7f), LayoutUnit(3.8f), LayoutUnit(4.9f));
EXPECT_EQ(String("1.593750,2.687500 3.796875x4.890625"), granularRect.toString());
}
#endif
« no previous file with comments | « third_party/WebKit/Source/platform/geometry/LayoutRect.h ('k') | third_party/WebKit/Source/platform/geometry/LayoutSize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698