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

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: all working! Created 7 years, 1 month 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: Source/platform/animation/AnimationUtilities.h
diff --git a/Source/platform/animation/AnimationUtilities.h b/Source/platform/animation/AnimationUtilities.h
index 9b92bd0b864d9e1748896c326be2cc0d25b0a522..7992f40e6d57a57cd3630a00aa5e558940f140fa 100644
--- a/Source/platform/animation/AnimationUtilities.h
+++ b/Source/platform/animation/AnimationUtilities.h
@@ -29,6 +29,7 @@
#include "platform/LayoutUnit.h"
#include "platform/PlatformExport.h"
#include "platform/geometry/IntPoint.h"
+#include "platform/geometry/LayoutPoint.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 LayoutPoint blend(const LayoutPoint& from, const LayoutPoint& to, double progress)
+{
+ return LayoutPoint(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)
{
« Source/core/rendering/style/ShadowData.h ('K') | « Source/core/rendering/style/ShadowList.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698