| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 float animated = at(i)->value(); | 122 float animated = at(i)->value(); |
| 123 animationElement->animateAdditiveNumber(percentage, repeatCount, | 123 animationElement->animateAdditiveNumber(percentage, repeatCount, |
| 124 effectiveFrom, effectiveTo, | 124 effectiveFrom, effectiveTo, |
| 125 effectiveToAtEnd, animated); | 125 effectiveToAtEnd, animated); |
| 126 at(i)->setValue(animated); | 126 at(i)->setValue(animated); |
| 127 } | 127 } |
| 128 } | 128 } |
| 129 | 129 |
| 130 float SVGNumberList::calculateDistance(SVGPropertyBase* to, SVGElement*) { | 130 float SVGNumberList::calculateDistance(SVGPropertyBase* to, SVGElement*) { |
| 131 // FIXME: Distance calculation is not possible for SVGNumberList right now. We
need the distance for every single value. | 131 // FIXME: Distance calculation is not possible for SVGNumberList right now. We |
| 132 // need the distance for every single value. |
| 132 return -1; | 133 return -1; |
| 133 } | 134 } |
| 134 | 135 |
| 135 Vector<float> SVGNumberList::toFloatVector() const { | 136 Vector<float> SVGNumberList::toFloatVector() const { |
| 136 Vector<float> vec; | 137 Vector<float> vec; |
| 137 vec.reserveInitialCapacity(length()); | 138 vec.reserveInitialCapacity(length()); |
| 138 for (size_t i = 0; i < length(); ++i) | 139 for (size_t i = 0; i < length(); ++i) |
| 139 vec.uncheckedAppend(at(i)->value()); | 140 vec.uncheckedAppend(at(i)->value()); |
| 140 return vec; | 141 return vec; |
| 141 } | 142 } |
| 142 | 143 |
| 143 } // namespace blink | 144 } // namespace blink |
| OLD | NEW |