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

Unified Diff: Source/platform/transforms/TranslateTransformOperation.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/TranslateTransformOperation.h
diff --git a/Source/platform/transforms/TranslateTransformOperation.h b/Source/platform/transforms/TranslateTransformOperation.h
index 67c2aeea9dd94ec8b906e31e6e4eece287b522b4..7f29c125562c1f9ac5975e9a78cb911412273239 100644
--- a/Source/platform/transforms/TranslateTransformOperation.h
+++ b/Source/platform/transforms/TranslateTransformOperation.h
@@ -31,7 +31,7 @@
namespace blink {
-class PLATFORM_EXPORT TranslateTransformOperation : public TransformOperation {
+class PLATFORM_EXPORT TranslateTransformOperation final : public TransformOperation {
public:
static PassRefPtr<TranslateTransformOperation> create(const Length& tx, const Length& ty, OperationType type)
{
@@ -51,8 +51,6 @@ public:
Length x() const { return m_x; }
Length y() const { return m_y; }
double z() const { return m_z; }
-
-private:
virtual OperationType type() const override { return m_type; }
virtual bool operator==(const TransformOperation& o) const override
@@ -63,6 +61,7 @@ private:
return m_x == t->m_x && m_y == t->m_y && m_z == t->m_z;
}
+private:
virtual void apply(TransformationMatrix& transform, const FloatSize& borderBoxSize) const override
{
transform.translate3d(x(borderBoxSize), y(borderBoxSize), z());
@@ -90,6 +89,8 @@ private:
OperationType m_type;
};
+DEFINE_TRANSFORM_TYPE_CASTS(TranslateTransformOperation, isTranslateTransformOperation());
+
} // namespace blink
#endif // TranslateTransformOperation_h

Powered by Google App Engine
This is Rietveld 408576698