OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef SVGNumberInterpolationType_h |
| 6 #define SVGNumberInterpolationType_h |
| 7 |
| 8 #include "core/animation/NumberAttributeFunctions.h" |
| 9 #include "core/animation/SVGInterpolationType.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class SVGNumberInterpolationType : public SVGInterpolationType { |
| 14 public: |
| 15 SVGNumberInterpolationType(const QualifiedName& attribute) |
| 16 : SVGInterpolationType(attribute) |
| 17 , m_isNonNegative(NumberAttributeFunctions::isNonNegative(attribute)) |
| 18 { } |
| 19 |
| 20 private: |
| 21 PassOwnPtr<InterpolationValue> maybeConvertNeutral() const final; |
| 22 PassOwnPtr<InterpolationValue> maybeConvertSVGValue(const SVGPropertyBase& s
vgValue) const final; |
| 23 PassOwnPtr<InterpolationValue> maybeConvertUnderlyingValue(const Interpolati
onEnvironment&) const final; |
| 24 RefPtrWillBeRawPtr<SVGPropertyBase> appliedSVGValue(const InterpolableValue&
, const NonInterpolableValue*) const final; |
| 25 |
| 26 bool m_isNonNegative; |
| 27 }; |
| 28 |
| 29 } // namespace blink |
| 30 |
| 31 #endif // SVGNumberInterpolationType_h |
OLD | NEW |