OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007, 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 reportAttributeParsingError(parseError, name, value); | 109 reportAttributeParsingError(parseError, name, value); |
110 } | 110 } |
111 | 111 |
112 void SVGPatternElement::svgAttributeChanged(const QualifiedName& attrName) | 112 void SVGPatternElement::svgAttributeChanged(const QualifiedName& attrName) |
113 { | 113 { |
114 if (!isSupportedAttribute(attrName)) { | 114 if (!isSupportedAttribute(attrName)) { |
115 SVGElement::svgAttributeChanged(attrName); | 115 SVGElement::svgAttributeChanged(attrName); |
116 return; | 116 return; |
117 } | 117 } |
118 | 118 |
119 SVGElementInstance::InvalidationGuard invalidationGuard(this); | 119 SVGElement::InvalidationGuard invalidationGuard(this); |
120 | 120 |
121 if (attrName == SVGNames::xAttr | 121 if (attrName == SVGNames::xAttr |
122 || attrName == SVGNames::yAttr | 122 || attrName == SVGNames::yAttr |
123 || attrName == SVGNames::widthAttr | 123 || attrName == SVGNames::widthAttr |
124 || attrName == SVGNames::heightAttr) | 124 || attrName == SVGNames::heightAttr) |
125 updateRelativeLengthsInformation(); | 125 updateRelativeLengthsInformation(); |
126 | 126 |
127 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re
nderer()); | 127 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re
nderer()); |
128 if (renderer) | 128 if (renderer) |
129 renderer->invalidateCacheAndMarkForLayout(); | 129 renderer->invalidateCacheAndMarkForLayout(); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 | 215 |
216 bool SVGPatternElement::selfHasRelativeLengths() const | 216 bool SVGPatternElement::selfHasRelativeLengths() const |
217 { | 217 { |
218 return m_x->currentValue()->isRelative() | 218 return m_x->currentValue()->isRelative() |
219 || m_y->currentValue()->isRelative() | 219 || m_y->currentValue()->isRelative() |
220 || m_width->currentValue()->isRelative() | 220 || m_width->currentValue()->isRelative() |
221 || m_height->currentValue()->isRelative(); | 221 || m_height->currentValue()->isRelative(); |
222 } | 222 } |
223 | 223 |
224 } | 224 } |
OLD | NEW |