Sorry. I changed a little piece of code.... and it's working now. What i'm still trying to do with no success is: - testing the type of each frame (like this: "aFrame->GetType() == nsLayoutAtoms::viewportFrame") - displaying this type in a textfile with fprintf() method.
And my last question: is it possible to get the entire content of the html document loaded (tags, attributes...), and for each element, getting it's content(s) (i mean an nsicontent), and getting it's frames ? Thank you. -- B�atrice Philippe [EMAIL PROTECTED] "Robert O'Callahan" <[EMAIL PROTECTED]> a �crit dans le message de news: [EMAIL PROTECTED] > Mozilla.embedding wrote: > > Hello ! > > i'm still trying to walk through the frames tree but it doesn't work at all: > > i have only one frame and no child. > > The same thing with contents. (my program is based on the 'winembed' > > application). > > In version 1.2, it did work but not with version 1.7. Why ? > > i use the presShell object, i use 'GetRootFrame()', 'GetFirstChild()' and > > 'GetNextSibling()' methods. > > Should work. Show us the code. > > By the way, walking the frame tree is very non-portable. Your code will > probably only work with the specific version of Mozilla it's written for. > > Rob _______________________________________________ mozilla-layout mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-layout
