Hi Guys,
I would like to get text from visible region of page. What kind of approach
would you suggest? I was trying to use text selection API, but since points
can have visible position totally different, then expected (eg.:  in
multi-column layout, while using point which is few pixels bellow last line
of text, but still inside of column, you offend end up with all columns
selected) it's hard to predict what parts of text will be selected (this
doesn't seem to be a problem when user is selecting text base on visual
feedback which she gets). I was also experimenting with
Document::nodesFromRect but again, after determining all text nodes, visible
positions have to be calculated.
So, maybe there is other, better solution?

Thanks in advance, Regards,
Piotrek


_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to