Upstream version 11.39.266.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / svg / SVGFontFaceElement.h
index a124eea..9a9bdb0 100644 (file)
 #define SVGFontFaceElement_h
 
 #if ENABLE(SVG_FONTS)
-#include "SVGNames.h"
+#include "core/SVGNames.h"
 #include "core/svg/SVGElement.h"
 #include "wtf/WeakPtr.h"
 
-namespace WebCore {
+namespace blink {
 
 class SVGFontElement;
-class SVGFontData;
 class StyleRuleFontFace;
 
 class SVGFontFaceElement FINAL : public SVGElement {
+    DEFINE_WRAPPERTYPEINFO();
 public:
-    static PassRefPtr<SVGFontFaceElement> create(Document&);
+    DECLARE_NODE_FACTORY(SVGFontFaceElement);
 
     unsigned unitsPerEm() const;
     int xHeight() const;
@@ -62,20 +62,18 @@ private:
 
     virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
 
-    virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE;
+    virtual void childrenChanged(const ChildrenChange&) OVERRIDE;
     virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
     virtual void removedFrom(ContainerNode*) OVERRIDE;
 
     virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; }
 
     RefPtrWillBeMember<StyleRuleFontFace> m_fontFaceRule;
-    SVGFontElement* m_fontElement;
+    RawPtrWillBeMember<SVGFontElement> m_fontElement;
     WeakPtrFactory<SVGFontFaceElement> m_weakFactory;
 };
 
-} // namespace WebCore
+} // namespace blink
 
 #endif // ENABLE(SVG_FONTS)
-#endif
-
-// vim:ts=4:noet
+#endif // SVGFontFaceElement_h