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

Side by Side Diff: Source/core/svg/SVGPatternElement.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/SVGPathElement.cpp ('k') | Source/core/svg/SVGRadialGradientElement.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, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 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) Research In Motion Limited 2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2010. 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 if (changedByParser) 166 if (changedByParser)
167 return; 167 return;
168 168
169 if (RenderObject* object = renderer()) 169 if (RenderObject* object = renderer())
170 object->setNeedsLayout(true); 170 object->setNeedsLayout(true);
171 } 171 }
172 172
173 RenderObject* SVGPatternElement::createRenderer(RenderStyle*) 173 RenderObject* SVGPatternElement::createRenderer(RenderStyle*)
174 { 174 {
175 return new (document()->renderArena()) RenderSVGResourcePattern(this); 175 return new RenderSVGResourcePattern(this);
176 } 176 }
177 177
178 void SVGPatternElement::collectPatternAttributes(PatternAttributes& attributes) const 178 void SVGPatternElement::collectPatternAttributes(PatternAttributes& attributes) const
179 { 179 {
180 HashSet<const SVGPatternElement*> processedPatterns; 180 HashSet<const SVGPatternElement*> processedPatterns;
181 181
182 const SVGPatternElement* current = this; 182 const SVGPatternElement* current = this;
183 while (current) { 183 while (current) {
184 if (!attributes.hasX() && current->hasAttribute(SVGNames::xAttr)) 184 if (!attributes.hasX() && current->hasAttribute(SVGNames::xAttr))
185 attributes.setX(current->xCurrentValue()); 185 attributes.setX(current->xCurrentValue());
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 240
241 bool SVGPatternElement::selfHasRelativeLengths() const 241 bool SVGPatternElement::selfHasRelativeLengths() const
242 { 242 {
243 return xCurrentValue().isRelative() 243 return xCurrentValue().isRelative()
244 || yCurrentValue().isRelative() 244 || yCurrentValue().isRelative()
245 || widthCurrentValue().isRelative() 245 || widthCurrentValue().isRelative()
246 || heightCurrentValue().isRelative(); 246 || heightCurrentValue().isRelative();
247 } 247 }
248 248
249 } 249 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPathElement.cpp ('k') | Source/core/svg/SVGRadialGradientElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698