Bug 890932 - Add a missing lock in AsyncPanZoomController::SendAsyncScrollEvent. r=BenWa

This commit is contained in:
Kartikaya Gupta 2013-07-31 08:53:17 -04:00
Родитель 41d5cda7fd
Коммит 3c0ed4577b
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -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();