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

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

Issue 1213003004: Fix virtual/override/final usage in Source/platform/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 00f85a5fb05942766cb7e7c0f7ef807ecb2febf7..37614f9ae251a17472a748baf57e2ac27635534d 100644
--- a/Source/platform/transforms/RotateTransformOperation.h
+++ b/Source/platform/transforms/RotateTransformOperation.h
@@ -50,9 +50,9 @@ public:
static bool shareSameAxis(const RotateTransformOperation* fromRotation, const RotateTransformOperation* toRotation, FloatPoint3D* axis, double* fromAngle, double* toAngle);
virtual bool canBlendWith(const TransformOperation& other) const;
- virtual OperationType type() const override { return m_type; }
+ OperationType type() const override { return m_type; }
- virtual void apply(TransformationMatrix& transform, const FloatSize& /*borderBoxSize*/) const override
+ void apply(TransformationMatrix& transform, const FloatSize& /*borderBoxSize*/) const override
{
transform.rotate3d(m_x, m_y, m_z, m_angle);
}
@@ -60,7 +60,7 @@ public:
static bool isMatchingOperationType(OperationType type) { return type == Rotate || type == RotateX || type == RotateY || type == RotateZ || type == Rotate3D; }
private:
- virtual bool operator==(const TransformOperation& o) const override
+ bool operator==(const TransformOperation& o) const override
{
if (!isSameType(o))
return false;
@@ -68,7 +68,7 @@ private:
return m_x == r->m_x && m_y == r->m_y && m_z == r->m_z && m_angle == r->m_angle;
}
- virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from, double progress, bool blendToIdentity = false) override;
+ PassRefPtr<TransformOperation> blend(const TransformOperation* from, double progress, bool blendToIdentity = false) override;
RotateTransformOperation(double x, double y, double z, double angle, OperationType type)
: m_x(x)
« no previous file with comments | « Source/platform/transforms/PerspectiveTransformOperation.h ('k') | Source/platform/transforms/ScaleTransformOperation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698