Chromium Code Reviews| Index: Source/platform/transforms/TranslateTransformOperation.h |
| diff --git a/Source/platform/transforms/TranslateTransformOperation.h b/Source/platform/transforms/TranslateTransformOperation.h |
| index 67c2aeea9dd94ec8b906e31e6e4eece287b522b4..e6bbd14be1e5fc872b8002d071c30a6a37046202 100644 |
| --- a/Source/platform/transforms/TranslateTransformOperation.h |
| +++ b/Source/platform/transforms/TranslateTransformOperation.h |
| @@ -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 |
|
Eric Willigers
2015/06/11 02:15:19
TranslateTransformOperation can be declared a fina
soonm
2015/06/11 23:31:04
Done.
|
| @@ -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 |