| 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/CSSPathInterpolationType.h" | 5 #include "core/animation/CSSPathInterpolationType.h" |
| 6 | 6 |
| 7 #include <memory> |
| 7 #include "core/animation/PathInterpolationFunctions.h" | 8 #include "core/animation/PathInterpolationFunctions.h" |
| 8 #include "core/css/CSSIdentifierValue.h" | 9 #include "core/css/CSSIdentifierValue.h" |
| 9 #include "core/css/CSSPathValue.h" | 10 #include "core/css/CSSPathValue.h" |
| 10 #include "core/css/resolver/StyleResolverState.h" | 11 #include "core/css/resolver/StyleResolverState.h" |
| 11 #include "wtf/PtrUtil.h" | 12 #include "wtf/PtrUtil.h" |
| 12 #include <memory> | |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 void CSSPathInterpolationType::applyStandardPropertyValue( | 16 void CSSPathInterpolationType::applyStandardPropertyValue( |
| 17 const InterpolableValue& interpolableValue, | 17 const InterpolableValue& interpolableValue, |
| 18 const NonInterpolableValue* nonInterpolableValue, | 18 const NonInterpolableValue* nonInterpolableValue, |
| 19 StyleResolverState& state) const { | 19 StyleResolverState& state) const { |
| 20 DCHECK_EQ(cssProperty(), CSSPropertyD); | 20 DCHECK_EQ(cssProperty(), CSSPropertyD); |
| 21 std::unique_ptr<SVGPathByteStream> pathByteStream = | 21 std::unique_ptr<SVGPathByteStream> pathByteStream = |
| 22 PathInterpolationFunctions::appliedValue(interpolableValue, | 22 PathInterpolationFunctions::appliedValue(interpolableValue, |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 } | 103 } |
| 104 | 104 |
| 105 PairwiseInterpolationValue CSSPathInterpolationType::maybeMergeSingles( | 105 PairwiseInterpolationValue CSSPathInterpolationType::maybeMergeSingles( |
| 106 InterpolationValue&& start, | 106 InterpolationValue&& start, |
| 107 InterpolationValue&& end) const { | 107 InterpolationValue&& end) const { |
| 108 return PathInterpolationFunctions::maybeMergeSingles(std::move(start), | 108 return PathInterpolationFunctions::maybeMergeSingles(std::move(start), |
| 109 std::move(end)); | 109 std::move(end)); |
| 110 } | 110 } |
| 111 | 111 |
| 112 } // namespace blink | 112 } // namespace blink |
| OLD | NEW |