| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 SVGPropertyBase* fromValue, | 125 SVGPropertyBase* fromValue, |
| 126 SVGPropertyBase* toValue, | 126 SVGPropertyBase* toValue, |
| 127 SVGPropertyBase* toAtEndOfDurationValue, | 127 SVGPropertyBase* toAtEndOfDurationValue, |
| 128 SVGElement* contextElement) { | 128 SVGElement* contextElement) { |
| 129 SVGLengthList* fromList = toSVGLengthList(fromValue); | 129 SVGLengthList* fromList = toSVGLengthList(fromValue); |
| 130 SVGLengthList* toList = toSVGLengthList(toValue); | 130 SVGLengthList* toList = toSVGLengthList(toValue); |
| 131 SVGLengthList* toAtEndOfDurationList = | 131 SVGLengthList* toAtEndOfDurationList = |
| 132 toSVGLengthList(toAtEndOfDurationValue); | 132 toSVGLengthList(toAtEndOfDurationValue); |
| 133 | 133 |
| 134 SVGLengthContext lengthContext(contextElement); | 134 SVGLengthContext lengthContext(contextElement); |
| 135 ASSERT(m_mode == SVGLength::lengthModeForAnimatedLengthAttribute( | 135 ASSERT(m_mode == |
| 136 animationElement->attributeName())); | 136 SVGLength::lengthModeForAnimatedLengthAttribute( |
| 137 animationElement->attributeName())); |
| 137 | 138 |
| 138 size_t fromLengthListSize = fromList->length(); | 139 size_t fromLengthListSize = fromList->length(); |
| 139 size_t toLengthListSize = toList->length(); | 140 size_t toLengthListSize = toList->length(); |
| 140 size_t toAtEndOfDurationListSize = toAtEndOfDurationList->length(); | 141 size_t toAtEndOfDurationListSize = toAtEndOfDurationList->length(); |
| 141 | 142 |
| 142 if (!adjustFromToListValues(fromList, toList, percentage, | 143 if (!adjustFromToListValues(fromList, toList, percentage, |
| 143 animationElement->getAnimationMode())) | 144 animationElement->getAnimationMode())) |
| 144 return; | 145 return; |
| 145 | 146 |
| 146 for (size_t i = 0; i < toLengthListSize; ++i) { | 147 for (size_t i = 0; i < toLengthListSize; ++i) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 167 at(i)->setValue(animatedNumber, lengthContext); | 168 at(i)->setValue(animatedNumber, lengthContext); |
| 168 } | 169 } |
| 169 } | 170 } |
| 170 | 171 |
| 171 float SVGLengthList::calculateDistance(SVGPropertyBase* to, SVGElement*) { | 172 float SVGLengthList::calculateDistance(SVGPropertyBase* to, SVGElement*) { |
| 172 // FIXME: Distance calculation is not possible for SVGLengthList right now. We | 173 // FIXME: Distance calculation is not possible for SVGLengthList right now. We |
| 173 // need the distance for every single value. | 174 // need the distance for every single value. |
| 174 return -1; | 175 return -1; |
| 175 } | 176 } |
| 176 } // namespace blink | 177 } // namespace blink |
| OLD | NEW |