| OLD | NEW |
| 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 LengthInterpolationType_h | 5 #ifndef LengthInterpolationType_h |
| 6 #define LengthInterpolationType_h | 6 #define LengthInterpolationType_h |
| 7 | 7 |
| 8 #include "core/animation/InterpolationType.h" | 8 #include "core/animation/InterpolationType.h" |
| 9 #include "core/animation/LengthPropertyFunctions.h" | 9 #include "core/animation/LengthPropertyFunctions.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class LengthInterpolationType : public InterpolationType { | 13 class LengthInterpolationType : public InterpolationType { |
| 14 public: | 14 public: |
| 15 LengthInterpolationType(CSSPropertyID); | 15 LengthInterpolationType(CSSPropertyID); |
| 16 | 16 |
| 17 PassOwnPtrWillBeRawPtr<InterpolationValue> maybeConvertUnderlyingValue(const
StyleResolverState&) const final; | 17 PassOwnPtr<InterpolationValue> maybeConvertUnderlyingValue(const StyleResolv
erState&) const final; |
| 18 void apply(const InterpolableValue&, const NonInterpolableValue*, StyleResol
verState&) const final; | 18 void apply(const InterpolableValue&, const NonInterpolableValue*, StyleResol
verState&) const final; |
| 19 | 19 |
| 20 private: | 20 private: |
| 21 PassOwnPtrWillBeRawPtr<InterpolationValue> maybeConvertLength(const Length&,
float zoom) const; | 21 PassOwnPtr<InterpolationValue> maybeConvertLength(const Length&, float zoom)
const; |
| 22 PassOwnPtrWillBeRawPtr<InterpolationValue> maybeConvertNeutral() const final
; | 22 PassOwnPtr<InterpolationValue> maybeConvertNeutral() const final; |
| 23 PassOwnPtrWillBeRawPtr<InterpolationValue> maybeConvertInitial() const final
; | 23 PassOwnPtr<InterpolationValue> maybeConvertInitial() const final; |
| 24 PassOwnPtrWillBeRawPtr<InterpolationValue> maybeConvertInherit(const StyleRe
solverState*, ConversionCheckers&) const final; | 24 PassOwnPtr<InterpolationValue> maybeConvertInherit(const StyleResolverState*
, ConversionCheckers&) const final; |
| 25 PassOwnPtrWillBeRawPtr<InterpolationValue> maybeConvertValue(const CSSValue&
, const StyleResolverState*, ConversionCheckers&) const final; | 25 PassOwnPtr<InterpolationValue> maybeConvertValue(const CSSValue&, const Styl
eResolverState*, ConversionCheckers&) const final; |
| 26 | 26 |
| 27 const ValueRange m_valueRange; | 27 const ValueRange m_valueRange; |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 } // namespace blink | 30 } // namespace blink |
| 31 | 31 |
| 32 #endif // LengthInterpolationType_h | 32 #endif // LengthInterpolationType_h |
| OLD | NEW |