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

Side by Side Diff: Source/core/svg/SVGTransform.h

Issue 19386002: Get rid of special casing for SVGTransform.matrix from the bindings generator (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 }; 47 };
48 48
49 SVGTransform(); 49 SVGTransform();
50 SVGTransform(SVGTransformType, ConstructionMode = ConstructIdentityTransform ); 50 SVGTransform(SVGTransformType, ConstructionMode = ConstructIdentityTransform );
51 explicit SVGTransform(const AffineTransform&); 51 explicit SVGTransform(const AffineTransform&);
52 52
53 SVGTransformType type() const { return m_type; } 53 SVGTransformType type() const { return m_type; }
54 54
55 SVGMatrix& svgMatrix() { return static_cast<SVGMatrix&>(m_matrix); } 55 SVGMatrix& svgMatrix() { return static_cast<SVGMatrix&>(m_matrix); }
56 AffineTransform matrix() const { return m_matrix; } 56 AffineTransform matrix() const { return m_matrix; }
57 void updateMatrix(); 57 void updateSvgMatrix();
58 58
59 float angle() const { return m_angle; } 59 float angle() const { return m_angle; }
60 FloatPoint rotationCenter() const { return m_center; } 60 FloatPoint rotationCenter() const { return m_center; }
61 61
62 void setMatrix(const AffineTransform&); 62 void setMatrix(const AffineTransform&);
63 void setTranslate(float tx, float ty); 63 void setTranslate(float tx, float ty);
64 void setScale(float sx, float sy); 64 void setScale(float sx, float sy);
65 void setRotate(float angle, float cx, float cy); 65 void setRotate(float angle, float cx, float cy);
66 void setSkewX(float angle); 66 void setSkewX(float angle);
67 void setSkewY(float angle); 67 void setSkewY(float angle);
(...skipping 22 matching lines...) Expand all
90 } 90 }
91 91
92 inline bool operator!=(const SVGTransform& a, const SVGTransform& b) 92 inline bool operator!=(const SVGTransform& a, const SVGTransform& b)
93 { 93 {
94 return !(a == b); 94 return !(a == b);
95 } 95 }
96 96
97 } // namespace WebCore 97 } // namespace WebCore
98 98
99 #endif 99 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698