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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user