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

Unified Diff: Source/platform/transforms/ScaleTransformOperation.h

Issue 1158603003: CSS Independent Transform Properties (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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: Source/platform/transforms/ScaleTransformOperation.h
diff --git a/Source/platform/transforms/ScaleTransformOperation.h b/Source/platform/transforms/ScaleTransformOperation.h
index 8b6fde1e2cfb50e73f884730a5116389687e5d26..320501dc9e87765dcd731ce6c55bc728dd5a5052 100644
--- a/Source/platform/transforms/ScaleTransformOperation.h
+++ b/Source/platform/transforms/ScaleTransformOperation.h
@@ -41,14 +41,18 @@ public:
return adoptRef(new ScaleTransformOperation(sx, sy, sz, type));
}
+ static PassRefPtr<ScaleTransformOperation> create(PassRefPtr<ScaleTransformOperation> o)
+ {
+ return adoptRef(new ScaleTransformOperation(*o));
+ }
double x() const { return m_x; }
double y() const { return m_y; }
double z() const { return m_z; }
virtual bool canBlendWith(const TransformOperation& other) const;
+ virtual OperationType type() const override { return m_type; }
private:
- virtual OperationType type() const override { return m_type; }
virtual bool operator==(const TransformOperation& o) const override
{
@@ -74,6 +78,14 @@ private:
ASSERT(type == ScaleX || type == ScaleY || type == ScaleZ || type == Scale || type == Scale3D);
}
+ ScaleTransformOperation(const ScaleTransformOperation& o)
+ : m_x(o.m_x)
+ , m_y(o.m_y)
+ , m_z(o.m_z)
+ , m_type(o.m_type)
+ {
+ }
+
double m_x;
double m_y;
double m_z;

Powered by Google App Engine
This is Rietveld 408576698