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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGLinearGradientElement.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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 if (!attributes.hasY2() && linear->y2()->isSpecified()) 120 if (!attributes.hasY2() && linear->y2()->isSpecified())
121 attributes.setY2(linear->y2()->currentValue()); 121 attributes.setY2(linear->y2()->currentValue());
122 } 122 }
123 } 123 }
124 124
125 bool SVGLinearGradientElement::collectGradientAttributes(LinearGradientAttribute s& attributes) 125 bool SVGLinearGradientElement::collectGradientAttributes(LinearGradientAttribute s& attributes)
126 { 126 {
127 if (!layoutObject()) 127 if (!layoutObject())
128 return false; 128 return false;
129 129
130 WillBeHeapHashSet<RawPtrWillBeMember<SVGGradientElement>> processedGradients ; 130 HeapHashSet<Member<SVGGradientElement>> processedGradients;
131 SVGGradientElement* current = this; 131 SVGGradientElement* current = this;
132 132
133 setGradientAttributes(current, attributes); 133 setGradientAttributes(current, attributes);
134 processedGradients.add(current); 134 processedGradients.add(current);
135 135
136 while (true) { 136 while (true) {
137 // Respect xlink:href, take attributes from referenced element 137 // Respect xlink:href, take attributes from referenced element
138 Node* refNode = SVGURIReference::targetElementFromIRIString(current->hre f()->currentValue()->value(), treeScope()); 138 Node* refNode = SVGURIReference::targetElementFromIRIString(current->hre f()->currentValue()->value(), treeScope());
139 if (refNode && isSVGGradientElement(*refNode)) { 139 if (refNode && isSVGGradientElement(*refNode)) {
140 current = toSVGGradientElement(refNode); 140 current = toSVGGradientElement(refNode);
(...skipping 18 matching lines...) Expand all
159 159
160 bool SVGLinearGradientElement::selfHasRelativeLengths() const 160 bool SVGLinearGradientElement::selfHasRelativeLengths() const
161 { 161 {
162 return m_x1->currentValue()->isRelative() 162 return m_x1->currentValue()->isRelative()
163 || m_y1->currentValue()->isRelative() 163 || m_y1->currentValue()->isRelative()
164 || m_x2->currentValue()->isRelative() 164 || m_x2->currentValue()->isRelative()
165 || m_y2->currentValue()->isRelative(); 165 || m_y2->currentValue()->isRelative();
166 } 166 }
167 167
168 } // namespace blink 168 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGLinearGradientElement.h ('k') | third_party/WebKit/Source/core/svg/SVGMPathElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698