> 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
_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to