Bug 1328658 - Notify main thread of a failed attempt to start an APZ scrollbar drag. r=kats,tnikkel

MozReview-Commit-ID: ERm1sVNfoKL
This commit is contained in:
Botond Ballo
2017-01-27 18:02:22 -05:00
parent a9323edf9f
commit c65e635354
20 changed files with 183 additions and 27 deletions

View File

@@ -274,3 +274,16 @@ ChromeProcessController::NotifyFlushComplete()
APZCCallbackHelper::NotifyFlushComplete(GetPresShell());
}
void
ChromeProcessController::NotifyAsyncScrollbarDragRejected(const FrameMetrics::ViewID& aScrollId)
{
if (MessageLoop::current() != mUILoop) {
mUILoop->PostTask(NewRunnableMethod<FrameMetrics::ViewID>(this,
&ChromeProcessController::NotifyAsyncScrollbarDragRejected,
aScrollId));
return;
}
APZCCallbackHelper::NotifyAsyncScrollbarDragRejected(aScrollId);
}