| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/CSSFilterListInterpolationType.h" | 5 #include "core/animation/CSSFilterListInterpolationType.h" |
| 6 | 6 |
| 7 #include <memory> |
| 7 #include "core/animation/FilterInterpolationFunctions.h" | 8 #include "core/animation/FilterInterpolationFunctions.h" |
| 8 #include "core/animation/FilterListPropertyFunctions.h" | 9 #include "core/animation/FilterListPropertyFunctions.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 namespace { | 18 namespace { |
| 19 | 19 |
| 20 class UnderlyingFilterListChecker | 20 class UnderlyingFilterListChecker |
| 21 : public InterpolationType::ConversionChecker { | 21 : public InterpolationType::ConversionChecker { |
| 22 public: | 22 public: |
| 23 static std::unique_ptr<UnderlyingFilterListChecker> create( | 23 static std::unique_ptr<UnderlyingFilterListChecker> create( |
| 24 PassRefPtr<NonInterpolableList> nonInterpolableList) { | 24 PassRefPtr<NonInterpolableList> nonInterpolableList) { |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 for (size_t i = 0; i < length; i++) { | 289 for (size_t i = 0; i < length; i++) { |
| 290 filterOperations.operations().push_back( | 290 filterOperations.operations().push_back( |
| 291 FilterInterpolationFunctions::createFilter( | 291 FilterInterpolationFunctions::createFilter( |
| 292 *interpolableList.get(i), *nonInterpolableList.get(i), state)); | 292 *interpolableList.get(i), *nonInterpolableList.get(i), state)); |
| 293 } | 293 } |
| 294 FilterListPropertyFunctions::setFilterList(cssProperty(), *state.style(), | 294 FilterListPropertyFunctions::setFilterList(cssProperty(), *state.style(), |
| 295 std::move(filterOperations)); | 295 std::move(filterOperations)); |
| 296 } | 296 } |
| 297 | 297 |
| 298 } // namespace blink | 298 } // namespace blink |
| OLD | NEW |