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 |