On 9/29/09 7:28 AM, Emanuele D'Arrigo wrote:
A follow up question: when are rule nodes and style contexts instantiated and who is responsible for the instantiation?
The former happens in nsRuleNode::Transition; that's called while computing the right rulenode for a new nsStyleContext in nsStyleSet.
Style contexts are instantiated by whoever feels like getting the style for some node; the most common case is nsCSSFrameConstructor. nsStyleSet is where all such calls end up.
And a closely related question: where's the starting point for the whole layout process? That is, when at least the initial portion of a webpage and all auxiliary files (i.e. external stylesheets) have been loaded, what's the source file/code that determines what happens next? I tried to get there from the function main() but needless to say I got a little bit lost!
Does https://developer.mozilla.org/en/The_life_of_an_HTML_HTTP_request help a bit? It's a little out of date, but correct in broad strokes if you ignore the nsIRenderingContext part.
-Boris _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

