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

Unified Diff: third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.h

Issue 1644883002: Add additive animation support for CSS property translate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_propertyInterpolationTypesMapping
Patch Set: Rebased Created 4 years, 10 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: 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

Powered by Google App Engine
This is Rietveld 408576698