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

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

Issue 133203003: Generate toSVGFooElement() for SVGFELight|AnimateMotion|FontFaceSrc|TextPositioningElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modified 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.h
diff --git a/Source/core/svg/SVGFELightElement.h b/Source/core/svg/SVGFELightElement.h
index e8e898703ca8f0e1be955c756bd708dfa3680f7e..f9b287be03db5002b0511a9012446d531c4c1431 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

Powered by Google App Engine
This is Rietveld 408576698