Upstream version 11.39.266.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / svg / SVGGlyphElement.h
index a08bc82..8e2a384 100644 (file)
 #define SVGGlyphElement_h
 
 #if ENABLE(SVG_FONTS)
-#include "SVGNames.h"
-#include "core/platform/graphics/SVGGlyph.h"
+#include "core/SVGNames.h"
 #include "core/svg/SVGElement.h"
+#include "platform/fonts/SVGGlyph.h"
 
-namespace WebCore {
+namespace blink {
 
 class SVGFontData;
 
 class SVGGlyphElement FINAL : public SVGElement {
+    DEFINE_WRAPPERTYPEINFO();
 public:
-    static PassRefPtr<SVGGlyphElement> create(const QualifiedName&, Document&);
+    DECLARE_NODE_FACTORY(SVGGlyphElement);
 
     SVGGlyph buildGlyphIdentifier() const;
 
     // Helper function used by SVGFont
     static void inheritUnspecifiedAttributes(SVGGlyph&, const SVGFontData*);
-    static String querySVGFontLanguage(const SVGElement*);
 
     // Helper function shared between SVGGlyphElement & SVGMissingGlyphElement
     static SVGGlyph buildGenericGlyphIdentifier(const SVGElement*);
 
 private:
-    SVGGlyphElement(const QualifiedName&, Document&);
+    explicit SVGGlyphElement(Document&);
 
     // FIXME: svgAttributeChanged missing.
     virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
@@ -53,14 +53,12 @@ private:
     virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
     virtual void removedFrom(ContainerNode*) OVERRIDE;
 
-    virtual bool rendererIsNeeded(const RenderStyle&) { return false; }
+    virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; }
 
     void invalidateGlyphCache();
 };
 
-DEFINE_NODE_TYPE_CASTS(SVGGlyphElement, hasTagName(SVGNames::glyphTag));
-
-} // namespace WebCore
+} // namespace blink
 
 #endif // ENABLE(SVG_FONTS)
-#endif
+#endif // SVGGlyphElement_h