OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 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 * | 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 11 matching lines...) Expand all Loading... |
22 #include "core/svg/SVGPointList.h" | 22 #include "core/svg/SVGPointList.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 "platform/geometry/FloatPoint.h" | 26 #include "platform/geometry/FloatPoint.h" |
27 #include "wtf/text/StringBuilder.h" | 27 #include "wtf/text/StringBuilder.h" |
28 #include "wtf/text/WTFString.h" | 28 #include "wtf/text/WTFString.h" |
29 | 29 |
30 namespace blink { | 30 namespace blink { |
31 | 31 |
32 inline PassRefPtrWillBeRawPtr<SVGPointList> toSVGPointList(PassRefPtrWillBeRawPt
r<SVGPropertyBase> passBase) | 32 DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGPointList); |
33 { | |
34 RefPtrWillBeRawPtr<SVGPropertyBase> base = passBase; | |
35 ASSERT(base->type() == SVGPointList::classType()); | |
36 return static_pointer_cast<SVGPointList>(base.release()); | |
37 } | |
38 | 33 |
39 SVGPointList::SVGPointList() | 34 SVGPointList::SVGPointList() |
40 { | 35 { |
41 } | 36 } |
42 | 37 |
43 SVGPointList::~SVGPointList() | 38 SVGPointList::~SVGPointList() |
44 { | 39 { |
45 } | 40 } |
46 | 41 |
47 String SVGPointList::valueAsString() const | 42 String SVGPointList::valueAsString() const |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 } | 155 } |
161 } | 156 } |
162 | 157 |
163 float SVGPointList::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> to
, SVGElement*) | 158 float SVGPointList::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> to
, SVGElement*) |
164 { | 159 { |
165 // FIXME: Distance calculation is not possible for SVGPointList right now. W
e need the distance for every single value. | 160 // FIXME: Distance calculation is not possible for SVGPointList right now. W
e need the distance for every single value. |
166 return -1; | 161 return -1; |
167 } | 162 } |
168 | 163 |
169 } | 164 } |
OLD | NEW |