| 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 ListInterpolationFunctions_h | 5 #ifndef ListInterpolationFunctions_h |
| 6 #define ListInterpolationFunctions_h | 6 #define ListInterpolationFunctions_h |
| 7 | 7 |
| 8 #include "core/animation/InterpolationValue.h" | 8 #include "core/animation/InterpolationValue.h" |
| 9 #include "core/animation/PairwiseInterpolationValue.h" | 9 #include "core/animation/PairwiseInterpolationValue.h" |
| 10 #include "wtf/Vector.h" | 10 #include "wtf/Vector.h" |
| 11 #include <memory> | 11 #include <memory> |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class CSSValueList; | |
| 16 class UnderlyingValueOwner; | 15 class UnderlyingValueOwner; |
| 17 class InterpolationType; | 16 class InterpolationType; |
| 18 | 17 |
| 19 class ListInterpolationFunctions { | 18 class ListInterpolationFunctions { |
| 20 public: | 19 public: |
| 21 template <typename CreateItemCallback> | 20 template <typename CreateItemCallback> |
| 22 static InterpolationValue createList(size_t length, CreateItemCallback); | 21 static InterpolationValue createList(size_t length, CreateItemCallback); |
| 23 static InterpolationValue createEmptyList() { | 22 static InterpolationValue createEmptyList() { |
| 24 return InterpolationValue(InterpolableList::create(0)); | 23 return InterpolationValue(InterpolableList::create(0)); |
| 25 } | 24 } |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 nonInterpolableValues[i] = item.nonInterpolableValue.release(); | 102 nonInterpolableValues[i] = item.nonInterpolableValue.release(); |
| 104 } | 103 } |
| 105 return InterpolationValue( | 104 return InterpolationValue( |
| 106 std::move(interpolableList), | 105 std::move(interpolableList), |
| 107 NonInterpolableList::create(std::move(nonInterpolableValues))); | 106 NonInterpolableList::create(std::move(nonInterpolableValues))); |
| 108 } | 107 } |
| 109 | 108 |
| 110 } // namespace blink | 109 } // namespace blink |
| 111 | 110 |
| 112 #endif // ListInterpolationFunctions_h | 111 #endif // ListInterpolationFunctions_h |
| OLD | NEW |