зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1076915 - Ensure that PostDelayedTask is always called on the controller thread. r=botond
This commit is contained in:
Родитель
89be467df3
Коммит
86bc862d58
|
@ -87,6 +87,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Schedules a runnable to run on the controller/UI thread at some time
|
* Schedules a runnable to run on the controller/UI thread at some time
|
||||||
* in the future.
|
* in the future.
|
||||||
|
* This method must always be called on the controller thread.
|
||||||
*/
|
*/
|
||||||
virtual void PostDelayedTask(Task* aTask, int aDelayMs) = 0;
|
virtual void PostDelayedTask(Task* aTask, int aDelayMs) = 0;
|
||||||
|
|
||||||
|
|
|
@ -3138,6 +3138,7 @@ AsyncPanZoomController::GetZoomConstraints() const
|
||||||
|
|
||||||
|
|
||||||
void AsyncPanZoomController::PostDelayedTask(Task* aTask, int aDelayMs) {
|
void AsyncPanZoomController::PostDelayedTask(Task* aTask, int aDelayMs) {
|
||||||
|
AssertOnControllerThread();
|
||||||
nsRefPtr<GeckoContentController> controller = GetGeckoContentController();
|
nsRefPtr<GeckoContentController> controller = GetGeckoContentController();
|
||||||
if (controller) {
|
if (controller) {
|
||||||
controller->PostDelayedTask(aTask, aDelayMs);
|
controller->PostDelayedTask(aTask, aDelayMs);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче