Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / svg / SVGFontFaceElement.cpp
index 005dad6..2c0f6f6 100644 (file)
@@ -50,6 +50,7 @@ inline SVGFontFaceElement::SVGFontFaceElement(Document& document)
     : SVGElement(font_faceTag, document)
     , m_fontFaceRule(StyleRuleFontFace::create())
     , m_fontElement(0)
+    , m_weakFactory(this)
 {
     ScriptWrappable::init(this);
     RefPtrWillBeRawPtr<MutableStylePropertySet> styleDeclaration = MutableStylePropertySet::create(HTMLStandardMode);
@@ -351,6 +352,12 @@ void SVGFontFaceElement::childrenChanged(bool changedByParser, Node* beforeChang
     rebuildFontFace();
 }
 
+void SVGFontFaceElement::trace(Visitor* visitor)
+{
+    visitor->trace(m_fontFaceRule);
+    SVGElement::trace(visitor);
+}
+
 } // namespace WebCore
 
 #endif // ENABLE(SVG_FONTS)