Don't reuse input blocks with dead APZCs. (bug 1110038, r=kats)

--HG--
extra : rebase_source : 458816195b9e8e0394bfdf662b7173328015415c
This commit is contained in:
David Anderson 2014-12-11 13:03:27 -08:00
Родитель 6bd9ba41ec
Коммит 3f3a7ab1cf
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -127,7 +127,12 @@ InputQueue::ReceiveScrollWheelInput(const nsRefPtr<AsyncPanZoomController>& aTar
uint64_t* aOutInputBlockId) { uint64_t* aOutInputBlockId) {
WheelBlockState* block = nullptr; WheelBlockState* block = nullptr;
if (!mInputBlockQueue.IsEmpty()) { if (!mInputBlockQueue.IsEmpty()) {
block = mInputBlockQueue.LastElement().get()->AsWheelBlock(); block = mInputBlockQueue.LastElement()->AsWheelBlock();
// If the block's APZC has been destroyed, request a new block.
if (block && block->GetTargetApzc()->IsDestroyed()) {
block = nullptr;
}
} }
if (!block) { if (!block) {