| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 } | 130 } |
| 131 } | 131 } |
| 132 | 132 |
| 133 return builder.toString(); | 133 return builder.toString(); |
| 134 } | 134 } |
| 135 | 135 |
| 136 bool SVGStringList::checkIndexBound(size_t index, | 136 bool SVGStringList::checkIndexBound(size_t index, |
| 137 ExceptionState& exceptionState) { | 137 ExceptionState& exceptionState) { |
| 138 if (index >= m_values.size()) { | 138 if (index >= m_values.size()) { |
| 139 exceptionState.throwDOMException( | 139 exceptionState.throwDOMException( |
| 140 IndexSizeError, ExceptionMessages::indexExceedsMaximumBound( | 140 IndexSizeError, |
| 141 "index", index, m_values.size())); | 141 ExceptionMessages::indexExceedsMaximumBound("index", index, |
| 142 m_values.size())); |
| 142 return false; | 143 return false; |
| 143 } | 144 } |
| 144 | 145 |
| 145 return true; | 146 return true; |
| 146 } | 147 } |
| 147 | 148 |
| 148 void SVGStringList::add(SVGPropertyBase* other, SVGElement* contextElement) { | 149 void SVGStringList::add(SVGPropertyBase* other, SVGElement* contextElement) { |
| 149 // SVGStringList is never animated. | 150 // SVGStringList is never animated. |
| 150 ASSERT_NOT_REACHED(); | 151 ASSERT_NOT_REACHED(); |
| 151 } | 152 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 162 } | 163 } |
| 163 | 164 |
| 164 float SVGStringList::calculateDistance(SVGPropertyBase*, SVGElement*) { | 165 float SVGStringList::calculateDistance(SVGPropertyBase*, SVGElement*) { |
| 165 // SVGStringList is never animated. | 166 // SVGStringList is never animated. |
| 166 ASSERT_NOT_REACHED(); | 167 ASSERT_NOT_REACHED(); |
| 167 | 168 |
| 168 return -1.0f; | 169 return -1.0f; |
| 169 } | 170 } |
| 170 | 171 |
| 171 } // namespace blink | 172 } // namespace blink |
| OLD | NEW |