Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upIntroduce something like Gecko's refresh driver #3406
Comments
|
Didn't we implement this already? |
|
We don't have a single unified mechanism, I don't think. We have individual messages for processing animations and rAF, and this is handled separately from styling and layout. |
|
I think all that's required here is for |
|
The other difference we have right now is that we trigger layout at the end of every turn of the event loop (as well as manually in response to a bunch of things like mouse events and rAF callbacks). Part of introducing something like the refresh driver would be removing those, so that layout only happens in response to queries and the refresh driver. |
From @bzbarsky:
This makes sense, and we'll need something like this when we eventually get around to CSS transitions, video, etc.