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

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

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/SVGTextPositioningElement.h
diff --git a/Source/core/svg/SVGTextPositioningElement.h b/Source/core/svg/SVGTextPositioningElement.h
index eadeafb72b7e69fa075925cabd0236ca87419391..01ced93a7aa0fbfc71de20e1a2c04e9dbb651200 100644
--- a/Source/core/svg/SVGTextPositioningElement.h
+++ b/Source/core/svg/SVGTextPositioningElement.h
@@ -21,6 +21,7 @@
#ifndef SVGTextPositioningElement_h
#define SVGTextPositioningElement_h
+#include "SVGNames.h"
#include "core/svg/SVGAnimatedLengthList.h"
#include "core/svg/SVGAnimatedNumberList.h"
#include "core/svg/SVGTextContentElement.h"
@@ -52,6 +53,13 @@ protected:
END_DECLARE_ANIMATED_PROPERTIES
};
+inline bool isSVGTextPositioningElement(const Node& node)
+{
+ return node.hasTagName(SVGNames::xAttr) || node.hasTagName(SVGNames::yAttr) || node.hasTagName(SVGNames::dxAttr) || node.hasTagName(SVGNames::dyAttr);
Stephen Chennney 2014/01/10 12:32:53 I don't think a node will ever have a tag name tha
gyuyoung-inactive 2014/01/12 04:37:31 Oops, it is my mistake. It looks SVGTextPositionin
+}
+
+DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGTextPositioningElement);
+
} // namespace WebCore
#endif

Powered by Google App Engine
This is Rietveld 408576698