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, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 DEFINE_NODE_FACTORY(SVGPathElement) | 69 DEFINE_NODE_FACTORY(SVGPathElement) |
70 | 70 |
71 Path SVGPathElement::asPath() const | 71 Path SVGPathElement::asPath() const |
72 { | 72 { |
73 if (layoutObject()) { | 73 if (layoutObject()) { |
74 const SVGComputedStyle& svgStyle = layoutObject()->styleRef().svgStyle()
; | 74 const SVGComputedStyle& svgStyle = layoutObject()->styleRef().svgStyle()
; |
75 return svgStyle.d()->path(); | 75 return svgStyle.d()->path(); |
76 } | 76 } |
77 | 77 |
78 return m_path->currentValue()->pathValue()->path(); | 78 return m_path->currentValue()->pathValue()->cachedPath()->path(); |
79 } | 79 } |
80 | 80 |
81 const SVGPathByteStream& SVGPathElement::pathByteStream() const | 81 const SVGPathByteStream& SVGPathElement::pathByteStream() const |
82 { | 82 { |
83 if (layoutObject()) { | 83 if (layoutObject()) { |
84 const SVGComputedStyle& svgStyle = layoutObject()->styleRef().svgStyle()
; | 84 const SVGComputedStyle& svgStyle = layoutObject()->styleRef().svgStyle()
; |
85 return svgStyle.d()->byteStream(); | 85 return svgStyle.d()->byteStream(); |
86 } | 86 } |
87 | 87 |
88 return m_path->currentValue()->byteStream(); | 88 return m_path->currentValue()->byteStream(); |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 return InsertionDone; | 177 return InsertionDone; |
178 } | 178 } |
179 | 179 |
180 void SVGPathElement::removedFrom(ContainerNode* rootParent) | 180 void SVGPathElement::removedFrom(ContainerNode* rootParent) |
181 { | 181 { |
182 SVGGeometryElement::removedFrom(rootParent); | 182 SVGGeometryElement::removedFrom(rootParent); |
183 invalidateMPathDependencies(); | 183 invalidateMPathDependencies(); |
184 } | 184 } |
185 | 185 |
186 } // namespace blink | 186 } // namespace blink |
OLD | NEW |