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

Unified Diff: Source/core/animation/LengthInterpolationType.h

Issue 1243313002: Migrate the remaining CSS properties interpolable as Lengths to LengthInterpolationType (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add composition tests Created 5 years, 3 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: Source/core/animation/LengthInterpolationType.h
diff --git a/Source/core/animation/LengthInterpolationType.h b/Source/core/animation/LengthInterpolationType.h
index c743794a3a0d660cb8fd4e662176b9a61cba7e37..64bb35204e07624dc496d1599d4ef871e6910a05 100644
--- a/Source/core/animation/LengthInterpolationType.h
+++ b/Source/core/animation/LengthInterpolationType.h
@@ -10,6 +10,8 @@
namespace blink {
+class ComputedStyle;
+
class LengthInterpolationType : public InterpolationType {
public:
LengthInterpolationType(CSSPropertyID);
@@ -18,6 +20,8 @@ public:
void apply(const InterpolableValue&, const NonInterpolableValue*, StyleResolverState&) const final;
private:
+ float effectiveZoom(const ComputedStyle&) const;
+
PassOwnPtr<InterpolationValue> maybeConvertLength(const Length&, float zoom) const;
PassOwnPtr<InterpolationValue> maybeConvertNeutral() const final;
PassOwnPtr<InterpolationValue> maybeConvertInitial() const final;
« no previous file with comments | « LayoutTests/animations/interpolation/width-interpolation.html ('k') | Source/core/animation/LengthInterpolationType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698