Jonathan wrote:
> Thank you. Can you please point me to the code which does the walking?
> I have looked at nsPresShell:Paint(), but I don't think it has the
> nsFrame walking part.

Indeed.  Paint() calls nsLayoutUtils::PaintFrame with the root frame of the 
subtree to paint.  PaintFrame() does BuildDisplayListForStackingContext(), and 
building the display list is what walks the frame tree, because some of the 
display items walk kids.  See, for example, 
nsHTMLContainerFrame::DisplayTextDecorationsAndChildren.

-Boris
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to