Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1265)

Unified Diff: Source/core/svg/SVGFELightElement.cpp

Issue 133203003: Generate toSVGFooElement() for SVGFELight|AnimateMotion|FontFaceSrc|TextPositioningElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698