From 3b2c342f3879705b0cc9919198b984f92aec5e62 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Fri, 2 Nov 2018 10:47:05 +0100 Subject: Make sure we remove our RefreshDriver observers in CompleteAsyncScroll. Follow-up to fdbac095968bc952fec6a03765a7156940ae4733 --- layout/generic/nsGfxScrollFrame.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'layout/generic/nsGfxScrollFrame.h') diff --git a/layout/generic/nsGfxScrollFrame.h b/layout/generic/nsGfxScrollFrame.h index f1ef44ae8..81bbb358f 100644 --- a/layout/generic/nsGfxScrollFrame.h +++ b/layout/generic/nsGfxScrollFrame.h @@ -638,6 +638,9 @@ protected: bool HasBgAttachmentLocal() const; uint8_t GetScrolledFrameDir() const; + // Removes any RefreshDriver observers we might have registered. + void RemoveObservers(); + static void EnsureFrameVisPrefsCached(); static bool sFrameVisPrefsCached; // The number of scrollports wide/high to expand when tracking frame visibility. -- cgit v1.2.3