Bug 976605 - Make AsyncPanZoomController::mMonitor 'mutable' to allow entering it from 'const' methods. r=kats

--HG--
extra : source : c25666782c6027f114ffe29508bff32e94444266
This commit is contained in:
Botond Ballo 2014-04-09 14:07:33 -04:00
parent 87beae3674
commit 13c4c46c3b

View File

@ -643,7 +643,9 @@ protected:
// monitor should be held. When setting |mState|, either the SetState()
// 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.
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
// the preferences. This property (in comparison with the global one) simplifies