On Apr 5, 7:28 pm, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
> krithika wrote:
> > Now I have to get the last child frame of this block frame.
>
> > Is this the right way to do it?
>
> > nsIContent* cont=lastFrame->GetContent();
> > childCount=cont.GetChildCount();
> > nsIContent* lastCont = cont->GetChildAt(childCount-1);
>
> Are you looking for frames or content?  The two are _so_ not the same thing.
>
> -Boris

Is there any document or diagram clearly explaining the relationship.

This is my understanding.DOM Node has one to one relationship with
content.Where as a content has one to may relationship with frames.

I actually need the last frame (after which page breaks) of a each
page and then get that frames content.

Basically I need to insert a comment at that point to later on show it
as a page break.

regards,
Krithika

_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to