Re: Finding link extents (was Re: Setting default stylesheets)

2005-10-27 Thread Boris Zbarsky
Ben Hutchings wrote: The idea is simply to let people use a familiar format and tools, not to support arbitrary existing web pages. Ah, ok. That makes life simpler. ;) -Boris ___ mozilla-embedding mailing list mozilla-embedding@mozilla.org http://

Re: Finding link extents (was Re: Setting default stylesheets)

2005-10-27 Thread Ben Hutchings
On 2005-10-27, Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Ben Hutchings wrote: >> The extents of the content of the link. > > You mean the smallest rectangle that contains all the layout objects > corresponding to descendants of the link DOM node in the DOM? I suppose so, yes. > You can get that

Re: Finding link extents (was Re: Setting default stylesheets)

2005-10-27 Thread Boris Zbarsky
Ben Hutchings wrote: The extents of the content of the link. You mean the smallest rectangle that contains all the layout objects corresponding to descendants of the link DOM node in the DOM? You can get that by getting the rectangles for all those nodes and taking the minimal bounding rect

Re: Finding link extents (was Re: Setting default stylesheets)

2005-10-27 Thread Ben Hutchings
Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Ben Hutchings wrote: >> Currently I'm using nsIDOMNSDocument::GetBoxObjectFor to find the >> extents of each link before scanning for changes, but this doesn't >> always provide the correct extents for my purposes. > > What do you mean by "extents of each

Re: Finding link extents (was Re: Setting default stylesheets)

2005-10-27 Thread Boris Zbarsky
Ben Hutchings wrote: Currently I'm using nsIDOMNSDocument::GetBoxObjectFor to find the extents of each link before scanning for changes, but this doesn't always provide the correct extents for my purposes. What do you mean by "extents of each link", exactly? Given positioned content, etc, a s

Finding link extents (was Re: Setting default stylesheets)

2005-10-27 Thread Ben Hutchings
Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Ben Hutchings wrote: >> I don't suppose you can help with my other query about link extents? > > I'm not sure I saw this query. Then I'll post it again: I'm working on an application that uses Mozilla to render pages for inclusion on a DVD. DVDs can onl