зеркало из https://github.com/mozilla/gecko-dev.git
Bug 890932 - Add a missing lock in AsyncPanZoomController::SendAsyncScrollEvent. r=BenWa
This commit is contained in:
Родитель
41d5cda7fd
Коммит
3c0ed4577b
|
@ -1455,7 +1455,8 @@ void AsyncPanZoomController::SendAsyncScrollEvent() {
|
||||||
CSSRect contentRect;
|
CSSRect contentRect;
|
||||||
CSSSize scrollableSize;
|
CSSSize scrollableSize;
|
||||||
{
|
{
|
||||||
// XXX bug 890932 - there should be a lock here. but it causes a deadlock.
|
ReentrantMonitorAutoEnter lock(mMonitor);
|
||||||
|
|
||||||
scrollId = mFrameMetrics.mScrollId;
|
scrollId = mFrameMetrics.mScrollId;
|
||||||
scrollableSize = mFrameMetrics.mScrollableRect.Size();
|
scrollableSize = mFrameMetrics.mScrollableRect.Size();
|
||||||
contentRect = mFrameMetrics.CalculateCompositedRectInCssPixels();
|
contentRect = mFrameMetrics.CalculateCompositedRectInCssPixels();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче