| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 addToPropertyMap(m_pointsAtZ); | 54 addToPropertyMap(m_pointsAtZ); |
| 55 addToPropertyMap(m_specularExponent); | 55 addToPropertyMap(m_specularExponent); |
| 56 addToPropertyMap(m_limitingConeAngle); | 56 addToPropertyMap(m_limitingConeAngle); |
| 57 } | 57 } |
| 58 | 58 |
| 59 SVGFELightElement* SVGFELightElement::findLightElement(const SVGElement& svgElem
ent) | 59 SVGFELightElement* SVGFELightElement::findLightElement(const SVGElement& svgElem
ent) |
| 60 { | 60 { |
| 61 return Traversal<SVGFELightElement>::firstChild(svgElement); | 61 return Traversal<SVGFELightElement>::firstChild(svgElement); |
| 62 } | 62 } |
| 63 | 63 |
| 64 PassRefPtr<LightSource> SVGFELightElement::findLightSource(const SVGElement& svg
Element) | |
| 65 { | |
| 66 SVGFELightElement* lightNode = findLightElement(svgElement); | |
| 67 if (!lightNode) | |
| 68 return nullptr; | |
| 69 return lightNode->lightSource(); | |
| 70 } | |
| 71 | |
| 72 bool SVGFELightElement::isSupportedAttribute(const QualifiedName& attrName) | 64 bool SVGFELightElement::isSupportedAttribute(const QualifiedName& attrName) |
| 73 { | 65 { |
| 74 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 66 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
| 75 if (supportedAttributes.isEmpty()) { | 67 if (supportedAttributes.isEmpty()) { |
| 76 supportedAttributes.add(SVGNames::azimuthAttr); | 68 supportedAttributes.add(SVGNames::azimuthAttr); |
| 77 supportedAttributes.add(SVGNames::elevationAttr); | 69 supportedAttributes.add(SVGNames::elevationAttr); |
| 78 supportedAttributes.add(SVGNames::xAttr); | 70 supportedAttributes.add(SVGNames::xAttr); |
| 79 supportedAttributes.add(SVGNames::yAttr); | 71 supportedAttributes.add(SVGNames::yAttr); |
| 80 supportedAttributes.add(SVGNames::zAttr); | 72 supportedAttributes.add(SVGNames::zAttr); |
| 81 supportedAttributes.add(SVGNames::pointsAtXAttr); | 73 supportedAttributes.add(SVGNames::pointsAtXAttr); |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 if (!changedByParser) { | 161 if (!changedByParser) { |
| 170 if (ContainerNode* parent = parentNode()) { | 162 if (ContainerNode* parent = parentNode()) { |
| 171 RenderObject* renderer = parent->renderer(); | 163 RenderObject* renderer = parent->renderer(); |
| 172 if (renderer && renderer->isSVGResourceFilterPrimitive()) | 164 if (renderer && renderer->isSVGResourceFilterPrimitive()) |
| 173 RenderSVGResource::markForLayoutAndParentResourceInvalidation(re
nderer); | 165 RenderSVGResource::markForLayoutAndParentResourceInvalidation(re
nderer); |
| 174 } | 166 } |
| 175 } | 167 } |
| 176 } | 168 } |
| 177 | 169 |
| 178 } | 170 } |
| OLD | NEW |