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

Side by Side Diff: Source/platform/transforms/RotateTransformOperation.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 double x() const { return m_x; } 44 double x() const { return m_x; }
45 double y() const { return m_y; } 45 double y() const { return m_y; }
46 double z() const { return m_z; } 46 double z() const { return m_z; }
47 double angle() const { return m_angle; } 47 double angle() const { return m_angle; }
48 48
49 private: 49 private:
50 virtual bool isIdentity() const OVERRIDE { return !m_angle; } 50 virtual bool isIdentity() const OVERRIDE { return !m_angle; }
51 51
52 virtual OperationType type() const OVERRIDE { return m_type; } 52 virtual OperationType type() const OVERRIDE { return m_type; }
53 53
54 virtual bool operator==(const TransformOperation& o) const 54 virtual bool operator==(const TransformOperation& o) const OVERRIDE
55 { 55 {
56 if (!isSameType(o)) 56 if (!isSameType(o))
57 return false; 57 return false;
58 const RotateTransformOperation* r = static_cast<const RotateTransformOpe ration*>(&o); 58 const RotateTransformOperation* r = static_cast<const RotateTransformOpe ration*>(&o);
59 return m_x == r->m_x && m_y == r->m_y && m_z == r->m_z && m_angle == r-> m_angle; 59 return m_x == r->m_x && m_y == r->m_y && m_z == r->m_z && m_angle == r-> m_angle;
60 } 60 }
61 61
62 virtual void apply(TransformationMatrix& transform, const FloatSize& /*borde rBoxSize*/) const OVERRIDE 62 virtual void apply(TransformationMatrix& transform, const FloatSize& /*borde rBoxSize*/) const OVERRIDE
63 { 63 {
64 transform.rotate3d(m_x, m_y, m_z, m_angle); 64 transform.rotate3d(m_x, m_y, m_z, m_angle);
(...skipping 14 matching lines...) Expand all
79 double m_x; 79 double m_x;
80 double m_y; 80 double m_y;
81 double m_z; 81 double m_z;
82 double m_angle; 82 double m_angle;
83 OperationType m_type; 83 OperationType m_type;
84 }; 84 };
85 85
86 } // namespace WebCore 86 } // namespace WebCore
87 87
88 #endif // RotateTransformOperation_h 88 #endif // RotateTransformOperation_h
OLDNEW
« 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