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

Side by Side Diff: third_party/WebKit/Source/core/animation/CSSOffsetRotateInterpolationType.h

Issue 2578043002: Rename apply() in CSSInterpolationType subclasses (Closed)
Patch Set: rebased Created 3 years, 12 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CSSOffsetRotateInterpolationType_h 5 #ifndef CSSOffsetRotateInterpolationType_h
6 #define CSSOffsetRotateInterpolationType_h 6 #define CSSOffsetRotateInterpolationType_h
7 7
8 #include "core/animation/CSSInterpolationType.h" 8 #include "core/animation/CSSInterpolationType.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class CSSOffsetRotateInterpolationType : public CSSInterpolationType { 12 class CSSOffsetRotateInterpolationType : public CSSInterpolationType {
13 public: 13 public:
14 CSSOffsetRotateInterpolationType(PropertyHandle property) 14 CSSOffsetRotateInterpolationType(PropertyHandle property)
15 : CSSInterpolationType(property) { 15 : CSSInterpolationType(property) {
16 DCHECK(cssProperty() == CSSPropertyOffsetRotate || 16 DCHECK(cssProperty() == CSSPropertyOffsetRotate ||
17 cssProperty() == CSSPropertyOffsetRotation); 17 cssProperty() == CSSPropertyOffsetRotation);
18 } 18 }
19 19
20 InterpolationValue maybeConvertUnderlyingValue( 20 InterpolationValue maybeConvertUnderlyingValue(
21 const InterpolationEnvironment&) const final; 21 const InterpolationEnvironment&) const final;
22 void composite(UnderlyingValueOwner&, 22 void composite(UnderlyingValueOwner&,
23 double underlyingFraction, 23 double underlyingFraction,
24 const InterpolationValue&, 24 const InterpolationValue&,
25 double interpolationFraction) const final; 25 double interpolationFraction) const final;
26 void apply(const InterpolableValue&, 26 void applyStandardPropertyValue(const InterpolableValue&,
27 const NonInterpolableValue*, 27 const NonInterpolableValue*,
28 InterpolationEnvironment&) const final; 28 StyleResolverState&) const final;
29 29
30 private: 30 private:
31 InterpolationValue maybeConvertNeutral(const InterpolationValue& underlying, 31 InterpolationValue maybeConvertNeutral(const InterpolationValue& underlying,
32 ConversionCheckers&) const final; 32 ConversionCheckers&) const final;
33 InterpolationValue maybeConvertInitial(const StyleResolverState&, 33 InterpolationValue maybeConvertInitial(const StyleResolverState&,
34 ConversionCheckers&) const final; 34 ConversionCheckers&) const final;
35 InterpolationValue maybeConvertInherit(const StyleResolverState&, 35 InterpolationValue maybeConvertInherit(const StyleResolverState&,
36 ConversionCheckers&) const final; 36 ConversionCheckers&) const final;
37 InterpolationValue maybeConvertValue(const CSSValue&, 37 InterpolationValue maybeConvertValue(const CSSValue&,
38 const StyleResolverState&, 38 const StyleResolverState&,
39 ConversionCheckers&) const final; 39 ConversionCheckers&) const final;
40 PairwiseInterpolationValue maybeMergeSingles( 40 PairwiseInterpolationValue maybeMergeSingles(
41 InterpolationValue&& start, 41 InterpolationValue&& start,
42 InterpolationValue&& end) const final; 42 InterpolationValue&& end) const final;
43 }; 43 };
44 44
45 } // namespace blink 45 } // namespace blink
46 46
47 #endif // CSSOffsetRotateInterpolationType_h 47 #endif // CSSOffsetRotateInterpolationType_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698