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

Unified Diff: Source/platform/transforms/MatrixTransformOperation.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/MatrixTransformOperation.h
diff --git a/Source/platform/transforms/MatrixTransformOperation.h b/Source/platform/transforms/MatrixTransformOperation.h
index 139006f698dedc6320ccfb976af0b4ddc103330b..cd256a5053a753331bb29ec9e29c00d1545714c4 100644
--- a/Source/platform/transforms/MatrixTransformOperation.h
+++ b/Source/platform/transforms/MatrixTransformOperation.h
@@ -45,7 +45,7 @@ public:
TransformationMatrix matrix() const { return TransformationMatrix(m_a, m_b, m_c, m_d, m_e, m_f); }
private:
- virtual bool isIdentity() const { return m_a == 1 && m_b == 0 && m_c == 0 && m_d == 1 && m_e == 0 && m_f == 0; }
+ virtual bool isIdentity() const OVERRIDE { return m_a == 1 && !m_b && !m_c && m_d == 1 && !m_e && !m_f; }
virtual OperationType type() const OVERRIDE { return Matrix; }
@@ -58,13 +58,13 @@ private:
return m_a == m->m_a && m_b == m->m_b && m_c == m->m_c && m_d == m->m_d && m_e == m->m_e && m_f == m->m_f;
}
- virtual void apply(TransformationMatrix& transform, const FloatSize&) const
+ virtual void apply(TransformationMatrix& transform, const FloatSize&) const OVERRIDE
{
TransformationMatrix matrix(m_a, m_b, m_c, m_d, m_e, m_f);
transform.multiply(matrix);
}
- 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;
MatrixTransformOperation(double a, double b, double c, double d, double e, double f)
: m_a(a)
« no previous file with comments | « Source/platform/transforms/Matrix3DTransformOperation.h ('k') | Source/platform/transforms/PerspectiveTransformOperation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698