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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 reportAttributeParsingError(parseError, name, value); | 88 reportAttributeParsingError(parseError, name, value); |
89 } | 89 } |
90 | 90 |
91 void SVGLinearGradientElement::svgAttributeChanged(const QualifiedName& attrName
) | 91 void SVGLinearGradientElement::svgAttributeChanged(const QualifiedName& attrName
) |
92 { | 92 { |
93 if (!isSupportedAttribute(attrName)) { | 93 if (!isSupportedAttribute(attrName)) { |
94 SVGGradientElement::svgAttributeChanged(attrName); | 94 SVGGradientElement::svgAttributeChanged(attrName); |
95 return; | 95 return; |
96 } | 96 } |
97 | 97 |
98 SVGElementInstance::InvalidationGuard invalidationGuard(this); | 98 SVGElement::InvalidationGuard invalidationGuard(this); |
99 | 99 |
100 updateRelativeLengthsInformation(); | 100 updateRelativeLengthsInformation(); |
101 | 101 |
102 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re
nderer()); | 102 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re
nderer()); |
103 if (renderer) | 103 if (renderer) |
104 renderer->invalidateCacheAndMarkForLayout(); | 104 renderer->invalidateCacheAndMarkForLayout(); |
105 } | 105 } |
106 | 106 |
107 RenderObject* SVGLinearGradientElement::createRenderer(RenderStyle*) | 107 RenderObject* SVGLinearGradientElement::createRenderer(RenderStyle*) |
108 { | 108 { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 | 183 |
184 bool SVGLinearGradientElement::selfHasRelativeLengths() const | 184 bool SVGLinearGradientElement::selfHasRelativeLengths() const |
185 { | 185 { |
186 return m_x1->currentValue()->isRelative() | 186 return m_x1->currentValue()->isRelative() |
187 || m_y1->currentValue()->isRelative() | 187 || m_y1->currentValue()->isRelative() |
188 || m_x2->currentValue()->isRelative() | 188 || m_x2->currentValue()->isRelative() |
189 || m_y2->currentValue()->isRelative(); | 189 || m_y2->currentValue()->isRelative(); |
190 } | 190 } |
191 | 191 |
192 } | 192 } |
OLD | NEW |