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

Side by Side Diff: Source/core/svg/SVGTextPathElement.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/SVGTextPathElement.h ('k') | Source/core/svg/SVGTextPositioningElement.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) 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2010 Rob Buis <rwlbuis@gmail.com> 3 * Copyright (C) 2010 Rob Buis <rwlbuis@gmail.com>
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 DEFINE_NODE_FACTORY(SVGTextPathElement) 62 DEFINE_NODE_FACTORY(SVGTextPathElement)
63 63
64 SVGTextPathElement::~SVGTextPathElement() 64 SVGTextPathElement::~SVGTextPathElement()
65 { 65 {
66 #if !ENABLE(OILPAN) 66 #if !ENABLE(OILPAN)
67 clearResourceReferences(); 67 clearResourceReferences();
68 #endif 68 #endif
69 } 69 }
70 70
71 void SVGTextPathElement::trace(Visitor* visitor)
72 {
73 visitor->trace(m_startOffset);
74 visitor->trace(m_method);
75 visitor->trace(m_spacing);
76 SVGTextContentElement::trace(visitor);
77 SVGURIReference::trace(visitor);
78 }
79
71 void SVGTextPathElement::clearResourceReferences() 80 void SVGTextPathElement::clearResourceReferences()
72 { 81 {
73 removeAllOutgoingReferences(); 82 removeAllOutgoingReferences();
74 } 83 }
75 84
76 bool SVGTextPathElement::isSupportedAttribute(const QualifiedName& attrName) 85 bool SVGTextPathElement::isSupportedAttribute(const QualifiedName& attrName)
77 { 86 {
78 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 87 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
79 if (supportedAttributes.isEmpty()) { 88 if (supportedAttributes.isEmpty()) {
80 SVGURIReference::addSupportedAttributes(supportedAttributes); 89 SVGURIReference::addSupportedAttributes(supportedAttributes);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 clearResourceReferences(); 166 clearResourceReferences();
158 } 167 }
159 168
160 bool SVGTextPathElement::selfHasRelativeLengths() const 169 bool SVGTextPathElement::selfHasRelativeLengths() const
161 { 170 {
162 return m_startOffset->currentValue()->isRelative() 171 return m_startOffset->currentValue()->isRelative()
163 || SVGTextContentElement::selfHasRelativeLengths(); 172 || SVGTextContentElement::selfHasRelativeLengths();
164 } 173 }
165 174
166 } // namespace blink 175 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTextPathElement.h ('k') | Source/core/svg/SVGTextPositioningElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698