| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 SVGPointTearOff* getPointAtLength(float distance) override; | 44 SVGPointTearOff* getPointAtLength(float distance) override; |
| 45 unsigned getPathSegAtLength(float distance); | 45 unsigned getPathSegAtLength(float distance); |
| 46 | 46 |
| 47 SVGAnimatedPath* path() const { return m_path.get(); } | 47 SVGAnimatedPath* path() const { return m_path.get(); } |
| 48 SVGAnimatedNumber* pathLength() const { return m_pathLength.get(); } | 48 SVGAnimatedNumber* pathLength() const { return m_pathLength.get(); } |
| 49 float pathLengthScaleFactor() const; | 49 float pathLengthScaleFactor() const; |
| 50 const SVGPathByteStream& pathByteStream() const { | 50 const SVGPathByteStream& pathByteStream() const { |
| 51 return stylePath()->byteStream(); | 51 return stylePath()->byteStream(); |
| 52 } | 52 } |
| 53 | 53 |
| 54 bool isPresentationAttribute(const QualifiedName&) const override; | |
| 55 bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const override; | |
| 56 | |
| 57 FloatRect getBBox() override; | 54 FloatRect getBBox() override; |
| 58 | 55 |
| 59 DECLARE_VIRTUAL_TRACE(); | 56 DECLARE_VIRTUAL_TRACE(); |
| 60 | 57 |
| 61 private: | 58 private: |
| 62 explicit SVGPathElement(Document&); | 59 explicit SVGPathElement(Document&); |
| 63 | 60 |
| 64 const StylePath* stylePath() const; | 61 const StylePath* stylePath() const; |
| 65 | 62 |
| 66 void svgAttributeChanged(const QualifiedName&) override; | 63 void svgAttributeChanged(const QualifiedName&) override; |
| 67 | 64 |
| 68 void collectStyleForPresentationAttribute(const QualifiedName&, | 65 void collectStyleForPresentationAttribute(const QualifiedName&, |
| 69 const AtomicString&, | 66 const AtomicString&, |
| 70 MutableStylePropertySet*) override; | 67 MutableStylePropertySet*) override; |
| 71 | 68 |
| 72 Node::InsertionNotificationRequest insertedInto(ContainerNode*) override; | 69 Node::InsertionNotificationRequest insertedInto(ContainerNode*) override; |
| 73 void removedFrom(ContainerNode*) override; | 70 void removedFrom(ContainerNode*) override; |
| 74 | 71 |
| 75 void invalidateMPathDependencies(); | 72 void invalidateMPathDependencies(); |
| 76 | 73 |
| 77 Member<SVGAnimatedNumber> m_pathLength; | 74 Member<SVGAnimatedNumber> m_pathLength; |
| 78 Member<SVGAnimatedPath> m_path; | 75 Member<SVGAnimatedPath> m_path; |
| 79 }; | 76 }; |
| 80 | 77 |
| 81 } // namespace blink | 78 } // namespace blink |
| 82 | 79 |
| 83 #endif // SVGPathElement_h | 80 #endif // SVGPathElement_h |
| OLD | NEW |