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

Unified Diff: third_party/WebKit/Source/core/css/cssom/RotationTransformComponent.h

Issue 1976493002: Typed CSSOM: Rename Rotation and RotationTransformComponent to CSSRotation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/cssom/RotationTransformComponent.h
diff --git a/third_party/WebKit/Source/core/css/cssom/RotationTransformComponent.h b/third_party/WebKit/Source/core/css/cssom/RotationTransformComponent.h
deleted file mode 100644
index cddacc082890e87bd468ad9717784e868300858a..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/css/cssom/RotationTransformComponent.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef RotationTransformComponent_h
-#define RotationTransformComponent_h
-
-#include "core/css/cssom/MatrixTransformComponent.h"
-#include "core/css/cssom/TransformComponent.h"
-
-namespace blink {
-
-class CORE_EXPORT RotationTransformComponent final : public TransformComponent {
- WTF_MAKE_NONCOPYABLE(RotationTransformComponent);
- DEFINE_WRAPPERTYPEINFO();
-public:
- static RotationTransformComponent* create(double angle)
- {
- return new RotationTransformComponent(angle);
- }
-
- static RotationTransformComponent* create(double angle, double x, double y, double z)
- {
- return new RotationTransformComponent(angle, x, y, z);
- }
-
- double angle() const { return m_angle; }
- double x() const { return m_x; }
- double y() const { return m_y; }
- double z() const { return m_z; }
-
- TransformComponentType type() const override { return m_is2D ? RotationType : Rotation3DType; }
-
- MatrixTransformComponent* asMatrix() const override
- {
- return m_is2D ? MatrixTransformComponent::rotate(m_angle)
- : MatrixTransformComponent::rotate3d(m_angle, m_x, m_y, m_z);
- }
-
- CSSFunctionValue* toCSSValue() const override;
-
-private:
- RotationTransformComponent(double angle)
- : m_angle(angle)
- , m_x(0)
- , m_y(0)
- , m_z(1)
- , m_is2D(true)
- { }
-
- RotationTransformComponent(double angle, double x, double y, double z)
- : m_angle(angle)
- , m_x(x)
- , m_y(y)
- , m_z(z)
- , m_is2D(false)
- { }
-
- double m_angle;
- double m_x;
- double m_y;
- double m_z;
- bool m_is2D;
-};
-
-} // namespace blink
-
-#endif

Powered by Google App Engine
This is Rietveld 408576698