Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(435)

Side by Side Diff: third_party/WebKit/Source/core/css/cssom/CSSRotation.h

Issue 2039093003: [Typed OM] Implement CSSValue->CSSRotation conversion (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698