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 #ifndef CSSRotation_h | 5 #ifndef CSSRotation_h |
6 #define CSSRotation_h | 6 #define CSSRotation_h |
7 | 7 |
8 #include "core/css/cssom/CSSAngleValue.h" | 8 #include "core/css/cssom/CSSAngleValue.h" |
9 #include "core/css/cssom/CSSMatrixTransformComponent.h" | 9 #include "core/css/cssom/CSSMatrixTransformComponent.h" |
10 #include "core/css/cssom/TransformComponent.h" | 10 #include "core/css/cssom/TransformComponent.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 static CSSRotation* create(double x, double y, double z, double angle) | 28 static CSSRotation* create(double x, double y, double z, double angle) |
29 { | 29 { |
30 return new CSSRotation(x, y, z, angle); | 30 return new CSSRotation(x, y, z, angle); |
31 } | 31 } |
32 | 32 |
33 static CSSRotation* create(double x, double y, double z, const CSSAngleValue
* angleValue) | 33 static CSSRotation* create(double x, double y, double z, const CSSAngleValue
* angleValue) |
34 { | 34 { |
35 return new CSSRotation(x, y, z, angleValue->degrees()); | 35 return new CSSRotation(x, y, z, angleValue->degrees()); |
36 } | 36 } |
37 | 37 |
38 static CSSRotation* fromCSSValue(const CSSFunctionValue&) { return nullptr;
} | 38 static CSSRotation* fromCSSValue(const CSSFunctionValue&); |
39 | 39 |
40 double angle() const { return m_angle; } | 40 double angle() const { return m_angle; } |
41 double x() const { return m_x; } | 41 double x() const { return m_x; } |
42 double y() const { return m_y; } | 42 double y() const { return m_y; } |
43 double z() const { return m_z; } | 43 double z() const { return m_z; } |
44 | 44 |
45 TransformComponentType type() const override { return m_is2D ? RotationType
: Rotation3DType; } | 45 TransformComponentType type() const override { return m_is2D ? RotationType
: Rotation3DType; } |
46 | 46 |
47 CSSMatrixTransformComponent* asMatrix() const override | 47 CSSMatrixTransformComponent* asMatrix() const override |
48 { | 48 { |
(...skipping 23 matching lines...) Expand all Loading... |
72 double m_x; | 72 double m_x; |
73 double m_y; | 73 double m_y; |
74 double m_z; | 74 double m_z; |
75 double m_angle; | 75 double m_angle; |
76 bool m_is2D; | 76 bool m_is2D; |
77 }; | 77 }; |
78 | 78 |
79 } // namespace blink | 79 } // namespace blink |
80 | 80 |
81 #endif | 81 #endif |
OLD | NEW |