On Jun 19, 11:27 pm, Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Jonathan wrote: > > On Jun 19, 10:47 am, Boris Zbarsky <[EMAIL PROTECTED]> wrote: > >> In 1.8, as I recall, the equivalent of the display list is done on the view > >> tree, and the view tree is linked through the iframe (so the root view of > >> the > >> contained document is a child of the iframe's view). > > > My question is from the stack track, I don't see nsSubDocumentFrame's > > Paint() being called. > > Right. Painting reaches the subframe through the view tree, like I said. > > > #21 0xb5e346e7 in PresShell::Paint (this=0x84c9ce0, aView=0x84da378, > > [EMAIL PROTECTED], [EMAIL PROTECTED]) > > at /home/crane/firefox2.0.0.11/mozilla/layout/base/nsPresShell.cpp: > > 5970 > > #22 0xb61ad09f in nsView::Paint (this=0x84da378, [EMAIL PROTECTED], > > [EMAIL PROTECTED], aPaintFlags=0, [EMAIL PROTECTED]) > > at /home/crane/firefox2.0.0.11/mozilla/view/src/nsView.cpp:314 > > #23 0xb61b06e2 in nsViewManager::RenderDisplayListElement > > (this=0x844e548, > > element=0x84b9458, aRC=0x84b8b48) > > at /home/crane/firefox2.0.0.11/mozilla/view/src/nsViewManager.cpp: > > 1458 > > This part here, to be exact. > > -Boris
Thank you Boris. I have been looking at the code for nsViewManager::RenderDisplayListElement(), nsView::Paint(), PresShell::Paint() in Gecko 1.8. But I don't see any where which it walks thru the nsView hierarchy during painting? For the iframe case, it will paint the iframe's nsView and then walk thru its children nsView (the content of iframe, right)? My question is how does iframe content getting paint? Thank you for any more pointers. _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

