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 #include "core/animation/SVGRectInterpolationType.h" | 4 #include "core/animation/SVGRectInterpolationType.h" |
5 | 5 |
| 6 #include <memory> |
6 #include "core/animation/InterpolationEnvironment.h" | 7 #include "core/animation/InterpolationEnvironment.h" |
7 #include "core/animation/StringKeyframe.h" | 8 #include "core/animation/StringKeyframe.h" |
8 #include "core/svg/SVGRect.h" | 9 #include "core/svg/SVGRect.h" |
9 #include "wtf/StdLibExtras.h" | 10 #include "wtf/StdLibExtras.h" |
10 #include <memory> | |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 enum RectComponentIndex : unsigned { | 14 enum RectComponentIndex : unsigned { |
15 RectX, | 15 RectX, |
16 RectY, | 16 RectY, |
17 RectWidth, | 17 RectWidth, |
18 RectHeight, | 18 RectHeight, |
19 RectComponentIndexCount, | 19 RectComponentIndexCount, |
20 }; | 20 }; |
(...skipping 29 matching lines...) Expand all Loading... |
50 const InterpolableList& list = toInterpolableList(interpolableValue); | 50 const InterpolableList& list = toInterpolableList(interpolableValue); |
51 SVGRect* result = SVGRect::create(); | 51 SVGRect* result = SVGRect::create(); |
52 result->setX(toInterpolableNumber(list.get(RectX))->value()); | 52 result->setX(toInterpolableNumber(list.get(RectX))->value()); |
53 result->setY(toInterpolableNumber(list.get(RectY))->value()); | 53 result->setY(toInterpolableNumber(list.get(RectY))->value()); |
54 result->setWidth(toInterpolableNumber(list.get(RectWidth))->value()); | 54 result->setWidth(toInterpolableNumber(list.get(RectWidth))->value()); |
55 result->setHeight(toInterpolableNumber(list.get(RectHeight))->value()); | 55 result->setHeight(toInterpolableNumber(list.get(RectHeight))->value()); |
56 return result; | 56 return result; |
57 } | 57 } |
58 | 58 |
59 } // namespace blink | 59 } // namespace blink |
OLD | NEW |