Boris Zbarsky wrote:
Alex Vincent wrote:
I've been wondering how to ask whether a frame is visible to the
end-user or not. Just "can the user see it?"
This seems to depend on the visual acuity of the user as much as on
anything else, no?
In my particular case, no. When I said "Can the user see it", I mean,
"Assuming this browser window were in the foreground, would this frame
be rendered on the screen or somewhere you could scroll to in the main
window?"
Not to mention on other windows that may be covering parts of the window
Gecko is running in, whether the Gecko window is minimized, etc, etc.
Pardon my ignorance, but I'm wondering what impact other windows have on
this. (I know well enough that you wouldn't ask without good reason.)
The window is not minimized. We do have some proprietary modifications
for screen-scraping from Firefox windows for our mobile phone clients.
(I forgot to mention I work for Skyfire, and I'm asking these questions
to see if I can solve one of my biggest problem spots.)
So what are you really asking? Also are you working against Gecko 1.8,
or Gecko 1.9?
I'm asking if there's a way to tell that a frame doesn't have another
frame covering it, partially or completely, and does paint to a portion
of the window (including parts you could see if you scrolled the window
to them).
We're in a transition state from 1.8 to 1.9.0.x, so I have to work with
both code bases at the moment.
I hope to start the transition to 1.9.1 sooner.
"What rectangle from the frame gets painted, if a piece of the frame
is cropped?"
Meaning what?
Let's say you have one element partially covering another - say, a text
hyperlink that gets partially hidden because someone positioned a
lightbox over it. I'd really love to get a rectangle for only the part
of the hyperlink that's visible, if that's possible.
Another example would be an overflow: hidden case - where there's
content the user can't see because it's in an area of the parent's
layout which is cropped by the overflow setting.
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout