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/SVGTransformListInterpolationType.h" | 5 #include "core/animation/SVGTransformListInterpolationType.h" |
6 | 6 |
| 7 #include <memory> |
7 #include "core/animation/InterpolableValue.h" | 8 #include "core/animation/InterpolableValue.h" |
8 #include "core/animation/InterpolationEnvironment.h" | 9 #include "core/animation/InterpolationEnvironment.h" |
9 #include "core/animation/NonInterpolableValue.h" | 10 #include "core/animation/NonInterpolableValue.h" |
10 #include "core/animation/StringKeyframe.h" | 11 #include "core/animation/StringKeyframe.h" |
11 #include "core/svg/SVGTransform.h" | 12 #include "core/svg/SVGTransform.h" |
12 #include "core/svg/SVGTransformList.h" | 13 #include "core/svg/SVGTransformList.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 class SVGTransformNonInterpolableValue : public NonInterpolableValue { | 18 class SVGTransformNonInterpolableValue : public NonInterpolableValue { |
19 public: | 19 public: |
20 virtual ~SVGTransformNonInterpolableValue() {} | 20 virtual ~SVGTransformNonInterpolableValue() {} |
21 | 21 |
22 static PassRefPtr<SVGTransformNonInterpolableValue> create( | 22 static PassRefPtr<SVGTransformNonInterpolableValue> create( |
23 Vector<SVGTransformType>& transformTypes) { | 23 Vector<SVGTransformType>& transformTypes) { |
24 return adoptRef(new SVGTransformNonInterpolableValue(transformTypes)); | 24 return adoptRef(new SVGTransformNonInterpolableValue(transformTypes)); |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 | 303 |
304 void SVGTransformListInterpolationType::composite( | 304 void SVGTransformListInterpolationType::composite( |
305 UnderlyingValueOwner& underlyingValueOwner, | 305 UnderlyingValueOwner& underlyingValueOwner, |
306 double underlyingFraction, | 306 double underlyingFraction, |
307 const InterpolationValue& value, | 307 const InterpolationValue& value, |
308 double interpolationFraction) const { | 308 double interpolationFraction) const { |
309 underlyingValueOwner.set(*this, value); | 309 underlyingValueOwner.set(*this, value); |
310 } | 310 } |
311 | 311 |
312 } // namespace blink | 312 } // namespace blink |
OLD | NEW |