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

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

Issue 1408143004: Use PathSegmentData+SVGPath{Consumer,Source} in PathSVGInterpolation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: InterpolatedPathSource Created 5 years, 2 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 PassRefPtrWillBeRawPtr<SVGPathSegCurvetoQuadraticSmoothRel> createSVGPathSeg CurvetoQuadraticSmoothRel(float x, float y); 85 PassRefPtrWillBeRawPtr<SVGPathSegCurvetoQuadraticSmoothRel> createSVGPathSeg CurvetoQuadraticSmoothRel(float x, float y);
86 86
87 // Used in the bindings only. 87 // Used in the bindings only.
88 SVGPathSegListTearOff* pathSegList() { return m_pathSegList->baseVal(); } 88 SVGPathSegListTearOff* pathSegList() { return m_pathSegList->baseVal(); }
89 SVGPathSegListTearOff* animatedPathSegList() { return m_pathSegList->animVal (); } 89 SVGPathSegListTearOff* animatedPathSegList() { return m_pathSegList->animVal (); }
90 90
91 // FIXME: https://bugs.webkit.org/show_bug.cgi?id=15412 - Implement normaliz ed path segment lists! 91 // FIXME: https://bugs.webkit.org/show_bug.cgi?id=15412 - Implement normaliz ed path segment lists!
92 SVGPathSegListTearOff* normalizedPathSegList() { return nullptr; } 92 SVGPathSegListTearOff* normalizedPathSegList() { return nullptr; }
93 SVGPathSegListTearOff* animatedNormalizedPathSegList() { return nullptr; } 93 SVGPathSegListTearOff* animatedNormalizedPathSegList() { return nullptr; }
94 94
95 const SVGPathByteStream* pathByteStream() const { return m_pathSegList->curr entValue()->byteStream(); } 95 const SVGPathByteStream& pathByteStream() const { return m_pathSegList->curr entValue()->byteStream(); }
96 96
97 void pathSegListChanged(ListModification = ListModificationUnknown); 97 void pathSegListChanged(ListModification = ListModificationUnknown);
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 void svgAttributeChanged(const QualifiedName&) override; 104 void svgAttributeChanged(const QualifiedName&) override;
105 105
106 Node::InsertionNotificationRequest insertedInto(ContainerNode*) override; 106 Node::InsertionNotificationRequest insertedInto(ContainerNode*) override;
107 void removedFrom(ContainerNode*) override; 107 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 | « third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.h ('k') | third_party/WebKit/Source/core/svg/SVGPathElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698