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, 2008, 2009 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> | 4 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> |
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 reportAttributeParsingError(parseError, name, value); | 124 reportAttributeParsingError(parseError, name, value); |
125 } | 125 } |
126 | 126 |
127 void SVGImageElement::svgAttributeChanged(const QualifiedName& attrName) | 127 void SVGImageElement::svgAttributeChanged(const QualifiedName& attrName) |
128 { | 128 { |
129 if (!isSupportedAttribute(attrName)) { | 129 if (!isSupportedAttribute(attrName)) { |
130 SVGGraphicsElement::svgAttributeChanged(attrName); | 130 SVGGraphicsElement::svgAttributeChanged(attrName); |
131 return; | 131 return; |
132 } | 132 } |
133 | 133 |
134 SVGElementInstance::InvalidationGuard invalidationGuard(this); | 134 SVGElement::InvalidationGuard invalidationGuard(this); |
135 | 135 |
136 bool isLengthAttribute = attrName == SVGNames::xAttr | 136 bool isLengthAttribute = attrName == SVGNames::xAttr |
137 || attrName == SVGNames::yAttr | 137 || attrName == SVGNames::yAttr |
138 || attrName == SVGNames::widthAttr | 138 || attrName == SVGNames::widthAttr |
139 || attrName == SVGNames::heightAttr; | 139 || attrName == SVGNames::heightAttr; |
140 | 140 |
141 if (isLengthAttribute) | 141 if (isLengthAttribute) |
142 updateRelativeLengthsInformation(); | 142 updateRelativeLengthsInformation(); |
143 | 143 |
144 if (SVGURIReference::isKnownAttribute(attrName)) { | 144 if (SVGURIReference::isKnownAttribute(attrName)) { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 return AtomicString(hrefString()); | 223 return AtomicString(hrefString()); |
224 } | 224 } |
225 | 225 |
226 void SVGImageElement::didMoveToNewDocument(Document& oldDocument) | 226 void SVGImageElement::didMoveToNewDocument(Document& oldDocument) |
227 { | 227 { |
228 m_imageLoader.elementDidMoveToNewDocument(); | 228 m_imageLoader.elementDidMoveToNewDocument(); |
229 SVGGraphicsElement::didMoveToNewDocument(oldDocument); | 229 SVGGraphicsElement::didMoveToNewDocument(oldDocument); |
230 } | 230 } |
231 | 231 |
232 } | 232 } |
OLD | NEW |