| 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/CSSOffsetRotateInterpolationType.h" | 5 #include "core/animation/CSSOffsetRotateInterpolationType.h" |
| 6 | 6 |
| 7 #include <memory> |
| 7 #include "core/css/resolver/StyleBuilderConverter.h" | 8 #include "core/css/resolver/StyleBuilderConverter.h" |
| 8 #include "core/style/StyleOffsetRotation.h" | 9 #include "core/style/StyleOffsetRotation.h" |
| 9 #include "wtf/PtrUtil.h" | 10 #include "wtf/PtrUtil.h" |
| 10 #include <memory> | |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class CSSOffsetRotationNonInterpolableValue : public NonInterpolableValue { | 14 class CSSOffsetRotationNonInterpolableValue : public NonInterpolableValue { |
| 15 public: | 15 public: |
| 16 ~CSSOffsetRotationNonInterpolableValue() {} | 16 ~CSSOffsetRotationNonInterpolableValue() {} |
| 17 | 17 |
| 18 static PassRefPtr<CSSOffsetRotationNonInterpolableValue> create( | 18 static PassRefPtr<CSSOffsetRotationNonInterpolableValue> create( |
| 19 OffsetRotationType rotationType) { | 19 OffsetRotationType rotationType) { |
| 20 return adoptRef(new CSSOffsetRotationNonInterpolableValue(rotationType)); | 20 return adoptRef(new CSSOffsetRotationNonInterpolableValue(rotationType)); |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 const InterpolableValue& interpolableValue, | 170 const InterpolableValue& interpolableValue, |
| 171 const NonInterpolableValue* nonInterpolableValue, | 171 const NonInterpolableValue* nonInterpolableValue, |
| 172 StyleResolverState& state) const { | 172 StyleResolverState& state) const { |
| 173 state.style()->setOffsetRotation(StyleOffsetRotation( | 173 state.style()->setOffsetRotation(StyleOffsetRotation( |
| 174 toInterpolableNumber(interpolableValue).value(), | 174 toInterpolableNumber(interpolableValue).value(), |
| 175 toCSSOffsetRotationNonInterpolableValue(*nonInterpolableValue) | 175 toCSSOffsetRotationNonInterpolableValue(*nonInterpolableValue) |
| 176 .rotationType())); | 176 .rotationType())); |
| 177 } | 177 } |
| 178 | 178 |
| 179 } // namespace blink | 179 } // namespace blink |
| OLD | NEW |