i'd like to see all frames a webPage can contains.
Just making sure; you do realize that any code that does that will need a recompile (and possibly recoding) with every single foreseeable Mozilla release?
if (aType == nsLayoutAtoms::areaFrame) {
......
there is no type matching...
}
It should be a viewportFrame, unless you're printing.
nsIContent* contentFrame;
contentFrame = aFrame->GetContent(); // here, the content is always
null !!
See http://lxr.mozilla.org/seamonkey/source/layout/html/style/src/nsCSSFrameConstructor.cpp#3648
childFrame = aFrame->GetNextSibling(); //and childFrame is always null
That's because the viewport has no siblings. If you want children, why not GetFirstChild?
-Boris _______________________________________________ mozilla-layout mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-layout
