| 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/SVGNumberListInterpolationType.h" | 5 #include "core/animation/SVGNumberListInterpolationType.h" |
| 6 | 6 |
| 7 #include <memory> |
| 7 #include "core/animation/InterpolationEnvironment.h" | 8 #include "core/animation/InterpolationEnvironment.h" |
| 8 #include "core/animation/UnderlyingLengthChecker.h" | 9 #include "core/animation/UnderlyingLengthChecker.h" |
| 9 #include "core/svg/SVGNumberList.h" | 10 #include "core/svg/SVGNumberList.h" |
| 10 #include <memory> | |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 InterpolationValue SVGNumberListInterpolationType::maybeConvertNeutral( | 14 InterpolationValue SVGNumberListInterpolationType::maybeConvertNeutral( |
| 15 const InterpolationValue& underlying, | 15 const InterpolationValue& underlying, |
| 16 ConversionCheckers& conversionCheckers) const { | 16 ConversionCheckers& conversionCheckers) const { |
| 17 size_t underlyingLength = | 17 size_t underlyingLength = |
| 18 UnderlyingLengthChecker::getUnderlyingLength(underlying); | 18 UnderlyingLengthChecker::getUnderlyingLength(underlying); |
| 19 conversionCheckers.push_back( | 19 conversionCheckers.push_back( |
| 20 UnderlyingLengthChecker::create(underlyingLength)); | 20 UnderlyingLengthChecker::create(underlyingLength)); |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 const NonInterpolableValue*) const { | 97 const NonInterpolableValue*) const { |
| 98 SVGNumberList* result = SVGNumberList::create(); | 98 SVGNumberList* result = SVGNumberList::create(); |
| 99 const InterpolableList& list = toInterpolableList(interpolableValue); | 99 const InterpolableList& list = toInterpolableList(interpolableValue); |
| 100 for (size_t i = 0; i < list.length(); i++) | 100 for (size_t i = 0; i < list.length(); i++) |
| 101 result->append( | 101 result->append( |
| 102 SVGNumber::create(toInterpolableNumber(list.get(i))->value())); | 102 SVGNumber::create(toInterpolableNumber(list.get(i))->value())); |
| 103 return result; | 103 return result; |
| 104 } | 104 } |
| 105 | 105 |
| 106 } // namespace blink | 106 } // namespace blink |
| OLD | NEW |