[ No need to cross-post so widely; please follow up to dev-tech-layout. ]

On Monday 2009-07-13 06:33 -0700, Emanuele D'Arrigo wrote:
> In particular I'm not quite understanding how, upon the addition of an
> element to the document (say a <span> element), Gecko can refrain from
> restyling the whole document, limiting itself to the specific changes
> that are prompted by the addition. Can anybody provide some pointers
> for further research?

In the past, we just restyled the added/modified element and its
descendants.  This wasn't quite enough, so I added code to do
additional restyling in certain cases where necessary.  This was
done in the following bugs:
https://bugzilla.mozilla.org/show_bug.cgi?id=15608
https://bugzilla.mozilla.org/show_bug.cgi?id=401291
so the code added in those two bugs is the code that handles
reresolving style on elements other than descendants.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to