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

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

Issue 1640643002: Add additive animation support for CSS property clip (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/CSSClipInterpolationType.h
diff --git a/third_party/WebKit/Source/core/animation/CSSPathInterpolationType.h b/third_party/WebKit/Source/core/animation/CSSClipInterpolationType.h
similarity index 79%
copy from third_party/WebKit/Source/core/animation/CSSPathInterpolationType.h
copy to third_party/WebKit/Source/core/animation/CSSClipInterpolationType.h
index 647613960182eb5ec6942edc1f650dcccac201a9..45a3a6e134ef812294cb1edec9a60ecf0613ed1b 100644
--- a/third_party/WebKit/Source/core/animation/CSSPathInterpolationType.h
+++ b/third_party/WebKit/Source/core/animation/CSSClipInterpolationType.h
@@ -2,31 +2,33 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CSSPathInterpolationType_h
-#define CSSPathInterpolationType_h
+#ifndef CSSClipInterpolationType_h
+#define CSSClipInterpolationType_h
#include "core/animation/CSSInterpolationType.h"
namespace blink {
-class CSSPathInterpolationType : public CSSInterpolationType {
+class CSSClipInterpolationType : public CSSInterpolationType {
public:
- CSSPathInterpolationType(CSSPropertyID property)
+ CSSClipInterpolationType(CSSPropertyID property)
: CSSInterpolationType(property)
- { }
+ {
+ ASSERT(property == CSSPropertyClip);
+ }
- void apply(const InterpolableValue&, const NonInterpolableValue*, InterpolationEnvironment&) const final;
+ 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;
-protected:
+private:
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;
- InterpolationValue maybeConvertUnderlyingValue(const InterpolationEnvironment&) const final;
- PairwiseInterpolationValue mergeSingleConversions(InterpolationValue& start, InterpolationValue& end) const final;
};
} // namespace blink
-#endif // CSSPathInterpolationType_h
+#endif // CSSClipInterpolationType_h

Powered by Google App Engine
This is Rietveld 408576698