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?

Certainly there are cases where we don't need the value of certain properties - 
for example, we don't care about anything under a DOM node with "display: 
none", and we can ignore certain properties when a node has "visibility: 
hidden". But it seems to me like these cases could easily be taken into account 
when evaluating styles eagerly.

Does anyone know why this design choice was made?

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

Reply via email to