[webkit-dev] RenderStyle & inheritance
François Sausset
sausset at gmail.com
Sat Sep 18 13:00:38 PDT 2010
> As a rule, you shouldn’t mutate RenderStyle objects (unless you are CSSStyleSelector or you created the RenderStyle yourself). For all you know, the style may be shared with other nodes.
Right, my example was wrong. Let's say I create a style, modify it and then uses setStyle() on a RenderObject. Is it correct like this?
> What are you trying to do?
I'm working on MathML and some elements (fraction for instance) have to modify the font size of their children, depending on the context. And it cannot be achieved in CSS, it has to be hardcoded.
François Sausset
More information about the webkit-dev
mailing list