18 Sep
2010
18 Sep
'10
8 p.m.
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