Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <script> | |
| 2 module.exports = function(callback) { | |
| 3 window.requestAnimationFrame(function() { | |
| 4 // At this point, only the animate has happened, but no compositing | |
| 5 // or layout. Use a timeout for the callback so that notifyDone | |
| 6 // can be called inside of it. | |
| 7 // FIXME: we need a better way of waiting for chromium events to happen | |
| 8 window.setTimeout(callback, 1); | |
|
abarth-chromium
2015/01/06 22:48:09
Why 1 instead of 0?
ojan
2015/01/06 22:54:41
I just copy-pasted this from the Blink version. I
ojan
2015/01/06 22:54:41
I just copy-pasted this from the Blink version. I
| |
| 9 }); | |
| 10 }; | |
| 11 </script> | |
| OLD | NEW |