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.
jack. On Mon, Mar 27, 2017 at 8:28 AM, Boris Zbarsky <bzbar...@mit.edu> wrote: > Has there been any thought put into being able to satisfy queries for layout > information without doing a full style + layout flush on the page? There > are obviously things like CSS containment that can help here, but it seems > like it might be worth it to see whether we can detect situations in which > whatever stuff is dirty can't affect the information being queried. > > Yes, I know this is a hard, researchy, problem. ;) > > -Boris > _______________________________________________ > dev-servo mailing list > dev-servo@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-servo _______________________________________________ dev-servo mailing list dev-servo@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-servo