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/SVGNumberList.h" | 22 #include "core/svg/SVGNumberList.h" |
23 | 23 |
24 #include "core/svg/SVGAnimationElement.h" | 24 #include "core/svg/SVGAnimationElement.h" |
25 #include "core/svg/SVGParserUtilities.h" | 25 #include "core/svg/SVGParserUtilities.h" |
26 #include "wtf/text/StringBuilder.h" | 26 #include "wtf/text/StringBuilder.h" |
27 #include "wtf/text/WTFString.h" | 27 #include "wtf/text/WTFString.h" |
28 | 28 |
29 namespace blink { | 29 namespace blink { |
30 | 30 |
31 inline PassRefPtrWillBeRawPtr<SVGNumberList> toSVGNumberList(PassRefPtrWillBeRaw
Ptr<SVGPropertyBase> passBase) | 31 DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGNumberList); |
32 { | |
33 RefPtrWillBeRawPtr<SVGPropertyBase> base = passBase; | |
34 ASSERT(base->type() == SVGNumberList::classType()); | |
35 return static_pointer_cast<SVGNumberList>(base.release()); | |
36 } | |
37 | 32 |
38 SVGNumberList::SVGNumberList() | 33 SVGNumberList::SVGNumberList() |
39 { | 34 { |
40 } | 35 } |
41 | 36 |
42 SVGNumberList::~SVGNumberList() | 37 SVGNumberList::~SVGNumberList() |
43 { | 38 { |
44 } | 39 } |
45 | 40 |
46 String SVGNumberList::valueAsString() const | 41 String SVGNumberList::valueAsString() const |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 Vector<float> SVGNumberList::toFloatVector() const | 141 Vector<float> SVGNumberList::toFloatVector() const |
147 { | 142 { |
148 Vector<float> vec; | 143 Vector<float> vec; |
149 vec.reserveInitialCapacity(length()); | 144 vec.reserveInitialCapacity(length()); |
150 for (size_t i = 0; i < length(); ++i) | 145 for (size_t i = 0; i < length(); ++i) |
151 vec.uncheckedAppend(at(i)->value()); | 146 vec.uncheckedAppend(at(i)->value()); |
152 return vec; | 147 return vec; |
153 } | 148 } |
154 | 149 |
155 } | 150 } |
OLD | NEW |