-
rniwa@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=66438 Reviewed by Dirk Schulze. The memory leak was caused by SVGFontFaceElement storing its own parent in a RefPtr. Fixed the bug by storing a raw pointer instead, and clearing the pointer in removedFrom when the node detached from the document. Also added several sanity check assertions. * svg/SVGFontFaceElement.cpp: (WebCore::SVGFontFaceElement::SVGFontFaceElement): (WebCore::SVGFontFaceElement::associatedFontElement): (WebCore::SVGFontFaceElement::rebuildFontFace): (WebCore::SVGFontFaceElement::insertedInto): (WebCore::SVGFontFaceElement::removedFrom): * svg/SVGFontFaceElement.h: (SVGFontFaceElement): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140698 268f45cc-cd09-0410-ab3c-d52691b4dbfc
00bac936