| 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 19 matching lines...) Expand all Loading... |
| 30 namespace blink { | 30 namespace blink { |
| 31 | 31 |
| 32 class StylePath; | 32 class StylePath; |
| 33 | 33 |
| 34 class SVGPathElement final : public SVGGeometryElement { | 34 class SVGPathElement final : public SVGGeometryElement { |
| 35 DEFINE_WRAPPERTYPEINFO(); | 35 DEFINE_WRAPPERTYPEINFO(); |
| 36 public: | 36 public: |
| 37 DECLARE_NODE_FACTORY(SVGPathElement); | 37 DECLARE_NODE_FACTORY(SVGPathElement); |
| 38 | 38 |
| 39 Path asPath() const override; | 39 Path asPath() const override; |
| 40 Path attributePath() const; |
| 40 | 41 |
| 41 float getTotalLength(); | 42 float getTotalLength(); |
| 42 SVGPointTearOff* getPointAtLength(float distance); | 43 SVGPointTearOff* getPointAtLength(float distance); |
| 43 unsigned getPathSegAtLength(float distance); | 44 unsigned getPathSegAtLength(float distance); |
| 44 | 45 |
| 45 SVGAnimatedPath* path() const { return m_path.get(); } | 46 SVGAnimatedPath* path() const { return m_path.get(); } |
| 46 SVGAnimatedNumber* pathLength() const { return m_pathLength.get(); } | 47 SVGAnimatedNumber* pathLength() const { return m_pathLength.get(); } |
| 47 float pathLengthScaleFactor() const; | 48 float pathLengthScaleFactor() const; |
| 48 const SVGPathByteStream& pathByteStream() const { return stylePath()->byteSt
ream(); } | 49 const SVGPathByteStream& pathByteStream() const { return stylePath()->byteSt
ream(); } |
| 49 | 50 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 68 | 69 |
| 69 void invalidateMPathDependencies(); | 70 void invalidateMPathDependencies(); |
| 70 | 71 |
| 71 Member<SVGAnimatedNumber> m_pathLength; | 72 Member<SVGAnimatedNumber> m_pathLength; |
| 72 Member<SVGAnimatedPath> m_path; | 73 Member<SVGAnimatedPath> m_path; |
| 73 }; | 74 }; |
| 74 | 75 |
| 75 } // namespace blink | 76 } // namespace blink |
| 76 | 77 |
| 77 #endif // SVGPathElement_h | 78 #endif // SVGPathElement_h |
| OLD | NEW |