On Oct 10, 2012, at 2:43 PM, L. David Baron <[email protected]> wrote:
> We can never determine for sure that a given struct will
> never need a struct, since a page can always ask for a style in it
> via getComputedStyle (except for the rare style context that
> couldn't potentially be used from a getComputedStyle call).  So I
> don't see how we can keep the space optimization without also
> keeping the ability to compute lazily.

Yes, that's true. You might want the ability to do lazy style
computations, even if your primary strategy was eager, just for cases
like this. It'd be interesting to know how often it's beneficial to
not just go ahead and compute the styles for e.g. display: none
subtrees, though. Presumably they are on the page because
eventually some event will cause them to be displayed, right?
(Quite hypothetical without data, of course.)

- Seth
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to