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

Side by Side Diff: Source/core/svg/SVGTextPositioningElement.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/SVGTextPositioningElement.h ('k') | Source/core/svg/SVGTransform.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, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 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 26 matching lines...) Expand all
37 , m_dy(SVGAnimatedLengthList::create(this, SVGNames::dyAttr, SVGLengthList:: create(LengthModeHeight))) 37 , m_dy(SVGAnimatedLengthList::create(this, SVGNames::dyAttr, SVGLengthList:: create(LengthModeHeight)))
38 , m_rotate(SVGAnimatedNumberList::create(this, SVGNames::rotateAttr, SVGNumb erList::create())) 38 , m_rotate(SVGAnimatedNumberList::create(this, SVGNames::rotateAttr, SVGNumb erList::create()))
39 { 39 {
40 addToPropertyMap(m_x); 40 addToPropertyMap(m_x);
41 addToPropertyMap(m_y); 41 addToPropertyMap(m_y);
42 addToPropertyMap(m_dx); 42 addToPropertyMap(m_dx);
43 addToPropertyMap(m_dy); 43 addToPropertyMap(m_dy);
44 addToPropertyMap(m_rotate); 44 addToPropertyMap(m_rotate);
45 } 45 }
46 46
47 void SVGTextPositioningElement::trace(Visitor* visitor)
48 {
49 visitor->trace(m_x);
50 visitor->trace(m_y);
51 visitor->trace(m_dx);
52 visitor->trace(m_dy);
53 visitor->trace(m_rotate);
54 SVGTextContentElement::trace(visitor);
55 }
56
47 bool SVGTextPositioningElement::isSupportedAttribute(const QualifiedName& attrNa me) 57 bool SVGTextPositioningElement::isSupportedAttribute(const QualifiedName& attrNa me)
48 { 58 {
49 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 59 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
50 if (supportedAttributes.isEmpty()) { 60 if (supportedAttributes.isEmpty()) {
51 supportedAttributes.add(SVGNames::xAttr); 61 supportedAttributes.add(SVGNames::xAttr);
52 supportedAttributes.add(SVGNames::yAttr); 62 supportedAttributes.add(SVGNames::yAttr);
53 supportedAttributes.add(SVGNames::dxAttr); 63 supportedAttributes.add(SVGNames::dxAttr);
54 supportedAttributes.add(SVGNames::dyAttr); 64 supportedAttributes.add(SVGNames::dyAttr);
55 supportedAttributes.add(SVGNames::rotateAttr); 65 supportedAttributes.add(SVGNames::rotateAttr);
56 } 66 }
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 return 0; 106 return 0;
97 107
98 Node* node = renderer.node(); 108 Node* node = renderer.node();
99 ASSERT(node); 109 ASSERT(node);
100 ASSERT(node->isSVGElement()); 110 ASSERT(node->isSVGElement());
101 111
102 return isSVGTextPositioningElement(*node) ? toSVGTextPositioningElement(node ) : 0; 112 return isSVGTextPositioningElement(*node) ? toSVGTextPositioningElement(node ) : 0;
103 } 113 }
104 114
105 } 115 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTextPositioningElement.h ('k') | Source/core/svg/SVGTransform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698