Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGPathElement.h

Issue 1578363007: Re-instate geometry sharing optimization for 'd' on <use>'d <path>s (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGPathElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 22 matching lines...) Expand all
33 DEFINE_WRAPPERTYPEINFO(); 33 DEFINE_WRAPPERTYPEINFO();
34 public: 34 public:
35 DECLARE_NODE_FACTORY(SVGPathElement); 35 DECLARE_NODE_FACTORY(SVGPathElement);
36 36
37 Path asPath() const override; 37 Path asPath() const override;
38 38
39 float getTotalLength(); 39 float getTotalLength();
40 PassRefPtrWillBeRawPtr<SVGPointTearOff> getPointAtLength(float distance); 40 PassRefPtrWillBeRawPtr<SVGPointTearOff> getPointAtLength(float distance);
41 unsigned getPathSegAtLength(float distance); 41 unsigned getPathSegAtLength(float distance);
42 42
43 SVGAnimatedPath* path() { return m_path.get(); } 43 SVGAnimatedPath* path() const { return m_path.get(); }
44 SVGAnimatedNumber* pathLength() { return m_pathLength.get(); } 44 SVGAnimatedNumber* pathLength() const { return m_pathLength.get(); }
45 45
46 const SVGPathByteStream& pathByteStream() const; 46 const SVGPathByteStream& pathByteStream() const;
47 47
48 bool isPresentationAttribute(const QualifiedName&) const override; 48 bool isPresentationAttribute(const QualifiedName&) const override;
49 bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const override; 49 bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const override;
50 50
51 DECLARE_VIRTUAL_TRACE(); 51 DECLARE_VIRTUAL_TRACE();
52 52
53 private: 53 private:
54 explicit SVGPathElement(Document&); 54 explicit SVGPathElement(Document&);
55 55
56 void svgAttributeChanged(const QualifiedName&) override; 56 void svgAttributeChanged(const QualifiedName&) override;
57 57
58 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic String&, MutableStylePropertySet*) override; 58 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic String&, MutableStylePropertySet*) override;
59 59
60 Node::InsertionNotificationRequest insertedInto(ContainerNode*) override; 60 Node::InsertionNotificationRequest insertedInto(ContainerNode*) override;
61 void removedFrom(ContainerNode*) override; 61 void removedFrom(ContainerNode*) override;
62 62
63 void invalidateMPathDependencies(); 63 void invalidateMPathDependencies();
64 64
65 RefPtrWillBeMember<SVGAnimatedNumber> m_pathLength; 65 RefPtrWillBeMember<SVGAnimatedNumber> m_pathLength;
66 RefPtrWillBeMember<SVGAnimatedPath> m_path; 66 RefPtrWillBeMember<SVGAnimatedPath> m_path;
67 }; 67 };
68 68
69 } // namespace blink 69 } // namespace blink
70 70
71 #endif // SVGPathElement_h 71 #endif // SVGPathElement_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGPathElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698