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

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: Remove animation from CL 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..06d6ebff7a54932c8c24dc3b49137f0b972d9c48 100644
--- a/Source/platform/transforms/RotateTransformOperation.h
+++ b/Source/platform/transforms/RotateTransformOperation.h
@@ -29,7 +29,7 @@
namespace blink {
-class PLATFORM_EXPORT RotateTransformOperation : public TransformOperation {
+class PLATFORM_EXPORT RotateTransformOperation final : public TransformOperation {
public:
static PassRefPtr<RotateTransformOperation> create(double angle, OperationType type)
{
@@ -52,7 +52,6 @@ public:
virtual bool canBlendWith(const TransformOperation& other) const;
virtual OperationType type() const override { return m_type; }
-private:
virtual bool operator==(const TransformOperation& o) const override
{
if (!isSameType(o))
@@ -61,6 +60,7 @@ private:
return m_x == r->m_x && m_y == r->m_y && m_z == r->m_z && m_angle == r->m_angle;
}
+private:
virtual void apply(TransformationMatrix& transform, const FloatSize& /*borderBoxSize*/) const override
{
transform.rotate3d(m_x, m_y, m_z, m_angle);
@@ -85,6 +85,8 @@ private:
OperationType m_type;
};
+DEFINE_TRANSFORM_TYPE_CASTS(RotateTransformOperation, isRotateTransformOperation());
+
} // namespace blink
#endif // RotateTransformOperation_h

Powered by Google App Engine
This is Rietveld 408576698