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/CSSBasicShapeInterpolationType.h" | 5 #include "core/animation/CSSBasicShapeInterpolationType.h" |
6 | 6 |
| 7 #include <memory> |
7 #include "core/animation/BasicShapeInterpolationFunctions.h" | 8 #include "core/animation/BasicShapeInterpolationFunctions.h" |
8 #include "core/animation/BasicShapePropertyFunctions.h" | 9 #include "core/animation/BasicShapePropertyFunctions.h" |
9 #include "core/css/CSSValueList.h" | 10 #include "core/css/CSSValueList.h" |
10 #include "core/css/resolver/StyleResolverState.h" | 11 #include "core/css/resolver/StyleResolverState.h" |
11 #include "core/style/BasicShapes.h" | 12 #include "core/style/BasicShapes.h" |
12 #include "core/style/DataEquivalency.h" | 13 #include "core/style/DataEquivalency.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 UnderlyingCompatibilityChecker | 20 class UnderlyingCompatibilityChecker |
21 : public InterpolationType::ConversionChecker { | 21 : public InterpolationType::ConversionChecker { |
22 public: | 22 public: |
23 static std::unique_ptr<UnderlyingCompatibilityChecker> create( | 23 static std::unique_ptr<UnderlyingCompatibilityChecker> create( |
24 PassRefPtr<NonInterpolableValue> underlyingNonInterpolableValue) { | 24 PassRefPtr<NonInterpolableValue> underlyingNonInterpolableValue) { |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 const NonInterpolableValue* nonInterpolableValue, | 153 const NonInterpolableValue* nonInterpolableValue, |
154 StyleResolverState& state) const { | 154 StyleResolverState& state) const { |
155 BasicShapePropertyFunctions::setBasicShape( | 155 BasicShapePropertyFunctions::setBasicShape( |
156 cssProperty(), *state.style(), | 156 cssProperty(), *state.style(), |
157 BasicShapeInterpolationFunctions::createBasicShape( | 157 BasicShapeInterpolationFunctions::createBasicShape( |
158 interpolableValue, *nonInterpolableValue, | 158 interpolableValue, *nonInterpolableValue, |
159 state.cssToLengthConversionData())); | 159 state.cssToLengthConversionData())); |
160 } | 160 } |
161 | 161 |
162 } // namespace blink | 162 } // namespace blink |
OLD | NEW |