| Index: Source/core/svg/SVGFELightElement.cpp
|
| diff --git a/Source/core/svg/SVGFELightElement.cpp b/Source/core/svg/SVGFELightElement.cpp
|
| index 4429044f7fb0c4a085af13363a692844063d81a4..96765ca0ce726e339dcc73c5e27c756094685c6a 100644
|
| --- a/Source/core/svg/SVGFELightElement.cpp
|
| +++ b/Source/core/svg/SVGFELightElement.cpp
|
| @@ -67,11 +67,8 @@ SVGFELightElement::SVGFELightElement(const QualifiedName& tagName, Document& doc
|
| SVGFELightElement* SVGFELightElement::findLightElement(const SVGElement* svgElement)
|
| {
|
| for (Node* node = svgElement->firstChild(); node; node = node->nextSibling()) {
|
| - if (node->hasTagName(SVGNames::feDistantLightTag)
|
| - || node->hasTagName(SVGNames::fePointLightTag)
|
| - || node->hasTagName(SVGNames::feSpotLightTag)) {
|
| - return static_cast<SVGFELightElement*>(node);
|
| - }
|
| + if (isSVGFELightElement(*node))
|
| + return toSVGFELightElement(node);
|
| }
|
| return 0;
|
| }
|
|
|