зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
ba5741d87f
Коммит
2a3531f404
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче