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/CSSImageListInterpolationType.h" | 5 #include "core/animation/CSSImageListInterpolationType.h" |
6 | 6 |
| 7 #include <memory> |
7 #include "core/animation/CSSImageInterpolationType.h" | 8 #include "core/animation/CSSImageInterpolationType.h" |
8 #include "core/animation/ImageListPropertyFunctions.h" | 9 #include "core/animation/ImageListPropertyFunctions.h" |
9 #include "core/animation/ListInterpolationFunctions.h" | 10 #include "core/animation/ListInterpolationFunctions.h" |
10 #include "core/css/CSSIdentifierValue.h" | 11 #include "core/css/CSSIdentifierValue.h" |
11 #include "core/css/CSSValueList.h" | 12 #include "core/css/CSSValueList.h" |
12 #include "core/css/resolver/StyleResolverState.h" | 13 #include "core/css/resolver/StyleResolverState.h" |
13 #include "wtf/PtrUtil.h" | 14 #include "wtf/PtrUtil.h" |
14 #include <memory> | |
15 | 15 |
16 namespace blink { | 16 namespace blink { |
17 | 17 |
18 class UnderlyingImageListChecker : public InterpolationType::ConversionChecker { | 18 class UnderlyingImageListChecker : public InterpolationType::ConversionChecker { |
19 public: | 19 public: |
20 ~UnderlyingImageListChecker() final {} | 20 ~UnderlyingImageListChecker() final {} |
21 | 21 |
22 static std::unique_ptr<UnderlyingImageListChecker> create( | 22 static std::unique_ptr<UnderlyingImageListChecker> create( |
23 const InterpolationValue& underlying) { | 23 const InterpolationValue& underlying) { |
24 return WTF::wrapUnique(new UnderlyingImageListChecker(underlying)); | 24 return WTF::wrapUnique(new UnderlyingImageListChecker(underlying)); |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 for (size_t i = 0; i < length; i++) { | 181 for (size_t i = 0; i < length; i++) { |
182 imageList[i] = CSSImageInterpolationType::resolveStyleImage( | 182 imageList[i] = CSSImageInterpolationType::resolveStyleImage( |
183 cssProperty(), *interpolableList.get(i), nonInterpolableList.get(i), | 183 cssProperty(), *interpolableList.get(i), nonInterpolableList.get(i), |
184 state); | 184 state); |
185 } | 185 } |
186 ImageListPropertyFunctions::setImageList(cssProperty(), *state.style(), | 186 ImageListPropertyFunctions::setImageList(cssProperty(), *state.style(), |
187 imageList); | 187 imageList); |
188 } | 188 } |
189 | 189 |
190 } // namespace blink | 190 } // namespace blink |
OLD | NEW |