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

Unified Diff: third_party/WebKit/Source/platform/animation/AnimationUtilities.h

Issue 1648573002: Transition to explicit constructors in LayoutUnit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove int constructors for size/point... they result in incorrect conversions until LayoutUnit is … 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/platform/animation/AnimationUtilities.h
diff --git a/third_party/WebKit/Source/platform/animation/AnimationUtilities.h b/third_party/WebKit/Source/platform/animation/AnimationUtilities.h
index 59fe5b6ad7e3cedcf6497289f33e501654251b74..b7e1ca1e755e06406400c83cb682eea2f928c5c9 100644
--- a/third_party/WebKit/Source/platform/animation/AnimationUtilities.h
+++ b/third_party/WebKit/Source/platform/animation/AnimationUtilities.h
@@ -61,7 +61,7 @@ inline float blend(float from, float to, double progress)
inline LayoutUnit blend(LayoutUnit from, LayoutUnit to, double progress)
{
- return from + (to - from) * progress;
+ return LayoutUnit(from + (to - from) * progress);
}
inline IntPoint blend(const IntPoint& from, const IntPoint& to, double progress)
« no previous file with comments | « third_party/WebKit/Source/platform/LengthFunctions.cpp ('k') | third_party/WebKit/Source/platform/geometry/LayoutPoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698