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

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

Issue 2010383002: Typed CSSOM: Rename Scale and ScaleTransformComponent to CSSScale (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/ScaleTransformComponent.h
diff --git a/third_party/WebKit/Source/core/css/cssom/ScaleTransformComponent.h b/third_party/WebKit/Source/core/css/cssom/ScaleTransformComponent.h
deleted file mode 100644
index 1f52eb2a3d5cd46cec99285d3684637f4f8e103a..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/css/cssom/ScaleTransformComponent.h
+++ /dev/null
@@ -1,53 +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 ScaleTransformComponent_h
-#define ScaleTransformComponent_h
-
-#include "core/css/cssom/MatrixTransformComponent.h"
-#include "core/css/cssom/TransformComponent.h"
-
-namespace blink {
-
-class CORE_EXPORT ScaleTransformComponent final : public TransformComponent {
- WTF_MAKE_NONCOPYABLE(ScaleTransformComponent);
- DEFINE_WRAPPERTYPEINFO();
-public:
- static ScaleTransformComponent* create(double x, double y)
- {
- return new ScaleTransformComponent(x, y);
- }
-
- static ScaleTransformComponent* create(double x, double y, double z)
- {
- return new ScaleTransformComponent(x, y, z);
- }
-
- 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 ? ScaleType : Scale3DType; }
-
- MatrixTransformComponent* asMatrix() const override
- {
- return m_is2D ? MatrixTransformComponent::scale(m_x, m_y)
- : MatrixTransformComponent::scale3d(m_x, m_y, m_z);
- }
-
- CSSFunctionValue* toCSSValue() const override;
-
-private:
- ScaleTransformComponent(double x, double y) : m_x(x), m_y(y), m_z(1), m_is2D(true) { }
- ScaleTransformComponent(double x, double y, double z) : m_x(x), m_y(y), m_z(z), m_is2D(false) { }
-
- double m_x;
- double m_y;
- double m_z;
- bool m_is2D;
-};
-
-} // namespace blink
-
-#endif

Powered by Google App Engine
This is Rietveld 408576698