diff --git a/gfx/layers/apz/src/AsyncPanZoomController.cpp b/gfx/layers/apz/src/AsyncPanZoomController.cpp index 447870b10b77..bd4cda7814dd 100644 --- a/gfx/layers/apz/src/AsyncPanZoomController.cpp +++ b/gfx/layers/apz/src/AsyncPanZoomController.cpp @@ -2954,6 +2954,11 @@ bool AsyncPanZoomController::IsPannable() const { return mX.CanScroll() || mY.CanScroll(); } +bool AsyncPanZoomController::IsScrollInfoLayer() const { + ReentrantMonitorAutoEnter lock(mMonitor); + return mFrameMetrics.IsScrollInfoLayer(); +} + int32_t AsyncPanZoomController::GetLastTouchIdentifier() const { RefPtr listener = GetGestureEventListener(); return listener ? listener->GetLastTouchIdentifier() : -1; diff --git a/gfx/layers/apz/src/AsyncPanZoomController.h b/gfx/layers/apz/src/AsyncPanZoomController.h index ca35aa75cf43..1972510a1213 100644 --- a/gfx/layers/apz/src/AsyncPanZoomController.h +++ b/gfx/layers/apz/src/AsyncPanZoomController.h @@ -343,6 +343,11 @@ public: */ bool IsPannable() const; + /** + * Returns whether this APZC represents a scroll info layer. + */ + bool IsScrollInfoLayer() const; + /** * Returns true if the APZC has been flung with a velocity greater than the * stop-on-tap fling velocity threshold (which is pref-controlled).