OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/CSSImageInterpolationType.h" | 5 #include "core/animation/CSSImageInterpolationType.h" |
6 | 6 |
| 7 #include <memory> |
7 #include "core/animation/ImagePropertyFunctions.h" | 8 #include "core/animation/ImagePropertyFunctions.h" |
8 #include "core/css/CSSCrossfadeValue.h" | 9 #include "core/css/CSSCrossfadeValue.h" |
9 #include "core/css/CSSPrimitiveValue.h" | 10 #include "core/css/CSSPrimitiveValue.h" |
10 #include "core/css/resolver/StyleResolverState.h" | 11 #include "core/css/resolver/StyleResolverState.h" |
11 #include "core/style/StyleImage.h" | 12 #include "core/style/StyleImage.h" |
12 #include "wtf/PtrUtil.h" | 13 #include "wtf/PtrUtil.h" |
13 #include <memory> | |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 | 16 |
17 class CSSImageNonInterpolableValue : public NonInterpolableValue { | 17 class CSSImageNonInterpolableValue : public NonInterpolableValue { |
18 public: | 18 public: |
19 ~CSSImageNonInterpolableValue() final {} | 19 ~CSSImageNonInterpolableValue() final {} |
20 | 20 |
21 static PassRefPtr<CSSImageNonInterpolableValue> create(CSSValue* start, | 21 static PassRefPtr<CSSImageNonInterpolableValue> create(CSSValue* start, |
22 CSSValue* end) { | 22 CSSValue* end) { |
23 return adoptRef(new CSSImageNonInterpolableValue(start, end)); | 23 return adoptRef(new CSSImageNonInterpolableValue(start, end)); |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 const InterpolableValue& interpolableValue, | 238 const InterpolableValue& interpolableValue, |
239 const NonInterpolableValue* nonInterpolableValue, | 239 const NonInterpolableValue* nonInterpolableValue, |
240 StyleResolverState& state) const { | 240 StyleResolverState& state) const { |
241 ImagePropertyFunctions::setStyleImage( | 241 ImagePropertyFunctions::setStyleImage( |
242 cssProperty(), *state.style(), | 242 cssProperty(), *state.style(), |
243 resolveStyleImage(cssProperty(), interpolableValue, nonInterpolableValue, | 243 resolveStyleImage(cssProperty(), interpolableValue, nonInterpolableValue, |
244 state)); | 244 state)); |
245 } | 245 } |
246 | 246 |
247 } // namespace blink | 247 } // namespace blink |
OLD | NEW |