| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 || attrName == SVGNames::zAttr | 94 || attrName == SVGNames::zAttr |
| 95 || attrName == SVGNames::pointsAtXAttr | 95 || attrName == SVGNames::pointsAtXAttr |
| 96 || attrName == SVGNames::pointsAtYAttr | 96 || attrName == SVGNames::pointsAtYAttr |
| 97 || attrName == SVGNames::pointsAtZAttr | 97 || attrName == SVGNames::pointsAtZAttr |
| 98 || attrName == SVGNames::specularExponentAttr | 98 || attrName == SVGNames::specularExponentAttr |
| 99 || attrName == SVGNames::limitingConeAngleAttr) { | 99 || attrName == SVGNames::limitingConeAngleAttr) { |
| 100 ContainerNode* parent = parentNode(); | 100 ContainerNode* parent = parentNode(); |
| 101 if (!parent) | 101 if (!parent) |
| 102 return; | 102 return; |
| 103 | 103 |
| 104 LayoutObject* renderer = parent->layoutObject(); | 104 LayoutObject* layoutObject = parent->layoutObject(); |
| 105 if (!renderer || !renderer->isSVGResourceFilterPrimitive()) | 105 if (!layoutObject || !layoutObject->isSVGResourceFilterPrimitive()) |
| 106 return; | 106 return; |
| 107 | 107 |
| 108 SVGElement::InvalidationGuard invalidationGuard(this); | 108 SVGElement::InvalidationGuard invalidationGuard(this); |
| 109 if (isSVGFEDiffuseLightingElement(*parent)) { | 109 if (isSVGFEDiffuseLightingElement(*parent)) { |
| 110 toSVGFEDiffuseLightingElement(*parent).lightElementAttributeChanged(
this, attrName); | 110 toSVGFEDiffuseLightingElement(*parent).lightElementAttributeChanged(
this, attrName); |
| 111 return; | 111 return; |
| 112 } | 112 } |
| 113 if (isSVGFESpecularLightingElement(*parent)) { | 113 if (isSVGFESpecularLightingElement(*parent)) { |
| 114 toSVGFESpecularLightingElement(*parent).lightElementAttributeChanged
(this, attrName); | 114 toSVGFESpecularLightingElement(*parent).lightElementAttributeChanged
(this, attrName); |
| 115 return; | 115 return; |
| 116 } | 116 } |
| 117 | 117 |
| 118 ASSERT_NOT_REACHED(); | 118 ASSERT_NOT_REACHED(); |
| 119 } | 119 } |
| 120 | 120 |
| 121 SVGElement::svgAttributeChanged(attrName); | 121 SVGElement::svgAttributeChanged(attrName); |
| 122 } | 122 } |
| 123 | 123 |
| 124 void SVGFELightElement::childrenChanged(const ChildrenChange& change) | 124 void SVGFELightElement::childrenChanged(const ChildrenChange& change) |
| 125 { | 125 { |
| 126 SVGElement::childrenChanged(change); | 126 SVGElement::childrenChanged(change); |
| 127 | 127 |
| 128 if (!change.byParser) { | 128 if (!change.byParser) { |
| 129 if (ContainerNode* parent = parentNode()) { | 129 if (ContainerNode* parent = parentNode()) { |
| 130 LayoutObject* renderer = parent->layoutObject(); | 130 LayoutObject* layoutObject = parent->layoutObject(); |
| 131 if (renderer && renderer->isSVGResourceFilterPrimitive()) | 131 if (layoutObject && layoutObject->isSVGResourceFilterPrimitive()) |
| 132 markForLayoutAndParentResourceInvalidation(renderer); | 132 markForLayoutAndParentResourceInvalidation(layoutObject); |
| 133 } | 133 } |
| 134 } | 134 } |
| 135 } | 135 } |
| 136 | 136 |
| 137 } | 137 } |
| OLD | NEW |