diff options
Diffstat (limited to 'WebCore/svg/SVGFESpecularLightingElement.cpp')
| -rw-r--r-- | WebCore/svg/SVGFESpecularLightingElement.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/WebCore/svg/SVGFESpecularLightingElement.cpp b/WebCore/svg/SVGFESpecularLightingElement.cpp index 7afa4cc..90e9cb3 100644 --- a/WebCore/svg/SVGFESpecularLightingElement.cpp +++ b/WebCore/svg/SVGFESpecularLightingElement.cpp @@ -70,20 +70,18 @@ void SVGFESpecularLightingElement::parseMappedAttribute(MappedAttribute* attr) SVGFilterPrimitiveStandardAttributes::parseMappedAttribute(attr); } -LightSource* SVGFESpecularLightingElement::findLights() const +PassRefPtr<LightSource> SVGFESpecularLightingElement::findLights() const { - LightSource* light = 0; for (Node* n = firstChild(); n; n = n->nextSibling()) { if (n->hasTagName(SVGNames::feDistantLightTag) || n->hasTagName(SVGNames::fePointLightTag) || n->hasTagName(SVGNames::feSpotLightTag)) { SVGFELightElement* lightNode = static_cast<SVGFELightElement*>(n); - light = lightNode->lightSource(); - break; + return lightNode->lightSource(); } } - return light; + return 0; } bool SVGFESpecularLightingElement::build(SVGResourceFilter* filterResource) |
