it compiles very well. i have printed the frame types like this: << nsCOMPtr<nsIAtom> aType; aType = aFrame->GetType(); nsAutoString buf; aType->ToString(buf); fprintf(out, "type = %s\n", NS_LossyConvertUCS2toASCII(buf).get()); >> This piece of code is working. For textFrame, i can read "TextFrame", for blockFrame: "BlockFrame" .... This if comparison helps me to know the frame type i point to when i 'm walking through the tree. And wether the type is a textFrame, imageFrame or anything else, i display some information about the current frame.
Thanks. B�atrice Philippe [EMAIL PROTECTED] "Boris Zbarsky" <[EMAIL PROTECTED]> a �crit dans le message de news:[EMAIL PROTECTED] > Mozilla.embedding wrote: > > "nsCOMPtr<nsIAtom> frameType = aFrame->getType(); > > if (frameType.get() == nsLayoutAtoms::blabla) ....." > > With no success... very strange... > > Does it not compile, or does it not build? Have you tried printing out both > pointer values and seeing what they look like? > > For that matter, how'd you end up with nsLayoutAtoms in your app? > > -Boris _______________________________________________ mozilla-layout mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-layout
