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 "core/animation/LengthInterpolationFunctions.h" | 7 #include "core/animation/LengthInterpolationFunctions.h" |
8 #include "core/animation/ShadowInterpolationFunctions.h" | 8 #include "core/animation/ShadowInterpolationFunctions.h" |
9 #include "core/css/CSSFunctionValue.h" | 9 #include "core/css/CSSFunctionValue.h" |
10 #include "core/css/CSSPrimitiveValue.h" | 10 #include "core/css/CSSPrimitiveValue.h" |
11 #include "core/css/resolver/FilterOperationResolver.h" | 11 #include "core/css/resolver/FilterOperationResolver.h" |
12 #include "core/css/resolver/StyleResolverState.h" | 12 #include "core/css/resolver/StyleResolverState.h" |
| 13 #include "core/style/FilterOperations.h" |
13 #include "core/style/ShadowData.h" | 14 #include "core/style/ShadowData.h" |
14 #include "platform/graphics/filters/FilterOperations.h" | |
15 #include <memory> | 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(FilterOperation::Operat
ionType type, PassRefPtr<NonInterpolableValue> typeNonInterpolableValue) | 21 static PassRefPtr<FilterNonInterpolableValue> create(FilterOperation::Operat
ionType type, PassRefPtr<NonInterpolableValue> typeNonInterpolableValue) |
22 { | 22 { |
23 return adoptRef(new FilterNonInterpolableValue(type, std::move(typeNonIn
terpolableValue))); | 23 return adoptRef(new FilterNonInterpolableValue(type, std::move(typeNonIn
terpolableValue))); |
24 } | 24 } |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 return DropShadowFilterOperation::create(IntPoint(shadowData.x(), shadow
Data.y()), shadowData.blur(), color); | 261 return DropShadowFilterOperation::create(IntPoint(shadowData.x(), shadow
Data.y()), shadowData.blur(), color); |
262 } | 262 } |
263 | 263 |
264 default: | 264 default: |
265 NOTREACHED(); | 265 NOTREACHED(); |
266 return nullptr; | 266 return nullptr; |
267 } | 267 } |
268 } | 268 } |
269 | 269 |
270 } // namespace blink | 270 } // namespace blink |
OLD | NEW |