Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / svg / SVGTextPositioningElement.h
index b4800bc..4905799 100644 (file)
@@ -26,7 +26,7 @@
 #include "core/svg/SVGAnimatedNumberList.h"
 #include "core/svg/SVGTextContentElement.h"
 
-namespace WebCore {
+namespace blink {
 
 class SVGTextPositioningElement : public SVGTextContentElement {
 public:
@@ -53,13 +53,13 @@ protected:
     RefPtr<SVGAnimatedNumberList> m_rotate;
 };
 
-inline bool isSVGTextPositioningElement(const Node& node)
+inline bool isSVGTextPositioningElement(const SVGElement& element)
 {
-    return node.isSVGElement() && toSVGElement(node).isTextPositioning();
+    return element.isTextPositioning();
 }
 
-DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGTextPositioningElement);
+DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGTextPositioningElement);
 
-} // namespace WebCore
+} // namespace blink
 
 #endif