On 9/10/13 12:31 PM, Boris Zbarsky wrote:
I generally consider it pretty intractable, but the Blink  folks are
trying it: http://code.google.com/p/chromium/issues/detail?id=283623

The idea is that a layout flush should only do layout until the part we
care about is stable.  Or something.

Could we do the particular optimization that Chrome is doing in Servo by just threading "what part of layout are we interested in?" (the LayoutGoal in Servo terms) throughout layout and sending the answer over a channel as soon as we know it?

For example, if we want offsetWidth of a div, then we could make the LayoutGoal something like "offsetWidth of div so-and-so" and then as soon as we know the answer send it to the content task. We would continue doing the layout as usual in the layout thread.

Patrick

_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo

Reply via email to