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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
115 m_cachedPath.clear(); | 115 m_cachedPath.clear(); |
116 } | 116 } |
117 | 117 |
118 const SVGPathByteStream& SVGPath::byteStream() const | 118 const SVGPathByteStream& SVGPath::byteStream() const |
119 { | 119 { |
120 return const_cast<SVGPath*>(this)->ensureByteStream(); | 120 return const_cast<SVGPath*>(this)->ensureByteStream(); |
121 } | 121 } |
122 | 122 |
123 String SVGPath::valueAsString() const | 123 String SVGPath::valueAsString() const |
124 { | 124 { |
125 return buildStringFromByteStream(byteStream(), UnalteredParsing); | 125 return buildStringFromByteStream(byteStream()); |
davve
2015/11/27 09:45:57
Does this mean you may drop #include "core/svg/SVG
fs
2015/11/27 11:38:53
Yepp. Done.
| |
126 } | 126 } |
127 | 127 |
128 void SVGPath::setValueAsString(const String& string, ExceptionState& exceptionSt ate) | 128 void SVGPath::setValueAsString(const String& string, ExceptionState& exceptionSt ate) |
129 { | 129 { |
130 if (!buildByteStreamFromString(string, ensureByteStream())) | 130 if (!buildByteStreamFromString(string, ensureByteStream())) |
131 exceptionState.throwDOMException(SyntaxError, "Problem parsing path \"" + string + "\""); | 131 exceptionState.throwDOMException(SyntaxError, "Problem parsing path \"" + string + "\""); |
132 byteStreamChanged(); | 132 byteStreamChanged(); |
133 } | 133 } |
134 | 134 |
135 void SVGPath::setValueAsByteStream(PassOwnPtr<SVGPathByteStream> byteStream) | 135 void SVGPath::setValueAsByteStream(PassOwnPtr<SVGPathByteStream> byteStream) |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
195 setValueAsByteStream(newStream.release()); | 195 setValueAsByteStream(newStream.release()); |
196 } | 196 } |
197 | 197 |
198 float SVGPath::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> to, SVG Element*) | 198 float SVGPath::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> to, SVG Element*) |
199 { | 199 { |
200 // FIXME: Support paced animations. | 200 // FIXME: Support paced animations. |
201 return -1; | 201 return -1; |
202 } | 202 } |
203 | 203 |
204 } | 204 } |
OLD | NEW |