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) Research In Motion Limited 2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 reportAttributeParsingError(parseError, name, value); | 93 reportAttributeParsingError(parseError, name, value); |
94 } | 94 } |
95 | 95 |
96 void SVGGradientElement::svgAttributeChanged(const QualifiedName& attrName) | 96 void SVGGradientElement::svgAttributeChanged(const QualifiedName& attrName) |
97 { | 97 { |
98 if (!isSupportedAttribute(attrName)) { | 98 if (!isSupportedAttribute(attrName)) { |
99 SVGElement::svgAttributeChanged(attrName); | 99 SVGElement::svgAttributeChanged(attrName); |
100 return; | 100 return; |
101 } | 101 } |
102 | 102 |
103 SVGElementInstance::InvalidationGuard invalidationGuard(this); | 103 SVGElement::InvalidationGuard invalidationGuard(this); |
104 | 104 |
105 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re
nderer()); | 105 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re
nderer()); |
106 if (renderer) | 106 if (renderer) |
107 renderer->invalidateCacheAndMarkForLayout(); | 107 renderer->invalidateCacheAndMarkForLayout(); |
108 } | 108 } |
109 | 109 |
110 void SVGGradientElement::childrenChanged(bool changedByParser, Node* beforeChang
e, Node* afterChange, int childCountDelta) | 110 void SVGGradientElement::childrenChanged(bool changedByParser, Node* beforeChang
e, Node* afterChange, int childCountDelta) |
111 { | 111 { |
112 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); | 112 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); |
113 | 113 |
(...skipping 15 matching lines...) Expand all Loading... |
129 offset = std::min(std::max(previousOffset, offset), 1.0f); | 129 offset = std::min(std::max(previousOffset, offset), 1.0f); |
130 previousOffset = offset; | 130 previousOffset = offset; |
131 | 131 |
132 stops.append(Gradient::ColorStop(offset, stop->stopColorIncludingOpacity
())); | 132 stops.append(Gradient::ColorStop(offset, stop->stopColorIncludingOpacity
())); |
133 } | 133 } |
134 | 134 |
135 return stops; | 135 return stops; |
136 } | 136 } |
137 | 137 |
138 } | 138 } |
OLD | NEW |