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

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

Issue 1127773003: This CL clean up patch in SVGElements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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 | « Source/core/svg/SVGLengthContext.cpp ('k') | Source/core/svg/SVGTextContentElement.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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 PassRefPtrWillBeRawPtr<SVGPathSegCurvetoCubicSmoothAbs> createSVGPathSegCurv etoCubicSmoothAbs(float x, float y, float x2, float y2); 80 PassRefPtrWillBeRawPtr<SVGPathSegCurvetoCubicSmoothAbs> createSVGPathSegCurv etoCubicSmoothAbs(float x, float y, float x2, float y2);
81 PassRefPtrWillBeRawPtr<SVGPathSegCurvetoCubicSmoothRel> createSVGPathSegCurv etoCubicSmoothRel(float x, float y, float x2, float y2); 81 PassRefPtrWillBeRawPtr<SVGPathSegCurvetoCubicSmoothRel> createSVGPathSegCurv etoCubicSmoothRel(float x, float y, float x2, float y2);
82 PassRefPtrWillBeRawPtr<SVGPathSegCurvetoQuadraticSmoothAbs> createSVGPathSeg CurvetoQuadraticSmoothAbs(float x, float y); 82 PassRefPtrWillBeRawPtr<SVGPathSegCurvetoQuadraticSmoothAbs> createSVGPathSeg CurvetoQuadraticSmoothAbs(float x, float y);
83 PassRefPtrWillBeRawPtr<SVGPathSegCurvetoQuadraticSmoothRel> createSVGPathSeg CurvetoQuadraticSmoothRel(float x, float y); 83 PassRefPtrWillBeRawPtr<SVGPathSegCurvetoQuadraticSmoothRel> createSVGPathSeg CurvetoQuadraticSmoothRel(float x, float y);
84 84
85 // Used in the bindings only. 85 // Used in the bindings only.
86 SVGPathSegListTearOff* pathSegList() { return m_pathSegList->baseVal(); } 86 SVGPathSegListTearOff* pathSegList() { return m_pathSegList->baseVal(); }
87 SVGPathSegListTearOff* animatedPathSegList() { return m_pathSegList->animVal (); } 87 SVGPathSegListTearOff* animatedPathSegList() { return m_pathSegList->animVal (); }
88 88
89 // FIXME: https://bugs.webkit.org/show_bug.cgi?id=15412 - Implement normaliz ed path segment lists! 89 // FIXME: https://bugs.webkit.org/show_bug.cgi?id=15412 - Implement normaliz ed path segment lists!
90 SVGPathSegListTearOff* normalizedPathSegList() { return 0; } 90 SVGPathSegListTearOff* normalizedPathSegList() { return nullptr; }
91 SVGPathSegListTearOff* animatedNormalizedPathSegList() { return 0; } 91 SVGPathSegListTearOff* animatedNormalizedPathSegList() { return nullptr; }
92 92
93 const SVGPathByteStream* pathByteStream() const { return m_pathSegList->curr entValue()->byteStream(); } 93 const SVGPathByteStream* pathByteStream() const { return m_pathSegList->curr entValue()->byteStream(); }
94 94
95 void pathSegListChanged(ListModification = ListModificationUnknown); 95 void pathSegListChanged(ListModification = ListModificationUnknown);
96 96
97 virtual FloatRect getBBox() override; 97 virtual FloatRect getBBox() override;
98 98
99 DECLARE_VIRTUAL_TRACE(); 99 DECLARE_VIRTUAL_TRACE();
100 100
101 private: 101 private:
102 explicit SVGPathElement(Document&); 102 explicit SVGPathElement(Document&);
103 103
104 virtual void svgAttributeChanged(const QualifiedName&) override; 104 virtual void svgAttributeChanged(const QualifiedName&) override;
105 105
106 virtual Node::InsertionNotificationRequest insertedInto(ContainerNode*) over ride; 106 virtual Node::InsertionNotificationRequest insertedInto(ContainerNode*) over ride;
107 virtual void removedFrom(ContainerNode*) override; 107 virtual void removedFrom(ContainerNode*) override;
108 108
109 void invalidateMPathDependencies(); 109 void invalidateMPathDependencies();
110 110
111 RefPtrWillBeMember<SVGAnimatedNumber> m_pathLength; 111 RefPtrWillBeMember<SVGAnimatedNumber> m_pathLength;
112 RefPtrWillBeMember<SVGAnimatedPath> m_pathSegList; 112 RefPtrWillBeMember<SVGAnimatedPath> m_pathSegList;
113 }; 113 };
114 114
115 } // namespace blink 115 } // namespace blink
116 116
117 #endif // SVGPathElement_h 117 #endif // SVGPathElement_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGLengthContext.cpp ('k') | Source/core/svg/SVGTextContentElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698