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

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

Issue 1158603003: CSS Independent Transform Properties (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase master and explicit applyTransform parameters 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/RotateTransformOperation.h
diff --git a/Source/platform/transforms/RotateTransformOperation.h b/Source/platform/transforms/RotateTransformOperation.h
index 9f6f22fba3b95ab1a1f753730de0c58a0c47dc4d..f681ce3d6c5b6b2f39be42fbea2738fa005ba0b3 100644
--- a/Source/platform/transforms/RotateTransformOperation.h
+++ b/Source/platform/transforms/RotateTransformOperation.h
@@ -52,6 +52,11 @@ public:
virtual bool canBlendWith(const TransformOperation& other) const;
virtual OperationType type() const override { return m_type; }
+ virtual void apply(TransformationMatrix& transform, const FloatSize& /*borderBoxSize*/) const override
+ {
+ transform.rotate3d(m_x, m_y, m_z, m_angle);
+ }
+
private:
virtual bool operator==(const TransformOperation& o) const override
{
@@ -61,11 +66,6 @@ private:
return m_x == r->m_x && m_y == r->m_y && m_z == r->m_z && m_angle == r->m_angle;
}
- virtual void apply(TransformationMatrix& transform, const FloatSize& /*borderBoxSize*/) const override
- {
- transform.rotate3d(m_x, m_y, m_z, m_angle);
- }
-
virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from, double progress, bool blendToIdentity = false) override;
RotateTransformOperation(double x, double y, double z, double angle, OperationType type)

Powered by Google App Engine
This is Rietveld 408576698