Re: Style Contexts, Rule Trees
"L. David Baron" <[email protected]> Mon, 13 Jul 2009 10:03:36 -0700
| Newsgroups | gmane.comp.mozilla.devel.layout,gmane.comp.mozilla.documentation |
|---|---|
| Message-ID | <[email protected]> |
[ 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/