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

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

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGPointTearOff.cpp ('k') | Source/core/svg/SVGPolyElement.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,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 #ifndef SVGPolyElement_h 21 #ifndef SVGPolyElement_h
22 #define SVGPolyElement_h 22 #define SVGPolyElement_h
23 23
24 #include "core/SVGNames.h" 24 #include "core/SVGNames.h"
25 #include "core/svg/SVGAnimatedBoolean.h" 25 #include "core/svg/SVGAnimatedBoolean.h"
26 #include "core/svg/SVGAnimatedPointList.h" 26 #include "core/svg/SVGAnimatedPointList.h"
27 #include "core/svg/SVGGeometryElement.h" 27 #include "core/svg/SVGGeometryElement.h"
28 #include "platform/heap/Handle.h"
28 29
29 namespace blink { 30 namespace blink {
30 31
31 class SVGPolyElement : public SVGGeometryElement { 32 class SVGPolyElement : public SVGGeometryElement {
32 public: 33 public:
33 SVGAnimatedPointList* points() { return m_points.get(); } 34 SVGAnimatedPointList* points() { return m_points.get(); }
34 35
35 PassRefPtr<SVGPointListTearOff> pointsFromJavascript() { return m_points->ba seVal(); } 36 PassRefPtrWillBeRawPtr<SVGPointListTearOff> pointsFromJavascript() { return m_points->baseVal(); }
36 PassRefPtr<SVGPointListTearOff> animatedPoints() { return m_points->animVal( ); } 37 PassRefPtrWillBeRawPtr<SVGPointListTearOff> animatedPoints() { return m_poin ts->animVal(); }
38
39 virtual void trace(Visitor*) override;
37 40
38 protected: 41 protected:
39 SVGPolyElement(const QualifiedName&, Document&); 42 SVGPolyElement(const QualifiedName&, Document&);
40 43
41 private: 44 private:
42 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide final; 45 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide final;
43 virtual void svgAttributeChanged(const QualifiedName&) override final; 46 virtual void svgAttributeChanged(const QualifiedName&) override final;
44 47
45 private: 48 private:
46 RefPtr<SVGAnimatedPointList> m_points; 49 RefPtrWillBeMember<SVGAnimatedPointList> m_points;
47 50
48 }; 51 };
49 52
50 inline bool isSVGPolyElement(const SVGElement& element) 53 inline bool isSVGPolyElement(const SVGElement& element)
51 { 54 {
52 return element.hasTagName(SVGNames::polygonTag) || element.hasTagName(SVGNam es::polylineTag); 55 return element.hasTagName(SVGNames::polygonTag) || element.hasTagName(SVGNam es::polylineTag);
53 } 56 }
54 57
55 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGPolyElement); 58 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGPolyElement);
56 59
57 } // namespace blink 60 } // namespace blink
58 61
59 #endif 62 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPointTearOff.cpp ('k') | Source/core/svg/SVGPolyElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698