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

Side by Side Diff: Source/platform/transforms/MatrixTransformOperation.h

Issue 137933002: Update more 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 return adoptRef(new MatrixTransformOperation(t)); 42 return adoptRef(new MatrixTransformOperation(t));
43 } 43 }
44 44
45 TransformationMatrix matrix() const { return TransformationMatrix(m_a, m_b, m_c, m_d, m_e, m_f); } 45 TransformationMatrix matrix() const { return TransformationMatrix(m_a, m_b, m_c, m_d, m_e, m_f); }
46 46
47 private: 47 private:
48 virtual bool isIdentity() const OVERRIDE { return m_a == 1 && !m_b && !m_c & & m_d == 1 && !m_e && !m_f; } 48 virtual bool isIdentity() const OVERRIDE { return m_a == 1 && !m_b && !m_c & & m_d == 1 && !m_e && !m_f; }
49 49
50 virtual OperationType type() const OVERRIDE { return Matrix; } 50 virtual OperationType type() const OVERRIDE { return Matrix; }
51 51
52 virtual bool operator==(const TransformOperation& o) const 52 virtual bool operator==(const TransformOperation& o) const OVERRIDE
53 { 53 {
54 if (!isSameType(o)) 54 if (!isSameType(o))
55 return false; 55 return false;
56 56
57 const MatrixTransformOperation* m = static_cast<const MatrixTransformOpe ration*>(&o); 57 const MatrixTransformOperation* m = static_cast<const MatrixTransformOpe ration*>(&o);
58 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; 58 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;
59 } 59 }
60 60
61 virtual void apply(TransformationMatrix& transform, const FloatSize&) const OVERRIDE 61 virtual void apply(TransformationMatrix& transform, const FloatSize&) const OVERRIDE
62 { 62 {
(...skipping 27 matching lines...) Expand all
90 double m_b; 90 double m_b;
91 double m_c; 91 double m_c;
92 double m_d; 92 double m_d;
93 double m_e; 93 double m_e;
94 double m_f; 94 double m_f;
95 }; 95 };
96 96
97 } // namespace WebCore 97 } // namespace WebCore
98 98
99 #endif // MatrixTransformOperation_h 99 #endif // MatrixTransformOperation_h
OLDNEW
« 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