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

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: 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/ScaleTransformOperation.h
diff --git a/Source/platform/transforms/ScaleTransformOperation.h b/Source/platform/transforms/ScaleTransformOperation.h
index 8b6fde1e2cfb50e73f884730a5116389687e5d26..10cdff9964ce9813d2ce8d748157c2c6e92ab0e8 100644
--- a/Source/platform/transforms/ScaleTransformOperation.h
+++ b/Source/platform/transforms/ScaleTransformOperation.h
@@ -29,7 +29,7 @@
namespace blink {
-class PLATFORM_EXPORT ScaleTransformOperation : public TransformOperation {
+class PLATFORM_EXPORT ScaleTransformOperation final : public TransformOperation {
public:
static PassRefPtr<ScaleTransformOperation> create(double sx, double sy, OperationType type)
{
@@ -46,8 +46,6 @@ public:
double z() const { return m_z; }
virtual bool canBlendWith(const TransformOperation& other) const;
-
-private:
virtual OperationType type() const override { return m_type; }
Timothy Loh 2015/06/12 04:48:35 Can this (and the one for Translate) stay private?
soonm 2015/06/12 06:18:49 Yep they can be private. Reverted.
virtual bool operator==(const TransformOperation& o) const override
@@ -58,6 +56,7 @@ private:
return m_x == s->m_x && m_y == s->m_y && m_z == s->m_z;
}
+private:
virtual void apply(TransformationMatrix& transform, const FloatSize&) const override
{
transform.scale3d(m_x, m_y, m_z);
@@ -80,6 +79,8 @@ private:
OperationType m_type;
};
+DEFINE_TRANSFORM_TYPE_CASTS(ScaleTransformOperation, isScaleTransformOperation());
+
} // namespace blink
#endif // ScaleTransformOperation_h

Powered by Google App Engine
This is Rietveld 408576698