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 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. | 5 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. |
6 * Copyright (C) 2012 University of Szeged | 6 * Copyright (C) 2012 University of Szeged |
7 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org> | 7 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org> |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 } | 218 } |
219 } | 219 } |
220 | 220 |
221 void SVGUseElement::svgAttributeChanged(const QualifiedName& attrName) | 221 void SVGUseElement::svgAttributeChanged(const QualifiedName& attrName) |
222 { | 222 { |
223 if (!isSupportedAttribute(attrName)) { | 223 if (!isSupportedAttribute(attrName)) { |
224 SVGGraphicsElement::svgAttributeChanged(attrName); | 224 SVGGraphicsElement::svgAttributeChanged(attrName); |
225 return; | 225 return; |
226 } | 226 } |
227 | 227 |
228 SVGElementInstance::InvalidationGuard invalidationGuard(this); | 228 SVGElement::InvalidationGuard invalidationGuard(this); |
229 | 229 |
230 RenderObject* renderer = this->renderer(); | 230 RenderObject* renderer = this->renderer(); |
231 if (attrName == SVGNames::xAttr | 231 if (attrName == SVGNames::xAttr |
232 || attrName == SVGNames::yAttr | 232 || attrName == SVGNames::yAttr |
233 || attrName == SVGNames::widthAttr | 233 || attrName == SVGNames::widthAttr |
234 || attrName == SVGNames::heightAttr) { | 234 || attrName == SVGNames::heightAttr) { |
235 updateRelativeLengthsInformation(); | 235 updateRelativeLengthsInformation(); |
236 if (m_targetElementInstance) { | 236 if (m_targetElementInstance) { |
237 ASSERT(m_targetElementInstance->correspondingElement()); | 237 ASSERT(m_targetElementInstance->correspondingElement()); |
238 transferUseWidthAndHeightIfNeeded(*this, m_targetElementInstance->sh
adowTreeElement(), *m_targetElementInstance->correspondingElement()); | 238 transferUseWidthAndHeightIfNeeded(*this, m_targetElementInstance->sh
adowTreeElement(), *m_targetElementInstance->correspondingElement()); |
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
994 | 994 |
995 if (m_resource) | 995 if (m_resource) |
996 m_resource->removeClient(this); | 996 m_resource->removeClient(this); |
997 | 997 |
998 m_resource = resource; | 998 m_resource = resource; |
999 if (m_resource) | 999 if (m_resource) |
1000 m_resource->addClient(this); | 1000 m_resource->addClient(this); |
1001 } | 1001 } |
1002 | 1002 |
1003 } | 1003 } |
OLD | NEW |