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/FilterInterpolationFunctions.h" | 5 #include "core/animation/FilterInterpolationFunctions.h" |
6 | 6 |
| 7 #include <memory> |
7 #include "core/animation/LengthInterpolationFunctions.h" | 8 #include "core/animation/LengthInterpolationFunctions.h" |
8 #include "core/animation/ShadowInterpolationFunctions.h" | 9 #include "core/animation/ShadowInterpolationFunctions.h" |
9 #include "core/css/CSSFunctionValue.h" | 10 #include "core/css/CSSFunctionValue.h" |
10 #include "core/css/CSSPrimitiveValue.h" | 11 #include "core/css/CSSPrimitiveValue.h" |
11 #include "core/css/resolver/FilterOperationResolver.h" | 12 #include "core/css/resolver/FilterOperationResolver.h" |
12 #include "core/css/resolver/StyleResolverState.h" | 13 #include "core/css/resolver/StyleResolverState.h" |
13 #include "core/style/FilterOperations.h" | 14 #include "core/style/FilterOperations.h" |
14 #include "core/style/ShadowData.h" | 15 #include "core/style/ShadowData.h" |
15 #include <memory> | |
16 | 16 |
17 namespace blink { | 17 namespace blink { |
18 | 18 |
19 class FilterNonInterpolableValue : public NonInterpolableValue { | 19 class FilterNonInterpolableValue : public NonInterpolableValue { |
20 public: | 20 public: |
21 static PassRefPtr<FilterNonInterpolableValue> Create( | 21 static PassRefPtr<FilterNonInterpolableValue> Create( |
22 FilterOperation::OperationType type, | 22 FilterOperation::OperationType type, |
23 PassRefPtr<NonInterpolableValue> type_non_interpolable_value) { | 23 PassRefPtr<NonInterpolableValue> type_non_interpolable_value) { |
24 return AdoptRef(new FilterNonInterpolableValue( | 24 return AdoptRef(new FilterNonInterpolableValue( |
25 type, std::move(type_non_interpolable_value))); | 25 type, std::move(type_non_interpolable_value))); |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 return DropShadowFilterOperation::Create(shadow_data); | 288 return DropShadowFilterOperation::Create(shadow_data); |
289 } | 289 } |
290 | 290 |
291 default: | 291 default: |
292 NOTREACHED(); | 292 NOTREACHED(); |
293 return nullptr; | 293 return nullptr; |
294 } | 294 } |
295 } | 295 } |
296 | 296 |
297 } // namespace blink | 297 } // namespace blink |
OLD | NEW |