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

Side by Side Diff: Source/core/svg/SVGRadialGradientElement.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/SVGPatternElement.cpp ('k') | Source/core/svg/SVGRectElement.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) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2008 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 SVGElementInstance::InvalidationGuard invalidationGuard(this); 119 SVGElementInstance::InvalidationGuard invalidationGuard(this);
120 120
121 updateRelativeLengthsInformation(); 121 updateRelativeLengthsInformation();
122 122
123 if (RenderObject* object = renderer()) 123 if (RenderObject* object = renderer())
124 object->setNeedsLayout(true); 124 object->setNeedsLayout(true);
125 } 125 }
126 126
127 RenderObject* SVGRadialGradientElement::createRenderer(RenderStyle*) 127 RenderObject* SVGRadialGradientElement::createRenderer(RenderStyle*)
128 { 128 {
129 return new (document()->renderArena()) RenderSVGResourceRadialGradient(this) ; 129 return new RenderSVGResourceRadialGradient(this);
130 } 130 }
131 131
132 bool SVGRadialGradientElement::collectGradientAttributes(RadialGradientAttribute s& attributes) 132 bool SVGRadialGradientElement::collectGradientAttributes(RadialGradientAttribute s& attributes)
133 { 133 {
134 HashSet<SVGGradientElement*> processedGradients; 134 HashSet<SVGGradientElement*> processedGradients;
135 135
136 bool isRadial = true; 136 bool isRadial = true;
137 SVGGradientElement* current = this; 137 SVGGradientElement* current = this;
138 138
139 while (current) { 139 while (current) {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 { 211 {
212 return cxCurrentValue().isRelative() 212 return cxCurrentValue().isRelative()
213 || cyCurrentValue().isRelative() 213 || cyCurrentValue().isRelative()
214 || rCurrentValue().isRelative() 214 || rCurrentValue().isRelative()
215 || fxCurrentValue().isRelative() 215 || fxCurrentValue().isRelative()
216 || fyCurrentValue().isRelative() 216 || fyCurrentValue().isRelative()
217 || frCurrentValue().isRelative(); 217 || frCurrentValue().isRelative();
218 } 218 }
219 219
220 } 220 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPatternElement.cpp ('k') | Source/core/svg/SVGRectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698