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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 21 matching lines...) Expand all
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 40
41 float getTotalLength(); 41 float getTotalLength();
42 PassRefPtrWillBeRawPtr<SVGPointTearOff> getPointAtLength(float distance); 42 RawPtr<SVGPointTearOff> getPointAtLength(float distance);
43 unsigned getPathSegAtLength(float distance); 43 unsigned getPathSegAtLength(float distance);
44 44
45 SVGAnimatedPath* path() const { return m_path.get(); } 45 SVGAnimatedPath* path() const { return m_path.get(); }
46 SVGAnimatedNumber* pathLength() const { return m_pathLength.get(); } 46 SVGAnimatedNumber* pathLength() const { return m_pathLength.get(); }
47 float pathLengthScaleFactor() const; 47 float pathLengthScaleFactor() const;
48 const SVGPathByteStream& pathByteStream() const { return stylePath()->byteSt ream(); } 48 const SVGPathByteStream& pathByteStream() const { return stylePath()->byteSt ream(); }
49 49
50 bool isPresentationAttribute(const QualifiedName&) const override; 50 bool isPresentationAttribute(const QualifiedName&) const override;
51 bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const override; 51 bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const override;
52 52
53 DECLARE_VIRTUAL_TRACE(); 53 DECLARE_VIRTUAL_TRACE();
54 54
55 private: 55 private:
56 explicit SVGPathElement(Document&); 56 explicit SVGPathElement(Document&);
57 57
58 const StylePath* stylePath() const; 58 const StylePath* stylePath() const;
59 59
60 void svgAttributeChanged(const QualifiedName&) override; 60 void svgAttributeChanged(const QualifiedName&) override;
61 61
62 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic String&, MutableStylePropertySet*) override; 62 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic String&, MutableStylePropertySet*) override;
63 63
64 Node::InsertionNotificationRequest insertedInto(ContainerNode*) override; 64 Node::InsertionNotificationRequest insertedInto(ContainerNode*) override;
65 void removedFrom(ContainerNode*) override; 65 void removedFrom(ContainerNode*) override;
66 66
67 void invalidateMPathDependencies(); 67 void invalidateMPathDependencies();
68 68
69 RefPtrWillBeMember<SVGAnimatedNumber> m_pathLength; 69 Member<SVGAnimatedNumber> m_pathLength;
70 RefPtrWillBeMember<SVGAnimatedPath> m_path; 70 Member<SVGAnimatedPath> m_path;
71 }; 71 };
72 72
73 } // namespace blink 73 } // namespace blink
74 74
75 #endif // SVGPathElement_h 75 #endif // SVGPathElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPath.cpp ('k') | third_party/WebKit/Source/core/svg/SVGPathElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698