summaryrefslogtreecommitdiffstats
path: root/layout/generic/nsGfxScrollFrame.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-11-02 10:47:05 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-11-02 10:47:05 +0100
commit3b2c342f3879705b0cc9919198b984f92aec5e62 (patch)
treebd903612f46f95cac88f0bb89a4465005b0fbcbf /layout/generic/nsGfxScrollFrame.h
parentdeba73b3bc9168838034c2b5bab4b7d2945bfaaf (diff)
downloadUXP-3b2c342f3879705b0cc9919198b984f92aec5e62.tar
UXP-3b2c342f3879705b0cc9919198b984f92aec5e62.tar.gz
UXP-3b2c342f3879705b0cc9919198b984f92aec5e62.tar.lz
UXP-3b2c342f3879705b0cc9919198b984f92aec5e62.tar.xz
UXP-3b2c342f3879705b0cc9919198b984f92aec5e62.zip
Make sure we remove our RefreshDriver observers in CompleteAsyncScroll.
Follow-up to fdbac095968bc952fec6a03765a7156940ae4733
Diffstat (limited to 'layout/generic/nsGfxScrollFrame.h')
-rw-r--r--layout/generic/nsGfxScrollFrame.h3
1 files changed, 3 insertions, 0 deletions
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.