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

Side by Side Diff: Source/core/svg/SVGLinearGradientElement.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/SVGImageElement.cpp ('k') | Source/core/svg/SVGMarkerElement.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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(RenderStyle*) 116 RenderObject* SVGLinearGradientElement::createRenderer(RenderStyle*)
117 { 117 {
118 return new (document()->renderArena()) 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 x1CurrentValue().isRelative() 189 return x1CurrentValue().isRelative()
190 || y1CurrentValue().isRelative() 190 || y1CurrentValue().isRelative()
191 || x2CurrentValue().isRelative() 191 || x2CurrentValue().isRelative()
192 || y2CurrentValue().isRelative(); 192 || y2CurrentValue().isRelative();
193 } 193 }
194 194
195 } 195 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGImageElement.cpp ('k') | Source/core/svg/SVGMarkerElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698