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 THIRD_PARTY_BLINK_RENDERER_CORE_ANIMATION_SVG_NUMBER_OPTIONAL_NUMBER_INTERPOLATION_TYPE_H_ 6 #define THIRD_PARTY_BLINK_RENDERER_CORE_ANIMATION_SVG_NUMBER_OPTIONAL_NUMBER_INTERPOLATION_TYPE_H_ 7 8 #include "third_party/blink/renderer/core/animation/svg_interpolation_type.h" 9 10 namespace blink { 11 12 class SVGNumberOptionalNumberInterpolationType : public SVGInterpolationType { 13 public: SVGNumberOptionalNumberInterpolationType(const QualifiedName & attribute)14 SVGNumberOptionalNumberInterpolationType(const QualifiedName& attribute) 15 : SVGInterpolationType(attribute) {} 16 17 private: 18 InterpolationValue MaybeConvertNeutral(const InterpolationValue& underlying, 19 ConversionCheckers&) const final; 20 InterpolationValue MaybeConvertSVGValue( 21 const SVGPropertyBase& svg_value) const final; 22 SVGPropertyBase* AppliedSVGValue(const InterpolableValue&, 23 const NonInterpolableValue*) const final; 24 }; 25 26 } // namespace blink 27 28 #endif // THIRD_PARTY_BLINK_RENDERER_CORE_ANIMATION_SVG_NUMBER_OPTIONAL_NUMBER_INTERPOLATION_TYPE_H_ 29