OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 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 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 invalidateList(); | 155 invalidateList(); |
156 if (!m_byteStream) | 156 if (!m_byteStream) |
157 m_byteStream = SVGPathByteStream::create(); | 157 m_byteStream = SVGPathByteStream::create(); |
158 if (!buildSVGPathByteStreamFromString(string, m_byteStream.get(), UnalteredP
arsing)) | 158 if (!buildSVGPathByteStreamFromString(string, m_byteStream.get(), UnalteredP
arsing)) |
159 exceptionState.throwDOMException(SyntaxError, "Problem parsing path \""
+ string + "\""); | 159 exceptionState.throwDOMException(SyntaxError, "Problem parsing path \""
+ string + "\""); |
160 } | 160 } |
161 | 161 |
162 void SVGPathSegList::add(PassRefPtr<NewSVGPropertyBase> other, SVGElement*) | 162 void SVGPathSegList::add(PassRefPtr<NewSVGPropertyBase> other, SVGElement*) |
163 { | 163 { |
164 RefPtr<SVGPathSegList> otherList = toSVGPathSegList(other); | 164 RefPtr<SVGPathSegList> otherList = toSVGPathSegList(other); |
165 if (numberOfItems() != otherList->numberOfItems()) | 165 if (length() != otherList->length()) |
166 return; | 166 return; |
167 | 167 |
168 byteStream(); // create |m_byteStream| if not exist. | 168 byteStream(); // create |m_byteStream| if not exist. |
169 addToSVGPathByteStream(m_byteStream.get(), otherList->byteStream()); | 169 addToSVGPathByteStream(m_byteStream.get(), otherList->byteStream()); |
170 invalidateList(); | 170 invalidateList(); |
171 } | 171 } |
172 | 172 |
173 void SVGPathSegList::calculateAnimatedValue(SVGAnimationElement* animationElemen
t, float percentage, unsigned repeatCount, PassRefPtr<NewSVGPropertyBase> fromVa
lue, PassRefPtr<NewSVGPropertyBase> toValue, PassRefPtr<NewSVGPropertyBase> toAt
EndOfDurationValue, SVGElement*) | 173 void SVGPathSegList::calculateAnimatedValue(SVGAnimationElement* animationElemen
t, float percentage, unsigned repeatCount, PassRefPtr<NewSVGPropertyBase> fromVa
lue, PassRefPtr<NewSVGPropertyBase> toValue, PassRefPtr<NewSVGPropertyBase> toAt
EndOfDurationValue, SVGElement*) |
174 { | 174 { |
175 invalidateList(); | 175 invalidateList(); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 } | 230 } |
231 } | 231 } |
232 | 232 |
233 float SVGPathSegList::calculateDistance(PassRefPtr<NewSVGPropertyBase> to, SVGEl
ement*) | 233 float SVGPathSegList::calculateDistance(PassRefPtr<NewSVGPropertyBase> to, SVGEl
ement*) |
234 { | 234 { |
235 // FIXME: Support paced animations. | 235 // FIXME: Support paced animations. |
236 return -1; | 236 return -1; |
237 } | 237 } |
238 | 238 |
239 } | 239 } |
OLD | NEW |