| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2007 Apple Inc. All rights reserved. | 4 * Copyright (C) 2007 Apple Inc. 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 void SVGSVGElement::svgAttributeChanged(const QualifiedName& attrName) | 273 void SVGSVGElement::svgAttributeChanged(const QualifiedName& attrName) |
| 274 { | 274 { |
| 275 bool updateRelativeLengthsOrViewBox = false; | 275 bool updateRelativeLengthsOrViewBox = false; |
| 276 bool widthChanged = attrName == SVGNames::widthAttr; | 276 bool widthChanged = attrName == SVGNames::widthAttr; |
| 277 if (widthChanged | 277 if (widthChanged |
| 278 || attrName == SVGNames::heightAttr | 278 || attrName == SVGNames::heightAttr |
| 279 || attrName == SVGNames::xAttr | 279 || attrName == SVGNames::xAttr |
| 280 || attrName == SVGNames::yAttr) { | 280 || attrName == SVGNames::yAttr) { |
| 281 updateRelativeLengthsOrViewBox = true; | 281 updateRelativeLengthsOrViewBox = true; |
| 282 updateRelativeLengthsInformation(); | 282 updateRelativeLengthsInformation(); |
| 283 invalidateRelativeLengthClients(); |
| 283 | 284 |
| 284 // At the SVG/HTML boundary (aka RenderSVGRoot), the width attribute can | 285 // At the SVG/HTML boundary (aka RenderSVGRoot), the width attribute can |
| 285 // affect the replaced size so we need to mark it for updating. | 286 // affect the replaced size so we need to mark it for updating. |
| 286 if (widthChanged) { | 287 if (widthChanged) { |
| 287 RenderObject* renderObject = renderer(); | 288 RenderObject* renderObject = renderer(); |
| 288 if (renderObject && renderObject->isSVGRoot()) | 289 if (renderObject && renderObject->isSVGRoot()) |
| 289 toRenderSVGRoot(renderObject)->setNeedsLayoutAndPrefWidthsRecalc
(); | 290 toRenderSVGRoot(renderObject)->setNeedsLayoutAndPrefWidthsRecalc
(); |
| 290 } | 291 } |
| 291 } | 292 } |
| 292 | 293 |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 773 continue; | 774 continue; |
| 774 | 775 |
| 775 Element* element = toElement(node); | 776 Element* element = toElement(node); |
| 776 if (element->getIdAttribute() == id) | 777 if (element->getIdAttribute() == id) |
| 777 return element; | 778 return element; |
| 778 } | 779 } |
| 779 return 0; | 780 return 0; |
| 780 } | 781 } |
| 781 | 782 |
| 782 } | 783 } |
| OLD | NEW |