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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 REGISTER_LOCAL_ANIMATED_PROPERTY(x) | 50 REGISTER_LOCAL_ANIMATED_PROPERTY(x) |
51 REGISTER_LOCAL_ANIMATED_PROPERTY(y) | 51 REGISTER_LOCAL_ANIMATED_PROPERTY(y) |
52 REGISTER_LOCAL_ANIMATED_PROPERTY(z) | 52 REGISTER_LOCAL_ANIMATED_PROPERTY(z) |
53 REGISTER_LOCAL_ANIMATED_PROPERTY(pointsAtX) | 53 REGISTER_LOCAL_ANIMATED_PROPERTY(pointsAtX) |
54 REGISTER_LOCAL_ANIMATED_PROPERTY(pointsAtY) | 54 REGISTER_LOCAL_ANIMATED_PROPERTY(pointsAtY) |
55 REGISTER_LOCAL_ANIMATED_PROPERTY(pointsAtZ) | 55 REGISTER_LOCAL_ANIMATED_PROPERTY(pointsAtZ) |
56 REGISTER_LOCAL_ANIMATED_PROPERTY(specularExponent) | 56 REGISTER_LOCAL_ANIMATED_PROPERTY(specularExponent) |
57 REGISTER_LOCAL_ANIMATED_PROPERTY(limitingConeAngle) | 57 REGISTER_LOCAL_ANIMATED_PROPERTY(limitingConeAngle) |
58 END_REGISTER_ANIMATED_PROPERTIES | 58 END_REGISTER_ANIMATED_PROPERTIES |
59 | 59 |
60 SVGFELightElement::SVGFELightElement(const QualifiedName& tagName, Document* doc
ument) | 60 SVGFELightElement::SVGFELightElement(const QualifiedName& tagName, Document& doc
ument) |
61 : SVGElement(tagName, document) | 61 : SVGElement(tagName, document) |
62 , m_specularExponent(1) | 62 , m_specularExponent(1) |
63 { | 63 { |
64 registerAnimatedPropertiesForSVGFELightElement(); | 64 registerAnimatedPropertiesForSVGFELightElement(); |
65 } | 65 } |
66 | 66 |
67 SVGFELightElement* SVGFELightElement::findLightElement(const SVGElement* svgElem
ent) | 67 SVGFELightElement* SVGFELightElement::findLightElement(const SVGElement* svgElem
ent) |
68 { | 68 { |
69 for (Node* node = svgElement->firstChild(); node; node = node->nextSibling()
) { | 69 for (Node* node = svgElement->firstChild(); node; node = node->nextSibling()
) { |
70 if (node->hasTagName(SVGNames::feDistantLightTag) | 70 if (node->hasTagName(SVGNames::feDistantLightTag) |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 if (!changedByParser) { | 208 if (!changedByParser) { |
209 if (ContainerNode* parent = parentNode()) { | 209 if (ContainerNode* parent = parentNode()) { |
210 RenderObject* renderer = parent->renderer(); | 210 RenderObject* renderer = parent->renderer(); |
211 if (renderer && renderer->isSVGResourceFilterPrimitive()) | 211 if (renderer && renderer->isSVGResourceFilterPrimitive()) |
212 RenderSVGResource::markForLayoutAndParentResourceInvalidation(re
nderer); | 212 RenderSVGResource::markForLayoutAndParentResourceInvalidation(re
nderer); |
213 } | 213 } |
214 } | 214 } |
215 } | 215 } |
216 | 216 |
217 } | 217 } |
OLD | NEW |