| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 reportAttributeParsingError(parseError, name, value); | 65 reportAttributeParsingError(parseError, name, value); |
| 66 } | 66 } |
| 67 | 67 |
| 68 void SVGSymbolElement::svgAttributeChanged(const QualifiedName& attrName) | 68 void SVGSymbolElement::svgAttributeChanged(const QualifiedName& attrName) |
| 69 { | 69 { |
| 70 if (!isSupportedAttribute(attrName)) { | 70 if (!isSupportedAttribute(attrName)) { |
| 71 SVGElement::svgAttributeChanged(attrName); | 71 SVGElement::svgAttributeChanged(attrName); |
| 72 return; | 72 return; |
| 73 } | 73 } |
| 74 | 74 |
| 75 SVGElementInstance::InvalidationGuard invalidationGuard(this); | 75 SVGElement::InvalidationGuard invalidationGuard(this); |
| 76 | 76 |
| 77 // Every other property change is ignored. | 77 // Every other property change is ignored. |
| 78 if (attrName == SVGNames::viewBoxAttr) | 78 if (attrName == SVGNames::viewBoxAttr) |
| 79 updateRelativeLengthsInformation(); | 79 updateRelativeLengthsInformation(); |
| 80 } | 80 } |
| 81 | 81 |
| 82 bool SVGSymbolElement::selfHasRelativeLengths() const | 82 bool SVGSymbolElement::selfHasRelativeLengths() const |
| 83 { | 83 { |
| 84 return hasAttribute(SVGNames::viewBoxAttr); | 84 return hasAttribute(SVGNames::viewBoxAttr); |
| 85 } | 85 } |
| 86 | 86 |
| 87 RenderObject* SVGSymbolElement::createRenderer(RenderStyle*) | 87 RenderObject* SVGSymbolElement::createRenderer(RenderStyle*) |
| 88 { | 88 { |
| 89 return new RenderSVGHiddenContainer(this); | 89 return new RenderSVGHiddenContainer(this); |
| 90 } | 90 } |
| 91 | 91 |
| 92 } | 92 } |
| OLD | NEW |