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 10 matching lines...) Expand all Loading... |
21 #include "config.h" | 21 #include "config.h" |
22 #include "core/svg/SVGLengthList.h" | 22 #include "core/svg/SVGLengthList.h" |
23 | 23 |
24 #include "bindings/core/v8/ExceptionStatePlaceholder.h" | 24 #include "bindings/core/v8/ExceptionStatePlaceholder.h" |
25 #include "core/svg/SVGAnimationElement.h" | 25 #include "core/svg/SVGAnimationElement.h" |
26 #include "core/svg/SVGParserUtilities.h" | 26 #include "core/svg/SVGParserUtilities.h" |
27 #include "wtf/text/StringBuilder.h" | 27 #include "wtf/text/StringBuilder.h" |
28 | 28 |
29 namespace blink { | 29 namespace blink { |
30 | 30 |
31 inline PassRefPtrWillBeRawPtr<SVGLengthList> toSVGLengthList(PassRefPtrWillBeRaw
Ptr<SVGPropertyBase> passBase) | 31 DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGLengthList); |
32 { | |
33 RefPtrWillBeRawPtr<SVGPropertyBase> base = passBase; | |
34 ASSERT(base->type() == SVGLengthList::classType()); | |
35 return static_pointer_cast<SVGLengthList>(base.release()); | |
36 } | |
37 | 32 |
38 SVGLengthList::SVGLengthList(SVGLengthMode mode) | 33 SVGLengthList::SVGLengthList(SVGLengthMode mode) |
39 : m_mode(mode) | 34 : m_mode(mode) |
40 { | 35 { |
41 } | 36 } |
42 | 37 |
43 SVGLengthList::~SVGLengthList() | 38 SVGLengthList::~SVGLengthList() |
44 { | 39 { |
45 } | 40 } |
46 | 41 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 at(i)->setValue(animatedNumber, lengthContext); | 162 at(i)->setValue(animatedNumber, lengthContext); |
168 } | 163 } |
169 } | 164 } |
170 | 165 |
171 float SVGLengthList::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> t
o, SVGElement*) | 166 float SVGLengthList::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> t
o, SVGElement*) |
172 { | 167 { |
173 // FIXME: Distance calculation is not possible for SVGLengthList right now.
We need the distance for every single value. | 168 // FIXME: Distance calculation is not possible for SVGLengthList right now.
We need the distance for every single value. |
174 return -1; | 169 return -1; |
175 } | 170 } |
176 } | 171 } |
OLD | NEW |