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

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

Issue 2578043002: Rename apply() in CSSInterpolationType subclasses (Closed)
Patch Set: rebased Created 4 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CSSLengthInterpolationType_h 5 #ifndef CSSLengthInterpolationType_h
6 #define CSSLengthInterpolationType_h 6 #define CSSLengthInterpolationType_h
7 7
8 #include "core/animation/CSSInterpolationType.h" 8 #include "core/animation/CSSInterpolationType.h"
9 #include "core/animation/LengthPropertyFunctions.h" 9 #include "core/animation/LengthPropertyFunctions.h"
10 #include <memory> 10 #include <memory>
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class ComputedStyle; 14 class ComputedStyle;
15 15
16 class CSSLengthInterpolationType : public CSSInterpolationType { 16 class CSSLengthInterpolationType : public CSSInterpolationType {
17 public: 17 public:
18 CSSLengthInterpolationType(PropertyHandle); 18 CSSLengthInterpolationType(PropertyHandle);
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 float effectiveZoom(const ComputedStyle&) const; 31 float effectiveZoom(const ComputedStyle&) const;
32 32
33 InterpolationValue maybeConvertNeutral(const InterpolationValue& underlying, 33 InterpolationValue maybeConvertNeutral(const InterpolationValue& underlying,
34 ConversionCheckers&) const final; 34 ConversionCheckers&) const final;
35 InterpolationValue maybeConvertInitial(const StyleResolverState&, 35 InterpolationValue maybeConvertInitial(const StyleResolverState&,
36 ConversionCheckers&) const final; 36 ConversionCheckers&) const final;
37 InterpolationValue maybeConvertInherit(const StyleResolverState&, 37 InterpolationValue maybeConvertInherit(const StyleResolverState&,
38 ConversionCheckers&) const final; 38 ConversionCheckers&) const final;
39 InterpolationValue maybeConvertValue(const CSSValue&, 39 InterpolationValue maybeConvertValue(const CSSValue&,
40 const StyleResolverState&, 40 const StyleResolverState&,
41 ConversionCheckers&) const final; 41 ConversionCheckers&) const final;
42 42
43 PairwiseInterpolationValue maybeMergeSingles( 43 PairwiseInterpolationValue maybeMergeSingles(
44 InterpolationValue&& start, 44 InterpolationValue&& start,
45 InterpolationValue&& end) const final; 45 InterpolationValue&& end) const final;
46 46
47 const ValueRange m_valueRange; 47 const ValueRange m_valueRange;
48 }; 48 };
49 49
50 } // namespace blink 50 } // namespace blink
51 51
52 #endif // CSSLengthInterpolationType_h 52 #endif // CSSLengthInterpolationType_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698