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 2009-2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2009-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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 reportAttributeParsingError(parseError, name, value); | 115 reportAttributeParsingError(parseError, name, value); |
116 } | 116 } |
117 | 117 |
118 void SVGMarkerElement::svgAttributeChanged(const QualifiedName& attrName) | 118 void SVGMarkerElement::svgAttributeChanged(const QualifiedName& attrName) |
119 { | 119 { |
120 if (!isSupportedAttribute(attrName)) { | 120 if (!isSupportedAttribute(attrName)) { |
121 SVGElement::svgAttributeChanged(attrName); | 121 SVGElement::svgAttributeChanged(attrName); |
122 return; | 122 return; |
123 } | 123 } |
124 | 124 |
125 SVGElementInstance::InvalidationGuard invalidationGuard(this); | 125 SVGElement::InvalidationGuard invalidationGuard(this); |
126 | 126 |
127 if (attrName == SVGNames::refXAttr | 127 if (attrName == SVGNames::refXAttr |
128 || attrName == SVGNames::refYAttr | 128 || attrName == SVGNames::refYAttr |
129 || attrName == SVGNames::markerWidthAttr | 129 || attrName == SVGNames::markerWidthAttr |
130 || attrName == SVGNames::markerHeightAttr) | 130 || attrName == SVGNames::markerHeightAttr) |
131 updateRelativeLengthsInformation(); | 131 updateRelativeLengthsInformation(); |
132 | 132 |
133 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re
nderer()); | 133 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re
nderer()); |
134 if (renderer) | 134 if (renderer) |
135 renderer->invalidateCacheAndMarkForLayout(); | 135 renderer->invalidateCacheAndMarkForLayout(); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 169 |
170 bool SVGMarkerElement::selfHasRelativeLengths() const | 170 bool SVGMarkerElement::selfHasRelativeLengths() const |
171 { | 171 { |
172 return m_refX->currentValue()->isRelative() | 172 return m_refX->currentValue()->isRelative() |
173 || m_refY->currentValue()->isRelative() | 173 || m_refY->currentValue()->isRelative() |
174 || m_markerWidth->currentValue()->isRelative() | 174 || m_markerWidth->currentValue()->isRelative() |
175 || m_markerHeight->currentValue()->isRelative(); | 175 || m_markerHeight->currentValue()->isRelative(); |
176 } | 176 } |
177 | 177 |
178 } | 178 } |
OLD | NEW |