[dev-servo] Distribution of CSS properties in style structs

2014-05-29 Thread Simon Sapin
Gecko uses style structs that each hold the computed values of a few CSS properties, and shares them between elements in some cases. I’m aware that every style struct must contain either only inherited properties, or only reset (non-inherited properties). Other than that, what’s the guiding

Re: [dev-servo] Distribution of CSS properties in style structs

2014-05-29 Thread Patrick Walton
On 5/29/14 8:39 AM, Simon Sapin wrote: I’m aware that every style struct must contain either only inherited properties, or only reset (non-inherited properties). Other than that, what’s the guiding principle to decide how many structs to have, and which properties go where? Why not have every

Re: [dev-servo] Distribution of CSS properties in style structs

2014-05-29 Thread Boris Zbarsky
On 5/29/14, 11:39 AM, Simon Sapin wrote: I’m aware that every style struct must contain either only inherited properties, or only reset (non-inherited properties). Other than that, what’s the guiding principle to decide how many structs to have, and which properties go where? Initially the