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" |
(...skipping 18 matching lines...) Expand all Loading... |
29 const NonInterpolableValue* typeNonInterpolableValue() const { | 29 const NonInterpolableValue* typeNonInterpolableValue() const { |
30 return m_typeNonInterpolableValue.get(); | 30 return m_typeNonInterpolableValue.get(); |
31 } | 31 } |
32 | 32 |
33 DECLARE_NON_INTERPOLABLE_VALUE_TYPE(); | 33 DECLARE_NON_INTERPOLABLE_VALUE_TYPE(); |
34 | 34 |
35 private: | 35 private: |
36 FilterNonInterpolableValue( | 36 FilterNonInterpolableValue( |
37 FilterOperation::OperationType type, | 37 FilterOperation::OperationType type, |
38 PassRefPtr<NonInterpolableValue> typeNonInterpolableValue) | 38 PassRefPtr<NonInterpolableValue> typeNonInterpolableValue) |
39 : m_type(type), m_typeNonInterpolableValue(typeNonInterpolableValue) {} | 39 : m_type(type), |
| 40 m_typeNonInterpolableValue(std::move(typeNonInterpolableValue)) {} |
40 | 41 |
41 const FilterOperation::OperationType m_type; | 42 const FilterOperation::OperationType m_type; |
42 RefPtr<NonInterpolableValue> m_typeNonInterpolableValue; | 43 RefPtr<NonInterpolableValue> m_typeNonInterpolableValue; |
43 }; | 44 }; |
44 | 45 |
45 DEFINE_NON_INTERPOLABLE_VALUE_TYPE(FilterNonInterpolableValue); | 46 DEFINE_NON_INTERPOLABLE_VALUE_TYPE(FilterNonInterpolableValue); |
46 DEFINE_NON_INTERPOLABLE_VALUE_TYPE_CASTS(FilterNonInterpolableValue); | 47 DEFINE_NON_INTERPOLABLE_VALUE_TYPE_CASTS(FilterNonInterpolableValue); |
47 | 48 |
48 namespace { | 49 namespace { |
49 | 50 |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 return DropShadowFilterOperation::create(shadowData); | 287 return DropShadowFilterOperation::create(shadowData); |
287 } | 288 } |
288 | 289 |
289 default: | 290 default: |
290 NOTREACHED(); | 291 NOTREACHED(); |
291 return nullptr; | 292 return nullptr; |
292 } | 293 } |
293 } | 294 } |
294 | 295 |
295 } // namespace blink | 296 } // namespace blink |
OLD | NEW |