diff --git a/gfx/layers/apz/src/AsyncPanZoomController.cpp b/gfx/layers/apz/src/AsyncPanZoomController.cpp index c66b2fa1bde5..0a43d1b7ea77 100644 --- a/gfx/layers/apz/src/AsyncPanZoomController.cpp +++ b/gfx/layers/apz/src/AsyncPanZoomController.cpp @@ -4767,18 +4767,18 @@ void AsyncPanZoomController::NotifyLayersUpdated( } FrameMetrics& AsyncPanZoomController::Metrics() { + mRecursiveMutex.AssertCurrentThreadIn(); return mScrollMetadata.GetMetrics(); } const FrameMetrics& AsyncPanZoomController::Metrics() const { + mRecursiveMutex.AssertCurrentThreadIn(); return mScrollMetadata.GetMetrics(); ; } const FrameMetrics& AsyncPanZoomController::GetFrameMetrics() const { - mRecursiveMutex.AssertCurrentThreadIn(); return Metrics(); - ; } const ScrollMetadata& AsyncPanZoomController::GetScrollMetadata() const {