diff options
Diffstat (limited to 'Source/WebCore/svg/SVGFontFaceElement.cpp')
-rw-r--r-- | Source/WebCore/svg/SVGFontFaceElement.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/WebCore/svg/SVGFontFaceElement.cpp b/Source/WebCore/svg/SVGFontFaceElement.cpp index 51fbc4447..98518de4d 100644 --- a/Source/WebCore/svg/SVGFontFaceElement.cpp +++ b/Source/WebCore/svg/SVGFontFaceElement.cpp @@ -51,7 +51,7 @@ inline SVGFontFaceElement::SVGFontFaceElement(const QualifiedName& tagName, Docu , m_fontFaceRule(CSSFontFaceRule::create()) { ASSERT(hasTagName(font_faceTag)); - RefPtr<StylePropertySet> styleDeclaration = StylePropertySet::create(m_fontFaceRule.get()); + RefPtr<StylePropertySet> styleDeclaration = StylePropertySet::create(); styleDeclaration->setStrictParsing(true); m_fontFaceRule->setDeclaration(styleDeclaration.release()); } @@ -328,6 +328,7 @@ void SVGFontFaceElement::removedFromDocument() { removeFromMappedElementSheet(); SVGElement::removedFromDocument(); + m_fontFaceRule->declaration()->parseDeclaration(emptyString(), 0); } void SVGFontFaceElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) |