| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 return ""; | 146 return ""; |
| 147 } | 147 } |
| 148 | 148 |
| 149 } // namespace | 149 } // namespace |
| 150 | 150 |
| 151 String SVGTransform::valueAsString() const { | 151 String SVGTransform::valueAsString() const { |
| 152 double arguments[6]; | 152 double arguments[6]; |
| 153 size_t argumentCount = 0; | 153 size_t argumentCount = 0; |
| 154 switch (m_transformType) { | 154 switch (m_transformType) { |
| 155 case kSvgTransformUnknown: | 155 case kSvgTransformUnknown: |
| 156 return emptyString(); | 156 return emptyString; |
| 157 case kSvgTransformMatrix: { | 157 case kSvgTransformMatrix: { |
| 158 arguments[argumentCount++] = m_matrix.a(); | 158 arguments[argumentCount++] = m_matrix.a(); |
| 159 arguments[argumentCount++] = m_matrix.b(); | 159 arguments[argumentCount++] = m_matrix.b(); |
| 160 arguments[argumentCount++] = m_matrix.c(); | 160 arguments[argumentCount++] = m_matrix.c(); |
| 161 arguments[argumentCount++] = m_matrix.d(); | 161 arguments[argumentCount++] = m_matrix.d(); |
| 162 arguments[argumentCount++] = m_matrix.e(); | 162 arguments[argumentCount++] = m_matrix.e(); |
| 163 arguments[argumentCount++] = m_matrix.f(); | 163 arguments[argumentCount++] = m_matrix.f(); |
| 164 break; | 164 break; |
| 165 } | 165 } |
| 166 case kSvgTransformTranslate: { | 166 case kSvgTransformTranslate: { |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 } | 232 } |
| 233 | 233 |
| 234 float SVGTransform::calculateDistance(SVGPropertyBase*, SVGElement*) { | 234 float SVGTransform::calculateDistance(SVGPropertyBase*, SVGElement*) { |
| 235 // SVGTransform is not animated by itself. | 235 // SVGTransform is not animated by itself. |
| 236 ASSERT_NOT_REACHED(); | 236 ASSERT_NOT_REACHED(); |
| 237 | 237 |
| 238 return -1; | 238 return -1; |
| 239 } | 239 } |
| 240 | 240 |
| 241 } // namespace blink | 241 } // namespace blink |
| OLD | NEW |