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

Side by Side Diff: Source/core/svg/SVGRectElement.cpp

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/SVGRectElement.h ('k') | Source/core/svg/SVGRectTearOff.h » ('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 25 matching lines...) Expand all
36 , m_ry(SVGAnimatedLength::create(this, SVGNames::ryAttr, SVGLength::create(L engthModeHeight), ForbidNegativeLengths)) 36 , m_ry(SVGAnimatedLength::create(this, SVGNames::ryAttr, SVGLength::create(L engthModeHeight), ForbidNegativeLengths))
37 { 37 {
38 addToPropertyMap(m_x); 38 addToPropertyMap(m_x);
39 addToPropertyMap(m_y); 39 addToPropertyMap(m_y);
40 addToPropertyMap(m_width); 40 addToPropertyMap(m_width);
41 addToPropertyMap(m_height); 41 addToPropertyMap(m_height);
42 addToPropertyMap(m_rx); 42 addToPropertyMap(m_rx);
43 addToPropertyMap(m_ry); 43 addToPropertyMap(m_ry);
44 } 44 }
45 45
46 void SVGRectElement::trace(Visitor* visitor)
47 {
48 visitor->trace(m_x);
49 visitor->trace(m_y);
50 visitor->trace(m_width);
51 visitor->trace(m_height);
52 visitor->trace(m_rx);
53 visitor->trace(m_ry);
54 SVGGeometryElement::trace(visitor);
55 }
56
46 DEFINE_NODE_FACTORY(SVGRectElement) 57 DEFINE_NODE_FACTORY(SVGRectElement)
47 58
48 bool SVGRectElement::isSupportedAttribute(const QualifiedName& attrName) 59 bool SVGRectElement::isSupportedAttribute(const QualifiedName& attrName)
49 { 60 {
50 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 61 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
51 if (supportedAttributes.isEmpty()) { 62 if (supportedAttributes.isEmpty()) {
52 supportedAttributes.add(SVGNames::xAttr); 63 supportedAttributes.add(SVGNames::xAttr);
53 supportedAttributes.add(SVGNames::yAttr); 64 supportedAttributes.add(SVGNames::yAttr);
54 supportedAttributes.add(SVGNames::widthAttr); 65 supportedAttributes.add(SVGNames::widthAttr);
55 supportedAttributes.add(SVGNames::heightAttr); 66 supportedAttributes.add(SVGNames::heightAttr);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 || m_rx->currentValue()->isRelative() 116 || m_rx->currentValue()->isRelative()
106 || m_ry->currentValue()->isRelative(); 117 || m_ry->currentValue()->isRelative();
107 } 118 }
108 119
109 RenderObject* SVGRectElement::createRenderer(RenderStyle*) 120 RenderObject* SVGRectElement::createRenderer(RenderStyle*)
110 { 121 {
111 return new RenderSVGRect(this); 122 return new RenderSVGRect(this);
112 } 123 }
113 124
114 } // namespace blink 125 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/svg/SVGRectElement.h ('k') | Source/core/svg/SVGRectTearOff.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698