Chromium Code Reviews| Index: Source/core/svg/SVGFELightElement.cpp |
| diff --git a/Source/core/svg/SVGFELightElement.cpp b/Source/core/svg/SVGFELightElement.cpp |
| index 4429044f7fb0c4a085af13363a692844063d81a4..054bd8ebb8ffce60ea3e960e09c82afa51be845d 100644 |
| --- a/Source/core/svg/SVGFELightElement.cpp |
| +++ b/Source/core/svg/SVGFELightElement.cpp |
| @@ -70,7 +70,7 @@ SVGFELightElement* SVGFELightElement::findLightElement(const SVGElement* svgElem |
| if (node->hasTagName(SVGNames::feDistantLightTag) |
| || node->hasTagName(SVGNames::fePointLightTag) |
| || node->hasTagName(SVGNames::feSpotLightTag)) { |
| - return static_cast<SVGFELightElement*>(node); |
| + return toSVGFELightElement(node); |
|
Stephen Chennney
2014/01/10 12:32:53
You are doing the hasTagName queries twice. I have
gyuyoung-inactive
2014/01/12 04:37:31
DEFINE_NODE_TYPE_CASTS macro only calls "hasTagNam
|
| } |
| } |
| return 0; |