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

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

Issue 1645913002: Add additive animation support for CSS property motion-rotation (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/CSSMotionRotationInterpolationType.h
diff --git a/third_party/WebKit/Source/core/animation/CSSClipInterpolationType.h b/third_party/WebKit/Source/core/animation/CSSMotionRotationInterpolationType.h
similarity index 78%
copy from third_party/WebKit/Source/core/animation/CSSClipInterpolationType.h
copy to third_party/WebKit/Source/core/animation/CSSMotionRotationInterpolationType.h
index 45a3a6e134ef812294cb1edec9a60ecf0613ed1b..dbeec445e30e2a8f43e748e465455201db246b3f 100644
--- a/third_party/WebKit/Source/core/animation/CSSClipInterpolationType.h
+++ b/third_party/WebKit/Source/core/animation/CSSMotionRotationInterpolationType.h
@@ -2,23 +2,22 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CSSClipInterpolationType_h
-#define CSSClipInterpolationType_h
+#ifndef CSSMotionRotationInterpolationType_h
+#define CSSMotionRotationInterpolationType_h
#include "core/animation/CSSInterpolationType.h"
namespace blink {
-class CSSClipInterpolationType : public CSSInterpolationType {
+class CSSMotionRotationInterpolationType : public CSSInterpolationType {
public:
- CSSClipInterpolationType(CSSPropertyID property)
+ CSSMotionRotationInterpolationType(CSSPropertyID property)
: CSSInterpolationType(property)
{
- ASSERT(property == CSSPropertyClip);
+ ASSERT(property == CSSPropertyMotionRotation);
}
InterpolationValue maybeConvertUnderlyingValue(const InterpolationEnvironment&) const final;
- PairwiseInterpolationValue mergeSingleConversions(InterpolationValue& start, InterpolationValue& end) const final;
void composite(UnderlyingValueOwner&, double underlyingFraction, const InterpolationValue&) const final;
void apply(const InterpolableValue&, const NonInterpolableValue*, InterpolationEnvironment&) const final;
@@ -27,8 +26,9 @@ private:
InterpolationValue maybeConvertInitial() const final;
InterpolationValue maybeConvertInherit(const StyleResolverState&, ConversionCheckers&) const final;
InterpolationValue maybeConvertValue(const CSSValue&, const StyleResolverState&, ConversionCheckers&) const final;
+ PairwiseInterpolationValue mergeSingleConversions(InterpolationValue& start, InterpolationValue& end) const final;
};
} // namespace blink
-#endif // CSSClipInterpolationType_h
+#endif // CSSMotionRotationInterpolationType_h

Powered by Google App Engine
This is Rietveld 408576698