[webkit-dev] Question about CSS in Webkit

David Hyatt hyatt at apple.com
Thu Jun 4 13:53:51 PDT 2009


On Jun 4, 2009, at 3:24 PM, Darin Adler wrote:

> On Jun 4, 2009, at 1:19 PM, Nathan Summer wrote:
>
>> My question is if the CSS information stored Twice? onces are in  
>> the internal data structure built after parsing the CSS and other  
>> is in RenderStyle?
>
> The CSS stores the style rules. The RenderStyle stores the actual  
> style chosen for each element.
>
> This is analogous to the way the DOM stores the actual document  
> elements, and the RenderObject stores the actual rendering chosen  
> for each element.
>

In terms of the CSS specification, you can think of RenderStyle as  
holding the computed values of properties.

dave
(hyatt at apple.com)



More information about the webkit-dev mailing list