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

Side by Side Diff: Source/core/svg/SVGLinearGradientElement.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, 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 } 106 }
107 107
108 SVGElementInstance::InvalidationGuard invalidationGuard(this); 108 SVGElementInstance::InvalidationGuard invalidationGuard(this);
109 109
110 updateRelativeLengthsInformation(); 110 updateRelativeLengthsInformation();
111 111
112 if (RenderObject* object = renderer()) 112 if (RenderObject* object = renderer())
113 object->setNeedsLayout(true); 113 object->setNeedsLayout(true);
114 } 114 }
115 115
116 RenderObject* SVGLinearGradientElement::createRenderer(RenderArena* arena, Rende rStyle*) 116 RenderObject* SVGLinearGradientElement::createRenderer(RenderStyle*)
117 { 117 {
118 return new (arena) RenderSVGResourceLinearGradient(this); 118 return new RenderSVGResourceLinearGradient(this);
119 } 119 }
120 120
121 bool SVGLinearGradientElement::collectGradientAttributes(LinearGradientAttribute s& attributes) 121 bool SVGLinearGradientElement::collectGradientAttributes(LinearGradientAttribute s& attributes)
122 { 122 {
123 HashSet<SVGGradientElement*> processedGradients; 123 HashSet<SVGGradientElement*> processedGradients;
124 124
125 bool isLinear = true; 125 bool isLinear = true;
126 SVGGradientElement* current = this; 126 SVGGradientElement* current = this;
127 127
128 while (current) { 128 while (current) {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 186
187 bool SVGLinearGradientElement::selfHasRelativeLengths() const 187 bool SVGLinearGradientElement::selfHasRelativeLengths() const
188 { 188 {
189 return x1().isRelative() 189 return x1().isRelative()
190 || y1().isRelative() 190 || y1().isRelative()
191 || x2().isRelative() 191 || x2().isRelative()
192 || y2().isRelative(); 192 || y2().isRelative();
193 } 193 }
194 194
195 } 195 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698