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

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

Issue 1589733004: CSS Typed OM: add TransformComponents Rotation and Skew (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cssValueAndCssString
Patch Set: Remove TransformComponent call in child constructor Created 4 years, 11 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/SkewTransformComponent.h
diff --git a/third_party/WebKit/Source/core/css/cssom/SkewTransformComponent.h b/third_party/WebKit/Source/core/css/cssom/SkewTransformComponent.h
new file mode 100644
index 0000000000000000000000000000000000000000..8eb90487bcc04751bd81b3ec8e3add26bf148df2
--- /dev/null
+++ b/third_party/WebKit/Source/core/css/cssom/SkewTransformComponent.h
@@ -0,0 +1,37 @@
+// 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 SkewTransformComponent_h
+#define SkewTransformComponent_h
+
+#include "core/css/cssom/TransformComponent.h"
+
+namespace blink {
+
+class CORE_EXPORT SkewTransformComponent final : public TransformComponent {
+ WTF_MAKE_NONCOPYABLE(SkewTransformComponent);
+ DEFINE_WRAPPERTYPEINFO();
+public:
+ static SkewTransformComponent* create(double ax, double ay)
+ {
+ return new SkewTransformComponent(ax, ay);
+ }
+
+ double ax() const { return m_ax; }
+ double ay() const { return m_ay; }
+
+ TransformComponentType type() const override { return SkewType; }
+
+ PassRefPtrWillBeRawPtr<CSSFunctionValue> toCSSValue() const override;
+
+private:
+ SkewTransformComponent(double ax, double ay) : TransformComponent(), m_ax(ax), m_ay(ay) { }
+
+ double m_ax;
+ double m_ay;
+};
+
+} // namespace blink
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698