mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 976605 - Make AsyncPanZoomController::mMonitor 'mutable' to allow entering it from 'const' methods. r=kats
--HG-- extra : source : 2cbc69f1a7c07e26568dc228a83d9443ab4d4233
This commit is contained in:
parent
4244af99c3
commit
ddd3e1cac3
@ -643,7 +643,9 @@ protected:
|
|||||||
// monitor should be held. When setting |mState|, either the SetState()
|
// monitor should be held. When setting |mState|, either the SetState()
|
||||||
// function can be used, or the monitor can be held and then |mState| updated.
|
// function can be used, or the monitor can be held and then |mState| updated.
|
||||||
// IMPORTANT: See the note about lock ordering at the top of APZCTreeManager.h.
|
// IMPORTANT: See the note about lock ordering at the top of APZCTreeManager.h.
|
||||||
ReentrantMonitor mMonitor;
|
// This is mutable to allow entering it from 'const' methods; doing otherwise
|
||||||
|
// would significantly limit what methods could be 'const'.
|
||||||
|
mutable ReentrantMonitor mMonitor;
|
||||||
|
|
||||||
// Specifies whether we should use touch-action css property. Initialized from
|
// Specifies whether we should use touch-action css property. Initialized from
|
||||||
// the preferences. This property (in comparison with the global one) simplifies
|
// the preferences. This property (in comparison with the global one) simplifies
|
||||||
|
Loading…
Reference in New Issue
Block a user