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

Unified Diff: third_party/WebKit/Source/platform/LengthFunctions.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/LengthFunctions.cpp
diff --git a/third_party/WebKit/Source/platform/LengthFunctions.cpp b/third_party/WebKit/Source/platform/LengthFunctions.cpp
index 0a15e5171dc3df64b62c720f63cf4653db1e8681..8b4a68f0ced5e7da63cb9d207bdb9b31c1a35d65 100644
--- a/third_party/WebKit/Source/platform/LengthFunctions.cpp
+++ b/third_party/WebKit/Source/platform/LengthFunctions.cpp
@@ -28,9 +28,9 @@
namespace blink {
-int intValueForLength(const Length& length, LayoutUnit maximumValue)
+int intValueForLength(const Length& length, int maximumValue)
{
- return static_cast<int>(valueForLength(length, maximumValue));
+ return static_cast<int>(valueForLength(length, LayoutUnit(maximumValue)));
}
float floatValueForLength(const Length& length, float maximumValue)
« no previous file with comments | « third_party/WebKit/Source/platform/LengthFunctions.h ('k') | third_party/WebKit/Source/platform/geometry/LayoutPoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698