| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |