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

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

Issue 1215563002: Implement left property animation on InvalidatableStyleInterpolation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make Windows not crash Created 5 years, 5 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/animation/Keyframe.h ('k') | Source/core/animation/LengthInterpolationType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/LengthInterpolationType.h
diff --git a/Source/core/animation/LengthInterpolationType.h b/Source/core/animation/LengthInterpolationType.h
new file mode 100644
index 0000000000000000000000000000000000000000..7948a47c17d9243f6cacf33747068aafd5e068df
--- /dev/null
+++ b/Source/core/animation/LengthInterpolationType.h
@@ -0,0 +1,32 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef LengthInterpolationType_h
+#define LengthInterpolationType_h
+
+#include "core/animation/InterpolationType.h"
+#include "core/animation/LengthPropertyFunctions.h"
+
+namespace blink {
+
+class LengthInterpolationType : public InterpolationType {
+public:
+ LengthInterpolationType(CSSPropertyID);
+
+ PassOwnPtrWillBeRawPtr<InterpolationValue> maybeConvertUnderlyingValue(const StyleResolverState&) const final;
+ void apply(const InterpolableValue&, const NonInterpolableValue*, StyleResolverState&) const final;
+
+private:
+ PassOwnPtrWillBeRawPtr<InterpolationValue> maybeConvertLength(const Length&) const;
+ PassOwnPtrWillBeRawPtr<InterpolationValue> maybeConvertNeutral() const final;
+ PassOwnPtrWillBeRawPtr<InterpolationValue> maybeConvertInitial() const final;
+ PassOwnPtrWillBeRawPtr<InterpolationValue> maybeConvertInherit(const StyleResolverState*, ConversionCheckers&) const final;
+ PassOwnPtrWillBeRawPtr<InterpolationValue> maybeConvertValue(const CSSValue&, const StyleResolverState*, ConversionCheckers&) const final;
+
+ const ValueRange m_valueRange;
+};
+
+} // namespace blink
+
+#endif // LengthInterpolationType_h
« no previous file with comments | « Source/core/animation/Keyframe.h ('k') | Source/core/animation/LengthInterpolationType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698