Brian Birtles
6fb124d929
Bug 986367 - Make paint_listener.js check for paint suppression; r=mattwoodrow
...
This patch adds an extra check for paint suppression when waiting for paint
events. This is because on some platforms (notably B2G) we can think all paints
have completed because paint suppression is in effect and as a result call the
callback too soon.
This patch use window.setTimeout(..., 0) to wait for paint suppression to finish
before preceding to check for pending paint events.
When the refresh driver is under test control, if we detect that paint events
are pending we need to force a refresh driver tick. This patch adds that tick.
I suppose we had previously never hit this situation before and never noticed
this.
This patch also rearranges the main loop so that early returns appear first and
calling the callback appears at the end.
2014-03-26 09:20:07 +09:00
..
2014-03-05 10:19:15 +09:00
2014-03-26 09:20:07 +09:00
2014-03-25 12:36:39 -03:00
2014-03-04 20:13:22 -08:00
2013-10-22 14:14:41 +02:00
2014-03-20 23:19:43 -04:00
2014-03-20 23:19:43 -04:00
2013-12-12 13:09:47 +11:00
2013-12-12 13:09:47 +11:00
2013-12-17 16:16:42 +11:00
2013-12-12 13:09:41 +11:00
2013-12-12 13:09:45 +11:00
2013-12-12 13:09:45 +11:00
2014-03-24 14:26:04 +01:00
2013-09-16 09:35:49 +10:00
2014-03-15 12:00:15 -07:00
2014-01-04 10:02:17 -05:00
2014-03-12 20:33:21 -07:00
2013-12-12 13:09:41 +11:00
2013-11-14 21:42:57 -05:00
2014-02-21 22:14:22 -05:00
2013-06-04 17:41:31 -04:00
2014-02-10 09:34:11 -05:00
2013-09-02 20:41:57 +12:00
2013-06-23 14:03:39 +02:00
2014-02-26 12:26:14 +00:00
2014-03-15 12:00:15 -07:00
2014-03-21 09:16:20 +08:00
2013-11-05 13:37:54 -05:00
2013-12-17 08:40:06 -05:00
2014-03-18 00:23:03 +00:00
2013-11-05 13:37:54 -05:00
2013-06-23 14:03:39 +02:00
2014-03-22 05:59:58 +08:00
2014-03-22 05:59:58 +08:00
2014-03-21 23:06:16 +08:00
2014-03-10 15:54:17 -07:00
2014-03-10 15:54:17 -07:00
2013-12-08 21:52:54 -05:00
2013-09-16 15:06:29 +10:00
2014-03-18 20:11:14 +11:00
2013-12-12 13:09:44 +11:00
2014-03-10 15:54:17 -07:00
2013-11-14 21:42:57 -05:00
2014-03-24 14:26:04 +01:00
2013-12-12 13:09:46 +11:00
2014-02-04 18:06:18 -08:00
2013-12-12 13:09:40 +11:00
2013-12-08 21:52:54 -05:00
2014-03-21 23:06:12 +08:00
2014-03-21 23:06:12 +08:00
2014-03-07 12:14:25 -05:00
2013-12-08 21:52:54 -05:00
2013-11-28 17:46:38 +11:00
2013-09-07 11:39:50 +02:00
2013-11-28 18:03:16 +11:00
2013-12-08 21:52:54 -05:00
2013-12-02 22:38:45 +01:00
2014-02-27 10:04:09 -08:00
2013-11-28 17:46:39 +11:00
2014-03-04 20:13:20 -08:00
2013-09-15 21:06:52 -04:00
2014-03-10 15:54:14 -07:00
2014-03-10 15:54:14 -07:00
2014-02-27 20:04:46 -03:00
2013-11-11 09:03:17 +01:00
2014-03-21 23:06:16 +08:00
2014-03-21 23:06:16 +08:00
2013-11-03 23:14:26 -08:00
2014-02-24 09:41:56 -05:00
2014-03-07 12:14:26 -05:00
2014-03-07 12:14:26 -05:00
2013-08-14 08:56:21 +02:00
2013-09-15 21:06:52 -04:00
2013-08-14 08:56:21 +02:00
2014-01-04 10:02:17 -05:00
2013-11-15 11:32:12 -05:00
2014-02-24 09:41:56 -05:00
2013-11-28 17:46:39 +11:00
2013-11-28 17:46:39 +11:00
2014-02-27 10:04:09 -08:00
2013-11-28 17:46:39 +11:00
2013-09-16 09:35:49 +10:00
2013-07-24 09:27:17 +02:00
2013-11-11 09:03:17 +01:00
2013-11-28 17:46:39 +11:00
2013-06-23 14:03:39 +02:00
2014-02-26 12:26:14 +00:00
2014-02-26 12:26:14 +00:00
2014-02-06 00:10:44 +13:00
2014-02-06 00:10:44 +13:00
2013-11-25 17:35:09 -08:00
2013-08-23 22:42:42 -04:00
2014-01-04 10:02:17 -05:00
2014-01-04 10:02:17 -05:00
2013-07-18 13:59:53 -04:00
2013-12-12 13:09:41 +11:00
2014-03-24 14:26:04 +01:00
2014-02-15 10:42:35 -08:00
2013-11-28 17:46:39 +11:00
2014-03-15 12:00:15 -07:00
2014-01-04 10:02:17 -05:00
2014-03-10 15:54:16 -07:00
2014-02-26 23:45:29 -08:00
2014-03-15 12:00:15 -07:00
2014-03-10 15:54:13 -07:00
2014-03-10 15:54:13 -07:00
2014-01-30 13:26:54 -05:00
2013-11-28 17:46:39 +11:00
2014-03-21 23:06:16 +08:00
2014-03-25 11:45:43 +13:00
2013-12-12 13:09:40 +11:00
2014-03-25 11:45:43 +13:00
2013-11-14 21:42:57 -05:00
2013-09-15 21:06:52 -04:00
2014-03-20 23:19:43 -04:00
2014-03-20 23:19:43 -04:00
2014-03-18 13:48:21 +09:00
2014-03-06 22:08:57 -08:00
2014-03-06 10:03:38 +00:00
2014-02-05 23:23:08 +13:00
2014-02-26 23:00:13 -08:00
2013-10-08 14:47:21 -04:00
2014-03-15 12:00:15 -07:00
2014-01-04 10:02:17 -05:00
2013-08-29 17:16:30 -07:00
2014-02-22 01:18:24 +00:00
2014-02-05 23:23:08 +13:00