| 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 #include "core/animation/SVGIntegerOptionalIntegerInterpolationType.h" | 5 #include "core/animation/SVGIntegerOptionalIntegerInterpolationType.h" |
| 6 | 6 |
| 7 #include <memory> |
| 7 #include "core/animation/InterpolationEnvironment.h" | 8 #include "core/animation/InterpolationEnvironment.h" |
| 8 #include "core/svg/SVGIntegerOptionalInteger.h" | 9 #include "core/svg/SVGIntegerOptionalInteger.h" |
| 9 #include <memory> | |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 InterpolationValue | 13 InterpolationValue |
| 14 SVGIntegerOptionalIntegerInterpolationType::maybeConvertNeutral( | 14 SVGIntegerOptionalIntegerInterpolationType::maybeConvertNeutral( |
| 15 const InterpolationValue&, | 15 const InterpolationValue&, |
| 16 ConversionCheckers&) const { | 16 ConversionCheckers&) const { |
| 17 std::unique_ptr<InterpolableList> result = InterpolableList::create(2); | 17 std::unique_ptr<InterpolableList> result = InterpolableList::create(2); |
| 18 result->set(0, InterpolableNumber::create(0)); | 18 result->set(0, InterpolableNumber::create(0)); |
| 19 result->set(1, InterpolableNumber::create(0)); | 19 result->set(1, InterpolableNumber::create(0)); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 43 | 43 |
| 44 SVGPropertyBase* SVGIntegerOptionalIntegerInterpolationType::appliedSVGValue( | 44 SVGPropertyBase* SVGIntegerOptionalIntegerInterpolationType::appliedSVGValue( |
| 45 const InterpolableValue& interpolableValue, | 45 const InterpolableValue& interpolableValue, |
| 46 const NonInterpolableValue*) const { | 46 const NonInterpolableValue*) const { |
| 47 const InterpolableList& list = toInterpolableList(interpolableValue); | 47 const InterpolableList& list = toInterpolableList(interpolableValue); |
| 48 return SVGIntegerOptionalInteger::create(toPositiveInteger(list.get(0)), | 48 return SVGIntegerOptionalInteger::create(toPositiveInteger(list.get(0)), |
| 49 toPositiveInteger(list.get(1))); | 49 toPositiveInteger(list.get(1))); |
| 50 } | 50 } |
| 51 | 51 |
| 52 } // namespace blink | 52 } // namespace blink |
| OLD | NEW |