OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 PassRefPtr<SVGTransform> SVGTransform::clone() const | 68 PassRefPtr<SVGTransform> SVGTransform::clone() const |
69 { | 69 { |
70 return adoptRef(new SVGTransform(m_transformType, m_angle, m_center, m_matri
x)); | 70 return adoptRef(new SVGTransform(m_transformType, m_angle, m_center, m_matri
x)); |
71 } | 71 } |
72 | 72 |
73 PassRefPtr<NewSVGPropertyBase> SVGTransform::cloneForAnimation(const String&) co
nst | 73 PassRefPtr<NewSVGPropertyBase> SVGTransform::cloneForAnimation(const String&) co
nst |
74 { | 74 { |
75 // SVGTransform is never animated. | 75 // SVGTransform is never animated. |
76 ASSERT_NOT_REACHED(); | 76 ASSERT_NOT_REACHED(); |
77 return 0; | 77 return nullptr; |
78 } | 78 } |
79 | 79 |
80 void SVGTransform::setMatrix(const AffineTransform& matrix) | 80 void SVGTransform::setMatrix(const AffineTransform& matrix) |
81 { | 81 { |
82 onMatrixChange(); | 82 onMatrixChange(); |
83 m_matrix = matrix; | 83 m_matrix = matrix; |
84 } | 84 } |
85 | 85 |
86 void SVGTransform::onMatrixChange() | 86 void SVGTransform::onMatrixChange() |
87 { | 87 { |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 | 238 |
239 float SVGTransform::calculateDistance(PassRefPtr<NewSVGPropertyBase>, SVGElement
*) | 239 float SVGTransform::calculateDistance(PassRefPtr<NewSVGPropertyBase>, SVGElement
*) |
240 { | 240 { |
241 // SVGTransform is not animated by itself. | 241 // SVGTransform is not animated by itself. |
242 ASSERT_NOT_REACHED(); | 242 ASSERT_NOT_REACHED(); |
243 | 243 |
244 return -1; | 244 return -1; |
245 } | 245 } |
246 | 246 |
247 } // namespace WebCore | 247 } // namespace WebCore |
OLD | NEW |