| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 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 * Copyright (C) 2005 Oliver Hunt <oliver@nerget.com> | 4 * Copyright (C) 2005 Oliver Hunt <oliver@nerget.com> |
| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 || attrName == SVGNames::limitingConeAngleAttr) { | 183 || attrName == SVGNames::limitingConeAngleAttr) { |
| 184 ContainerNode* parent = parentNode(); | 184 ContainerNode* parent = parentNode(); |
| 185 if (!parent) | 185 if (!parent) |
| 186 return; | 186 return; |
| 187 | 187 |
| 188 RenderObject* renderer = parent->renderer(); | 188 RenderObject* renderer = parent->renderer(); |
| 189 if (!renderer || !renderer->isSVGResourceFilterPrimitive()) | 189 if (!renderer || !renderer->isSVGResourceFilterPrimitive()) |
| 190 return; | 190 return; |
| 191 | 191 |
| 192 if (parent->hasTagName(SVGNames::feDiffuseLightingTag)) { | 192 if (parent->hasTagName(SVGNames::feDiffuseLightingTag)) { |
| 193 SVGFEDiffuseLightingElement* diffuseLighting = static_cast<SVGFEDiff
useLightingElement*>(parent); | 193 toSVGFEDiffuseLightingElement(parent)->lightElementAttributeChanged(
this, attrName); |
| 194 diffuseLighting->lightElementAttributeChanged(this, attrName); | |
| 195 return; | 194 return; |
| 196 } else if (parent->hasTagName(SVGNames::feSpecularLightingTag)) { | 195 } else if (parent->hasTagName(SVGNames::feSpecularLightingTag)) { |
| 197 SVGFESpecularLightingElement* specularLighting = static_cast<SVGFESp
ecularLightingElement*>(parent); | 196 SVGFESpecularLightingElement* specularLighting = static_cast<SVGFESp
ecularLightingElement*>(parent); |
| 198 specularLighting->lightElementAttributeChanged(this, attrName); | 197 specularLighting->lightElementAttributeChanged(this, attrName); |
| 199 return; | 198 return; |
| 200 } | 199 } |
| 201 } | 200 } |
| 202 | 201 |
| 203 ASSERT_NOT_REACHED(); | 202 ASSERT_NOT_REACHED(); |
| 204 } | 203 } |
| 205 | 204 |
| 206 void SVGFELightElement::childrenChanged(bool changedByParser, Node* beforeChange
, Node* afterChange, int childCountDelta) | 205 void SVGFELightElement::childrenChanged(bool changedByParser, Node* beforeChange
, Node* afterChange, int childCountDelta) |
| 207 { | 206 { |
| 208 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); | 207 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); |
| 209 | 208 |
| 210 if (!changedByParser) { | 209 if (!changedByParser) { |
| 211 if (ContainerNode* parent = parentNode()) { | 210 if (ContainerNode* parent = parentNode()) { |
| 212 RenderObject* renderer = parent->renderer(); | 211 RenderObject* renderer = parent->renderer(); |
| 213 if (renderer && renderer->isSVGResourceFilterPrimitive()) | 212 if (renderer && renderer->isSVGResourceFilterPrimitive()) |
| 214 RenderSVGResource::markForLayoutAndParentResourceInvalidation(re
nderer); | 213 RenderSVGResource::markForLayoutAndParentResourceInvalidation(re
nderer); |
| 215 } | 214 } |
| 216 } | 215 } |
| 217 } | 216 } |
| 218 | 217 |
| 219 } | 218 } |
| OLD | NEW |