Index: third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.h |
diff --git a/third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.h b/third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.h |
similarity index 69% |
copy from third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.h |
copy to third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.h |
index 868da37e25a4b60ce6d322faf18d4269f630545d..80671448edd7a1db2b6648063ccbc42c9409c27e 100644 |
--- a/third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.h |
+++ b/third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.h |
@@ -1,31 +1,33 @@ |
-// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Copyright 2016 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 CSSNumberInterpolationType_h |
-#define CSSNumberInterpolationType_h |
+#ifndef CSSTranslateInterpolationType_h |
+#define CSSTranslateInterpolationType_h |
#include "core/animation/CSSInterpolationType.h" |
namespace blink { |
-class CSSNumberInterpolationType : public CSSInterpolationType { |
+class CSSTranslateInterpolationType : public CSSInterpolationType { |
public: |
- CSSNumberInterpolationType(CSSPropertyID property) |
+ CSSTranslateInterpolationType(CSSPropertyID property) |
: CSSInterpolationType(property) |
- { } |
+ { |
+ ASSERT(property == CSSPropertyTranslate); |
+ } |
InterpolationValue maybeConvertUnderlyingValue(const InterpolationEnvironment&) const final; |
void apply(const InterpolableValue&, const NonInterpolableValue*, InterpolationEnvironment&) const final; |
private: |
- InterpolationValue createNumberValue(double number) const; |
InterpolationValue maybeConvertNeutral(const InterpolationValue& underlying, ConversionCheckers&) const final; |
InterpolationValue maybeConvertInitial() const final; |
InterpolationValue maybeConvertInherit(const StyleResolverState&, ConversionCheckers&) const final; |
InterpolationValue maybeConvertValue(const CSSValue&, const StyleResolverState&, ConversionCheckers&) const final; |
+ |
}; |
} // namespace blink |
-#endif // CSSNumberInterpolationType_h |
+#endif // CSSTranslateInterpolationType_h |