On 3/27/17 10:36 AM, Jack Moffitt wrote:
Responses to layout queries are just sent messages (if layout needed
invoking to answer them). It is possible to send them early as soon as
the relevant data has been computed. Servo does not do this currently
though. An initial implementation could just reply with the answer and
then keep running layout to completion. I assume this will still
require styling + 2 tree passes in most cases, but the last pass will
be shortened.
That would be an interesting start, yes.
How would it handle the common failure mode I'd really like to address,
where a page does:
1) Modify style.
2) Ask for layout data.
3) Modify style.
4) Ask for layout data.
At step 4, will we just need to wait for the layout from step 2 to
complete before we can start the new restyling pass?
-Boris
_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo