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

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

Issue 20231002: Replace RenderArena with PartitionAlloc (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 7 years, 4 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
« no previous file with comments | « Source/core/svg/SVGTextElement.cpp ('k') | Source/core/svg/SVGUseElement.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) 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 if (attrName == SVGNames::startOffsetAttr) 124 if (attrName == SVGNames::startOffsetAttr)
125 updateRelativeLengthsInformation(); 125 updateRelativeLengthsInformation();
126 126
127 if (RenderObject* object = renderer()) 127 if (RenderObject* object = renderer())
128 RenderSVGResource::markForLayoutAndParentResourceInvalidation(object); 128 RenderSVGResource::markForLayoutAndParentResourceInvalidation(object);
129 } 129 }
130 130
131 RenderObject* SVGTextPathElement::createRenderer(RenderStyle*) 131 RenderObject* SVGTextPathElement::createRenderer(RenderStyle*)
132 { 132 {
133 return new (document()->renderArena()) RenderSVGTextPath(this); 133 return new RenderSVGTextPath(this);
134 } 134 }
135 135
136 bool SVGTextPathElement::childShouldCreateRenderer(const NodeRenderingContext& c hildContext) const 136 bool SVGTextPathElement::childShouldCreateRenderer(const NodeRenderingContext& c hildContext) const
137 { 137 {
138 if (childContext.node()->isTextNode() 138 if (childContext.node()->isTextNode()
139 || childContext.node()->hasTagName(SVGNames::aTag) 139 || childContext.node()->hasTagName(SVGNames::aTag)
140 || childContext.node()->hasTagName(SVGNames::trefTag) 140 || childContext.node()->hasTagName(SVGNames::trefTag)
141 || childContext.node()->hasTagName(SVGNames::tspanTag)) 141 || childContext.node()->hasTagName(SVGNames::tspanTag))
142 return true; 142 return true;
143 143
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 clearResourceReferences(); 192 clearResourceReferences();
193 } 193 }
194 194
195 bool SVGTextPathElement::selfHasRelativeLengths() const 195 bool SVGTextPathElement::selfHasRelativeLengths() const
196 { 196 {
197 return startOffsetCurrentValue().isRelative() 197 return startOffsetCurrentValue().isRelative()
198 || SVGTextContentElement::selfHasRelativeLengths(); 198 || SVGTextContentElement::selfHasRelativeLengths();
199 } 199 }
200 200
201 } 201 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTextElement.cpp ('k') | Source/core/svg/SVGUseElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698