| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 if (isSVGFELightElement(*node)) | 68 if (isSVGFELightElement(*node)) |
| 69 return toSVGFELightElement(node); | 69 return toSVGFELightElement(node); |
| 70 } | 70 } |
| 71 return 0; | 71 return 0; |
| 72 } | 72 } |
| 73 | 73 |
| 74 PassRefPtr<LightSource> SVGFELightElement::findLightSource(const SVGElement* svg
Element) | 74 PassRefPtr<LightSource> SVGFELightElement::findLightSource(const SVGElement* svg
Element) |
| 75 { | 75 { |
| 76 SVGFELightElement* lightNode = findLightElement(svgElement); | 76 SVGFELightElement* lightNode = findLightElement(svgElement); |
| 77 if (!lightNode) | 77 if (!lightNode) |
| 78 return 0; | 78 return nullptr; |
| 79 return lightNode->lightSource(); | 79 return lightNode->lightSource(); |
| 80 } | 80 } |
| 81 | 81 |
| 82 bool SVGFELightElement::isSupportedAttribute(const QualifiedName& attrName) | 82 bool SVGFELightElement::isSupportedAttribute(const QualifiedName& attrName) |
| 83 { | 83 { |
| 84 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 84 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
| 85 if (supportedAttributes.isEmpty()) { | 85 if (supportedAttributes.isEmpty()) { |
| 86 supportedAttributes.add(SVGNames::azimuthAttr); | 86 supportedAttributes.add(SVGNames::azimuthAttr); |
| 87 supportedAttributes.add(SVGNames::elevationAttr); | 87 supportedAttributes.add(SVGNames::elevationAttr); |
| 88 supportedAttributes.add(SVGNames::xAttr); | 88 supportedAttributes.add(SVGNames::xAttr); |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 if (!changedByParser) { | 178 if (!changedByParser) { |
| 179 if (ContainerNode* parent = parentNode()) { | 179 if (ContainerNode* parent = parentNode()) { |
| 180 RenderObject* renderer = parent->renderer(); | 180 RenderObject* renderer = parent->renderer(); |
| 181 if (renderer && renderer->isSVGResourceFilterPrimitive()) | 181 if (renderer && renderer->isSVGResourceFilterPrimitive()) |
| 182 RenderSVGResource::markForLayoutAndParentResourceInvalidation(re
nderer); | 182 RenderSVGResource::markForLayoutAndParentResourceInvalidation(re
nderer); |
| 183 } | 183 } |
| 184 } | 184 } |
| 185 } | 185 } |
| 186 | 186 |
| 187 } | 187 } |
| OLD | NEW |