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

Side by Side Diff: Source/core/svg/SVGFilterElement.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, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2007 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) 2006 Samuel Weinig <sam.weinig@gmail.com> 4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 { 178 {
179 SVGStyledElement::childrenChanged(changedByParser, beforeChange, afterChange , childCountDelta); 179 SVGStyledElement::childrenChanged(changedByParser, beforeChange, afterChange , childCountDelta);
180 180
181 if (changedByParser) 181 if (changedByParser)
182 return; 182 return;
183 183
184 if (RenderObject* object = renderer()) 184 if (RenderObject* object = renderer())
185 object->setNeedsLayout(true); 185 object->setNeedsLayout(true);
186 } 186 }
187 187
188 RenderObject* SVGFilterElement::createRenderer(RenderArena* arena, RenderStyle*) 188 RenderObject* SVGFilterElement::createRenderer(RenderStyle*)
189 { 189 {
190 return new (arena) RenderSVGResourceFilter(this); 190 return new RenderSVGResourceFilter(this);
191 } 191 }
192 192
193 bool SVGFilterElement::childShouldCreateRenderer(const NodeRenderingContext& chi ldContext) const 193 bool SVGFilterElement::childShouldCreateRenderer(const NodeRenderingContext& chi ldContext) const
194 { 194 {
195 if (!childContext.node()->isSVGElement()) 195 if (!childContext.node()->isSVGElement())
196 return false; 196 return false;
197 197
198 SVGElement* svgElement = toSVGElement(childContext.node()); 198 SVGElement* svgElement = toSVGElement(childContext.node());
199 199
200 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, allowedChildElementTags, ()); 200 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, allowedChildElementTags, ());
(...skipping 30 matching lines...) Expand all
231 231
232 bool SVGFilterElement::selfHasRelativeLengths() const 232 bool SVGFilterElement::selfHasRelativeLengths() const
233 { 233 {
234 return x().isRelative() 234 return x().isRelative()
235 || y().isRelative() 235 || y().isRelative()
236 || width().isRelative() 236 || width().isRelative()
237 || height().isRelative(); 237 || height().isRelative();
238 } 238 }
239 239
240 } 240 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698