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

Side by Side Diff: Source/core/svg/SVGTRefElement.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 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 if (SVGURIReference::isKnownAttribute(attrName)) { 218 if (SVGURIReference::isKnownAttribute(attrName)) {
219 buildPendingResource(); 219 buildPendingResource();
220 if (RenderObject* renderer = this->renderer()) 220 if (RenderObject* renderer = this->renderer())
221 RenderSVGResource::markForLayoutAndParentResourceInvalidation(render er); 221 RenderSVGResource::markForLayoutAndParentResourceInvalidation(render er);
222 return; 222 return;
223 } 223 }
224 224
225 ASSERT_NOT_REACHED(); 225 ASSERT_NOT_REACHED();
226 } 226 }
227 227
228 RenderObject* SVGTRefElement::createRenderer(RenderArena* arena, RenderStyle*) 228 RenderObject* SVGTRefElement::createRenderer(RenderStyle*)
229 { 229 {
230 return new (arena) RenderSVGInline(this); 230 return new RenderSVGInline(this);
231 } 231 }
232 232
233 bool SVGTRefElement::childShouldCreateRenderer(const NodeRenderingContext& child Context) const 233 bool SVGTRefElement::childShouldCreateRenderer(const NodeRenderingContext& child Context) const
234 { 234 {
235 return childContext.node()->isInShadowTree(); 235 return childContext.node()->isInShadowTree();
236 } 236 }
237 237
238 bool SVGTRefElement::rendererIsNeeded(const NodeRenderingContext& context) 238 bool SVGTRefElement::rendererIsNeeded(const NodeRenderingContext& context)
239 { 239 {
240 if (parentNode() 240 if (parentNode()
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 } 289 }
290 290
291 void SVGTRefElement::removedFrom(ContainerNode* rootParent) 291 void SVGTRefElement::removedFrom(ContainerNode* rootParent)
292 { 292 {
293 SVGStyledElement::removedFrom(rootParent); 293 SVGStyledElement::removedFrom(rootParent);
294 if (rootParent->inDocument()) 294 if (rootParent->inDocument())
295 m_targetListener->detach(); 295 m_targetListener->detach();
296 } 296 }
297 297
298 } 298 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698