Bug 1398417 - Fix PrioritizedEventQueue bugs with input event prioritization (r=stone)

MozReview-Commit-ID: 4wk8EUv0h7C
This commit is contained in:
Bill McCloskey 2017-09-08 13:57:29 -07:00
Родитель 347e311683
Коммит 9c4cbe52d1
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -122,7 +122,7 @@ PrioritizedEventQueue<InnerQueueT>::SelectQueue(bool aUpdateState,
bool normalPending = !mNormalQueue->IsEmpty(aProofOfLock);
size_t inputCount = mInputQueue->Count(aProofOfLock);
if (aUpdateState && mInputQueueState == STATE_ENABLED &&
if (mInputQueueState == STATE_ENABLED &&
mInputHandlingStartTime.IsNull() && inputCount > 0) {
mInputHandlingStartTime =
InputEventStatistics::Get()
@ -274,7 +274,7 @@ PrioritizedEventQueue<InnerQueueT>::HasReadyEvent(const MutexAutoLock& aProofOfL
if (queue == EventPriority::High) {
return mHighQueue->HasReadyEvent(aProofOfLock);
} else if (queue == EventPriority::Input) {
return mIdleQueue->HasReadyEvent(aProofOfLock);
return mInputQueue->HasReadyEvent(aProofOfLock);
} else if (queue == EventPriority::Normal) {
return mNormalQueue->HasReadyEvent(aProofOfLock);
}