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

Unified Diff: Source/core/style/StyleTransformData.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/core/style/StyleTransformData.h
diff --git a/Source/core/style/StyleTransformData.h b/Source/core/style/StyleTransformData.h
index 9cdc73705246efd3281a56101ffabe6c258c3e8d..d6a94b4fcaaac7086848a68f731832b2da05dab1 100644
--- a/Source/core/style/StyleTransformData.h
+++ b/Source/core/style/StyleTransformData.h
@@ -27,7 +27,11 @@
#include "core/style/StyleMotionData.h"
#include "core/style/TransformOrigin.h"
+#include "platform/transforms/RotateTransformOperation.h"
+#include "platform/transforms/ScaleTransformOperation.h"
+#include "platform/transforms/TransformOperation.h"
#include "platform/transforms/TransformOperations.h"
+#include "platform/transforms/TranslateTransformOperation.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
@@ -43,10 +47,21 @@ public:
{
return !(*this == o);
}
+ void setTranslate(PassRefPtr<TranslateTransformOperation>);
+ void setTranslate(const Length& tx, const Length& ty, const double& tz);
+ void setRotate(PassRefPtr<RotateTransformOperation>);
+ void setRotate(const double& angle, const double& x, const double& y, const double& z);
+ void setScale(PassRefPtr<ScaleTransformOperation>);
+ void setScale(const double& sx, const double& sy, const double& sz);
+
+ bool has3DTransformProperties() const;
TransformOperations m_operations;
TransformOrigin m_origin;
StyleMotionData m_motion;
+ RefPtr<TranslateTransformOperation> m_translate;
+ RefPtr<RotateTransformOperation> m_rotate;
+ RefPtr<ScaleTransformOperation> m_scale;
private:
StyleTransformData();

Powered by Google App Engine
This is Rietveld 408576698