tizen beta release
[framework/web/webkit-efl.git] / Source / WebCore / css / CSSFontFaceRule.cpp
index 75e9a36..0931cb0 100755 (executable)
 namespace WebCore {
 
 CSSFontFaceRule::CSSFontFaceRule(CSSStyleSheet* parent)
-    : CSSRule(parent)
+    : CSSRule(parent, CSSRule::FONT_FACE_RULE)
 {
 }
 
 CSSFontFaceRule::~CSSFontFaceRule()
 {
-}
-
-void CSSFontFaceRule::setDeclaration(PassRefPtr<CSSMutableStyleDeclaration> style)
-{
-    m_style = style;
+    if (m_style)
+        m_style->setParentRule(0);
 }
 
 String CSSFontFaceRule::cssText() const