Index: Source/core/svg/SVGFELightElement.h |
diff --git a/Source/core/svg/SVGFELightElement.h b/Source/core/svg/SVGFELightElement.h |
index 4473ed3e6467829b03cd2e8098bdf4eb26cbbd67..df8a0950c4028a2593be98b52ead81de79bdd479 100644 |
--- a/Source/core/svg/SVGFELightElement.h |
+++ b/Source/core/svg/SVGFELightElement.h |
@@ -22,6 +22,7 @@ |
#ifndef SVGFELightElement_h |
#define SVGFELightElement_h |
+#include "SVGNames.h" |
#include "core/svg/SVGAnimatedNumber.h" |
#include "core/svg/SVGElement.h" |
#include "platform/graphics/filters/LightSource.h" |
@@ -59,6 +60,13 @@ private: |
END_DECLARE_ANIMATED_PROPERTIES |
}; |
+inline bool isSVGFELightElement(const Node& node) |
+{ |
+ return node.hasTagName(SVGNames::feDistantLightTag) || node.hasTagName(SVGNames::fePointLightTag) || node.hasTagName(SVGNames::feSpotLightTag); |
+} |
+ |
+DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGFELightElement); |
+ |
} // namespace WebCore |
#endif |