From e40055fcd738243041dba7013f9291df260cf2ef Mon Sep 17 00:00:00 2001 From: Timothy Nikkel Date: Wed, 18 Dec 2019 23:08:36 +0000 Subject: [PATCH] Bug 1602258. Remove GetAvailableVisualScrollingDirections, it is unused. r=botond Differential Revision: https://phabricator.services.mozilla.com/D57611 --HG-- extra : moz-landing-system : lando --- layout/generic/nsGfxScrollFrame.cpp | 14 -------------- layout/generic/nsIScrollableFrame.h | 6 ------ 2 files changed, 20 deletions(-) diff --git a/layout/generic/nsGfxScrollFrame.cpp b/layout/generic/nsGfxScrollFrame.cpp index 976a1a686a8b..6061e500ec5c 100644 --- a/layout/generic/nsGfxScrollFrame.cpp +++ b/layout/generic/nsGfxScrollFrame.cpp @@ -6645,20 +6645,6 @@ uint32_t nsIScrollableFrame::GetAvailableScrollingDirections() const { return directions; } -uint32_t nsIScrollableFrame::GetAvailableVisualScrollingDirections() const { - nscoord oneDevPixel = - GetScrolledFrame()->PresContext()->AppUnitsPerDevPixel(); - uint32_t directions = 0; - nsRect scrollRange = GetVisualScrollRange(); - if (scrollRange.width >= oneDevPixel) { - directions |= HORIZONTAL; - } - if (scrollRange.height >= oneDevPixel) { - directions |= VERTICAL; - } - return directions; -} - nsRect ScrollFrameHelper::GetScrollRangeForUserInputEvents() const { // This function computes a scroll range based on a scrolled rect and scroll // port defined as follows: diff --git a/layout/generic/nsIScrollableFrame.h b/layout/generic/nsIScrollableFrame.h index 8a94034551ac..9c954173438b 100644 --- a/layout/generic/nsIScrollableFrame.h +++ b/layout/generic/nsIScrollableFrame.h @@ -94,12 +94,6 @@ class nsIScrollableFrame : public nsIScrollbarMediator { * is at least one device pixel in that direction). */ uint32_t GetAvailableScrollingDirections() const; - /** - * Returns the directions in which scrolling is allowed (if the scroll range - * is at least one device pixel in that direction) when taking into account - * the visual viewport size. - */ - uint32_t GetAvailableVisualScrollingDirections() const; /** * Returns the directions in which scrolling is allowed when taking into * account the visual viewport size and overflow hidden. (An (apz) zoomed in