Antonio Gomes wrote: > but viewport, I mean area in the page currently being displayed.
"the" page? What happens with subframes? >> I hate to ask this... why isn't this using GetClosestView if that's what it >> wants? > > not sure how getClosestView would help here : / You wouldn't need to do the "if the frame has a view, do one thing, otherwise do the other thing" stuff. You'd just get the closest view, and use a rect whose x/y is the offset to that view and whose size is the frame's size. -Boris _______________________________________________ dev-embedding mailing list dev-embedding@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-embedding