Jonathan wrote:
>>> [2] Is there anyway to get the related DOM object from the frame
>>> object?
>> nsIFrame::GetContent() ?
> Thank you.  Is there any way to get it the other way around?
> Get the related frame object from a DOM element?

You want:
   nsGenericElement::GetPrimaryFrame()
which is really just a wrapper around
   nsIPresShell::GetPrimaryFrameFor(nsIContent* aContent)

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

Reply via email to