On 10/4/12 6:17 PM, Seth Fowler wrote:
Just bringing myself up to speed on the layout subsystem of Gecko and there's something that's not immediately clear to me. The docs suggest that styles are computed lazily. What I'm curious about is: why this is preferable to doing it eagerly?
I think the premise was that a large enough fraction of style structs is not needed on a large enough fraction of nodes.
I'm not sure to what extent this is true now that we've been doing things like applying SVG effects to all elements (and thus needing the SVG structs for everything). I _think_ the XUL structs are still largely unused for HTML elements.
And yes, the display:none cases, and getComputedStyle() when only one property is asked for...
dbaron might know more about other details here, if any. -Boris _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

