| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 reportAttributeParsingError(parseError, name, value); | 67 reportAttributeParsingError(parseError, name, value); |
| 68 } | 68 } |
| 69 | 69 |
| 70 void SVGClipPathElement::svgAttributeChanged(const QualifiedName& attrName) | 70 void SVGClipPathElement::svgAttributeChanged(const QualifiedName& attrName) |
| 71 { | 71 { |
| 72 if (!isSupportedAttribute(attrName)) { | 72 if (!isSupportedAttribute(attrName)) { |
| 73 SVGGraphicsElement::svgAttributeChanged(attrName); | 73 SVGGraphicsElement::svgAttributeChanged(attrName); |
| 74 return; | 74 return; |
| 75 } | 75 } |
| 76 | 76 |
| 77 SVGElementInstance::InvalidationGuard invalidationGuard(this); | 77 SVGElement::InstanceInvalidationGuard invalidationGuard(this); |
| 78 | 78 |
| 79 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re
nderer()); | 79 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re
nderer()); |
| 80 if (renderer) | 80 if (renderer) |
| 81 renderer->invalidateCacheAndMarkForLayout(); | 81 renderer->invalidateCacheAndMarkForLayout(); |
| 82 } | 82 } |
| 83 | 83 |
| 84 void SVGClipPathElement::childrenChanged(bool changedByParser, Node* beforeChang
e, Node* afterChange, int childCountDelta) | 84 void SVGClipPathElement::childrenChanged(bool changedByParser, Node* beforeChang
e, Node* afterChange, int childCountDelta) |
| 85 { | 85 { |
| 86 SVGGraphicsElement::childrenChanged(changedByParser, beforeChange, afterChan
ge, childCountDelta); | 86 SVGGraphicsElement::childrenChanged(changedByParser, beforeChange, afterChan
ge, childCountDelta); |
| 87 | 87 |
| 88 if (changedByParser) | 88 if (changedByParser) |
| 89 return; | 89 return; |
| 90 | 90 |
| 91 if (RenderObject* object = renderer()) | 91 if (RenderObject* object = renderer()) |
| 92 object->setNeedsLayout(); | 92 object->setNeedsLayout(); |
| 93 } | 93 } |
| 94 | 94 |
| 95 RenderObject* SVGClipPathElement::createRenderer(RenderStyle*) | 95 RenderObject* SVGClipPathElement::createRenderer(RenderStyle*) |
| 96 { | 96 { |
| 97 return new RenderSVGResourceClipper(this); | 97 return new RenderSVGResourceClipper(this); |
| 98 } | 98 } |
| 99 | 99 |
| 100 } | 100 } |
| OLD | NEW |