Bug 1280676: When SVG-in-opentype font is being torn down, call OnPageHide() on its inner document instead of simply pausing animations. r?birtles
MozReview-Commit-ID: 6BzHP2BDsmZ
--- a/gfx/thebes/gfxSVGGlyphs.cpp
+++ b/gfx/thebes/gfxSVGGlyphs.cpp
@@ -302,20 +302,17 @@ gfxSVGGlyphsDocument::gfxSVGGlyphsDocume
}
FindGlyphElements(root);
}
gfxSVGGlyphsDocument::~gfxSVGGlyphsDocument()
{
if (mDocument) {
- nsSMILAnimationController* controller = mDocument->GetAnimationController();
- if (controller) {
- controller->Pause(nsSMILTimeContainer::PAUSE_PAGEHIDE);
- }
+ mDocument->OnPageHide(false, nullptr);
}
if (mPresShell) {
mPresShell->RemovePostRefreshObserver(this);
}
if (mViewer) {
mViewer->Destroy();
}
}