[webkit-dev] RenderStyle & inheritance
Dan Bernstein
mitz at apple.com
Sat Sep 18 12:51:04 PDT 2010
On Sep 18, 2010, at 12:39 PM, François Sausset wrote:
> If, in a RenderObject method (let's say addChild() or layout()), I change a style property that should be inherited (for instance style()->setColor()), the corresponding style property of the children is not updated.
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.
> What should I do to propagate the style change?
> I tried unsuccessfully setNeedsStyleRecalc().
What are you trying to do?
More information about the webkit-dev
mailing list