| OLD | NEW |
| 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, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 m_values[index] = newItem; | 85 m_values[index] = newItem; |
| 86 } | 86 } |
| 87 | 87 |
| 88 template<typename CharType> | 88 template<typename CharType> |
| 89 void SVGStringList::parseInternal(const CharType*& ptr, const CharType* end) | 89 void SVGStringList::parseInternal(const CharType*& ptr, const CharType* end) |
| 90 { | 90 { |
| 91 const UChar delimiter = ' '; | 91 const UChar delimiter = ' '; |
| 92 | 92 |
| 93 while (ptr < end) { | 93 while (ptr < end) { |
| 94 const CharType* start = ptr; | 94 const CharType* start = ptr; |
| 95 while (ptr < end && *ptr != delimiter && !isHTMLSpace<CharType>(*ptr)) | 95 while (ptr < end && *ptr != delimiter && !isSVGSpace(*ptr)) |
| 96 ptr++; | 96 ptr++; |
| 97 if (ptr == start) | 97 if (ptr == start) |
| 98 break; | 98 break; |
| 99 m_values.append(String(start, ptr - start)); | 99 m_values.append(String(start, ptr - start)); |
| 100 skipOptionalSVGSpacesOrDelimiter(ptr, end, delimiter); | 100 skipOptionalSVGSpacesOrDelimiter(ptr, end, delimiter); |
| 101 } | 101 } |
| 102 } | 102 } |
| 103 | 103 |
| 104 PassRefPtr<SVGStringList> SVGStringList::clone() | 104 PassRefPtr<SVGStringList> SVGStringList::clone() |
| 105 { | 105 { |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 175 |
| 176 float SVGStringList::calculateDistance(PassRefPtr<SVGPropertyBase>, SVGElement*) | 176 float SVGStringList::calculateDistance(PassRefPtr<SVGPropertyBase>, SVGElement*) |
| 177 { | 177 { |
| 178 // SVGStringList is never animated. | 178 // SVGStringList is never animated. |
| 179 ASSERT_NOT_REACHED(); | 179 ASSERT_NOT_REACHED(); |
| 180 | 180 |
| 181 return -1.0f; | 181 return -1.0f; |
| 182 } | 182 } |
| 183 | 183 |
| 184 } | 184 } |
| OLD | NEW |