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

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

Issue 23241010: Support subpixel values for text-shadow and box-shadow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressed review comments Created 6 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
« no previous file with comments | « Source/core/rendering/style/ShadowList.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/animation/AnimationUtilities.h
diff --git a/Source/platform/animation/AnimationUtilities.h b/Source/platform/animation/AnimationUtilities.h
index 9b92bd0b864d9e1748896c326be2cc0d25b0a522..81a8a73f5a2dc03230b85e1ec0d82928e11c9220 100644
--- a/Source/platform/animation/AnimationUtilities.h
+++ b/Source/platform/animation/AnimationUtilities.h
@@ -28,6 +28,7 @@
#include "platform/LayoutUnit.h"
#include "platform/PlatformExport.h"
+#include "platform/geometry/FloatPoint.h"
#include "platform/geometry/IntPoint.h"
#include "wtf/MathExtras.h"
#include "wtf/TypeTraits.h"
@@ -67,6 +68,11 @@ inline IntPoint blend(const IntPoint& from, const IntPoint& to, double progress)
return IntPoint(blend(from.x(), to.x(), progress), blend(from.y(), to.y(), progress));
}
+inline FloatPoint blend(const FloatPoint& from, const FloatPoint& to, double progress)
+{
+ return FloatPoint(blend(from.x(), to.x(), progress), blend(from.y(), to.y(), progress));
+}
+
// Calculates the accuracy for evaluating a timing function for an animation with the specified duration.
inline double accuracyForDuration(double duration)
{
« no previous file with comments | « Source/core/rendering/style/ShadowList.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698