Bug 748209 - Fix logic error in CompositorParent::ScheduleTask. r=ajuma

--HG--
extra : rebase_source : 216967a9a94eca09935d5b196ac04b95a6ed418c
This commit is contained in:
Benoit Girard 2012-05-24 13:34:20 -04:00
parent 4057422bf2
commit b5722875da

View File

@ -187,7 +187,7 @@ CompositorParent::ScheduleResumeOnCompositorThread(int width, int height)
void void
CompositorParent::ScheduleTask(CancelableTask* task, int time) CompositorParent::ScheduleTask(CancelableTask* task, int time)
{ {
if (time) { if (time == 0) {
MessageLoop::current()->PostTask(FROM_HERE, task); MessageLoop::current()->PostTask(FROM_HERE, task);
} else { } else {
MessageLoop::current()->PostDelayedTask(FROM_HERE, task, time); MessageLoop::current()->PostDelayedTask(FROM_HERE, task, time);