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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGRadialGradientElement.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 if (!attributes.hasFr() && radial->fr()->isSpecified()) 131 if (!attributes.hasFr() && radial->fr()->isSpecified())
132 attributes.setFr(radial->fr()->currentValue()); 132 attributes.setFr(radial->fr()->currentValue());
133 } 133 }
134 } 134 }
135 135
136 bool SVGRadialGradientElement::collectGradientAttributes(RadialGradientAttribute s& attributes) 136 bool SVGRadialGradientElement::collectGradientAttributes(RadialGradientAttribute s& attributes)
137 { 137 {
138 if (!layoutObject()) 138 if (!layoutObject())
139 return false; 139 return false;
140 140
141 WillBeHeapHashSet<RawPtrWillBeMember<SVGGradientElement>> processedGradients ; 141 HeapHashSet<Member<SVGGradientElement>> processedGradients;
142 SVGGradientElement* current = this; 142 SVGGradientElement* current = this;
143 143
144 setGradientAttributes(current, attributes); 144 setGradientAttributes(current, attributes);
145 processedGradients.add(current); 145 processedGradients.add(current);
146 146
147 while (true) { 147 while (true) {
148 // Respect xlink:href, take attributes from referenced element 148 // Respect xlink:href, take attributes from referenced element
149 Node* refNode = SVGURIReference::targetElementFromIRIString(current->hre f()->currentValue()->value(), treeScope()); 149 Node* refNode = SVGURIReference::targetElementFromIRIString(current->hre f()->currentValue()->value(), treeScope());
150 if (refNode && isSVGGradientElement(*refNode)) { 150 if (refNode && isSVGGradientElement(*refNode)) {
151 current = toSVGGradientElement(refNode); 151 current = toSVGGradientElement(refNode);
(...skipping 26 matching lines...) Expand all
178 { 178 {
179 return m_cx->currentValue()->isRelative() 179 return m_cx->currentValue()->isRelative()
180 || m_cy->currentValue()->isRelative() 180 || m_cy->currentValue()->isRelative()
181 || m_r->currentValue()->isRelative() 181 || m_r->currentValue()->isRelative()
182 || m_fx->currentValue()->isRelative() 182 || m_fx->currentValue()->isRelative()
183 || m_fy->currentValue()->isRelative() 183 || m_fy->currentValue()->isRelative()
184 || m_fr->currentValue()->isRelative(); 184 || m_fr->currentValue()->isRelative();
185 } 185 }
186 186
187 } // namespace blink 187 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGRadialGradientElement.h ('k') | third_party/WebKit/Source/core/svg/SVGRect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698