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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 return "rotate("; | 165 return "rotate("; |
166 case SVG_TRANSFORM_SKEWX: | 166 case SVG_TRANSFORM_SKEWX: |
167 return "skewX("; | 167 return "skewX("; |
168 case SVG_TRANSFORM_SKEWY: | 168 case SVG_TRANSFORM_SKEWY: |
169 return "skewY("; | 169 return "skewY("; |
170 } | 170 } |
171 ASSERT_NOT_REACHED(); | 171 ASSERT_NOT_REACHED(); |
172 return ""; | 172 return ""; |
173 } | 173 } |
174 | 174 |
175 } | 175 } // namespace |
176 | 176 |
177 String SVGTransform::valueAsString() const | 177 String SVGTransform::valueAsString() const |
178 { | 178 { |
179 double arguments[6]; | 179 double arguments[6]; |
180 size_t argumentCount = 0; | 180 size_t argumentCount = 0; |
181 switch (m_transformType) { | 181 switch (m_transformType) { |
182 case SVG_TRANSFORM_UNKNOWN: | 182 case SVG_TRANSFORM_UNKNOWN: |
183 return emptyString(); | 183 return emptyString(); |
184 case SVG_TRANSFORM_MATRIX: { | 184 case SVG_TRANSFORM_MATRIX: { |
185 arguments[argumentCount++] = m_matrix.a(); | 185 arguments[argumentCount++] = m_matrix.a(); |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 | 249 |
250 float SVGTransform::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase>, S
VGElement*) | 250 float SVGTransform::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase>, S
VGElement*) |
251 { | 251 { |
252 // SVGTransform is not animated by itself. | 252 // SVGTransform is not animated by itself. |
253 ASSERT_NOT_REACHED(); | 253 ASSERT_NOT_REACHED(); |
254 | 254 |
255 return -1; | 255 return -1; |
256 } | 256 } |
257 | 257 |
258 } // namespace blink | 258 } // namespace blink |
OLD | NEW |