Bug 1280676: When SVG-in-opentype font is being torn down, call OnPageHide() on its inner document instead of simply pausing animations. r?birtles draft
authorDaniel Holbert <dholbert@cs.stanford.edu>
Sat, 18 Jun 2016 14:58:59 +0100
changeset 379836 9000e18462894ff40d568811b29832e457dcbf42
parent 379702 44256084ae2e8a2777eeaf040f8bdb584a818ef8
child 523588 5fe3efd5de4b38c25906ee4da6ea18820ac436bb
push id21073
push userdholbert@mozilla.com
push dateSat, 18 Jun 2016 13:59:17 +0000
reviewersbirtles
bugs1280676
milestone50.0a1
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
gfx/thebes/gfxSVGGlyphs.cpp
--- 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();
     }
 }