| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 void SVGClipPathElement::svgAttributeChanged(const QualifiedName& attrName) | 50 void SVGClipPathElement::svgAttributeChanged(const QualifiedName& attrName) |
| 51 { | 51 { |
| 52 if (attrName != SVGNames::clipPathUnitsAttr) { | 52 if (attrName != SVGNames::clipPathUnitsAttr) { |
| 53 SVGGraphicsElement::svgAttributeChanged(attrName); | 53 SVGGraphicsElement::svgAttributeChanged(attrName); |
| 54 return; | 54 return; |
| 55 } | 55 } |
| 56 | 56 |
| 57 SVGElement::InvalidationGuard invalidationGuard(this); | 57 SVGElement::InvalidationGuard invalidationGuard(this); |
| 58 | 58 |
| 59 LayoutSVGResourceContainer* renderer = toLayoutSVGResourceContainer(this->re
nderer()); | 59 LayoutSVGResourceContainer* renderer = toLayoutSVGResourceContainer(this->la
youtObject()); |
| 60 if (renderer) | 60 if (renderer) |
| 61 renderer->invalidateCacheAndMarkForLayout(); | 61 renderer->invalidateCacheAndMarkForLayout(); |
| 62 } | 62 } |
| 63 | 63 |
| 64 void SVGClipPathElement::childrenChanged(const ChildrenChange& change) | 64 void SVGClipPathElement::childrenChanged(const ChildrenChange& change) |
| 65 { | 65 { |
| 66 SVGGraphicsElement::childrenChanged(change); | 66 SVGGraphicsElement::childrenChanged(change); |
| 67 | 67 |
| 68 if (change.byParser) | 68 if (change.byParser) |
| 69 return; | 69 return; |
| 70 | 70 |
| 71 if (LayoutObject* object = renderer()) | 71 if (LayoutObject* object = layoutObject()) |
| 72 object->setNeedsLayoutAndFullPaintInvalidation(); | 72 object->setNeedsLayoutAndFullPaintInvalidation(); |
| 73 } | 73 } |
| 74 | 74 |
| 75 LayoutObject* SVGClipPathElement::createLayoutObject(const LayoutStyle&) | 75 LayoutObject* SVGClipPathElement::createLayoutObject(const LayoutStyle&) |
| 76 { | 76 { |
| 77 return new LayoutSVGResourceClipper(this); | 77 return new LayoutSVGResourceClipper(this); |
| 78 } | 78 } |
| 79 | 79 |
| 80 } | 80 } |
| OLD | NEW |