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

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

Issue 16896019: Replace RenderArena with PartitionAlloc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 return matrix; 125 return matrix;
126 } 126 }
127 127
128 AffineTransform* SVGTextElement::supplementalTransform() 128 AffineTransform* SVGTextElement::supplementalTransform()
129 { 129 {
130 if (!m_supplementalTransform) 130 if (!m_supplementalTransform)
131 m_supplementalTransform = adoptPtr(new AffineTransform); 131 m_supplementalTransform = adoptPtr(new AffineTransform);
132 return m_supplementalTransform.get(); 132 return m_supplementalTransform.get();
133 } 133 }
134 134
135 RenderObject* SVGTextElement::createRenderer(RenderArena* arena, RenderStyle*) 135 RenderObject* SVGTextElement::createRenderer(RenderStyle*)
136 { 136 {
137 return new (arena) RenderSVGText(this); 137 return new RenderSVGText(this);
138 } 138 }
139 139
140 bool SVGTextElement::childShouldCreateRenderer(const NodeRenderingContext& child Context) const 140 bool SVGTextElement::childShouldCreateRenderer(const NodeRenderingContext& child Context) const
141 { 141 {
142 if (childContext.node()->isTextNode() 142 if (childContext.node()->isTextNode()
143 || childContext.node()->hasTagName(SVGNames::aTag) 143 || childContext.node()->hasTagName(SVGNames::aTag)
144 #if ENABLE(SVG_FONTS) 144 #if ENABLE(SVG_FONTS)
145 || childContext.node()->hasTagName(SVGNames::altGlyphTag) 145 || childContext.node()->hasTagName(SVGNames::altGlyphTag)
146 #endif 146 #endif
147 || childContext.node()->hasTagName(SVGNames::textPathTag) 147 || childContext.node()->hasTagName(SVGNames::textPathTag)
(...skipping 20 matching lines...) Expand all
168 if (attrName == SVGNames::transformAttr) { 168 if (attrName == SVGNames::transformAttr) {
169 renderer->setNeedsTransformUpdate(); 169 renderer->setNeedsTransformUpdate();
170 RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer); 170 RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer);
171 return; 171 return;
172 } 172 }
173 173
174 ASSERT_NOT_REACHED(); 174 ASSERT_NOT_REACHED();
175 } 175 }
176 176
177 } 177 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698