hi !
i had a look in "list" method (in debug mode) for frames. In the .cpp file,
i found exactly the
following test: if (nsLayoutAtoms::xxxxFrame)....That's what i did in my
application.
I still don't understand.
I tried another code:
"nsCOMPtr<nsIAtom> frameType = aFrame->getType();
if (frameType.get() == nsLayoutAtoms::blabla) ....."
With no success... very strange...

Any idea ? thanks.
--
B�atrice Philippe

[EMAIL PROTECTED]
"Robert O'Callahan" <[EMAIL PROTECTED]> a �crit dans le message de news:
[EMAIL PROTECTED]
> Mozilla.embedding wrote:
> > 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.
>
> That should work. Look at the frame dump code. What's going wrong?
>
> > 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 ?
>
> Sure, that's possible.
>
> Rob
> --
> Robert O'Callahan <[EMAIL PROTECTED]>        http://ocallahan.org
> "If we claim to be without sin, we deceive ourselves and the truth is
> not in us. If we confess our sins, he is faithful and just and will
> forgive us our sins and purify us from all unrighteousness."
>     1 Johnn 1:8-9


_______________________________________________
mozilla-layout mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-layout

Reply via email to