Bug 1549504 - Assert that AsyncPanZoomController::mRecursiveMutex is held in Metrics() r=botond

Moved assertion statement from GetFrameMetrics() to Metrics() so that internal accesses to the frame metrics are covered as well.

Differential Revision: https://phabricator.services.mozilla.com/D32300

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Srujana Peddinti 2019-05-29 18:42:03 +00:00
Родитель ba5741d87f
Коммит 2a3531f404
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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 {