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

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

Issue 131003004: Update platform classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 2894b84d689255832f3a4a1ea280e06e64b0abb8..637697d2eeecf419ae5b63300cca1a43d7724408 100644
--- a/Source/platform/transforms/RotateTransformOperation.h
+++ b/Source/platform/transforms/RotateTransformOperation.h
@@ -47,7 +47,7 @@ public:
double angle() const { return m_angle; }
private:
- virtual bool isIdentity() const { return m_angle == 0; }
+ virtual bool isIdentity() const OVERRIDE { return !m_angle; }
virtual OperationType type() const OVERRIDE { return m_type; }
@@ -59,12 +59,12 @@ private:
return m_x == r->m_x && m_y == r->m_y && m_z == r->m_z && m_angle == r->m_angle;
}
- virtual void apply(TransformationMatrix& transform, const FloatSize& /*borderBoxSize*/) const
+ virtual void apply(TransformationMatrix& transform, const FloatSize& /*borderBoxSize*/) const OVERRIDE
{
transform.rotate3d(m_x, m_y, m_z, m_angle);
}
- virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from, double progress, bool blendToIdentity = false);
+ virtual 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