[Webkit-unassigned] [Bug 31759] [GTK] WebKitWebView needs API to scroll to selection
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jan 11 04:13:23 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=31759
--- Comment #14 from Xan Lopez <xan.lopez at gmail.com> 2010-01-11 04:13:20 PST ---
(In reply to comment #13)
> (In reply to comment #5)
> > (From update of attachment 43689 [details] [details])
> > Can't you already do this via the DOM?
> > window.getSelection().getRangeAt(0).getBoundingClientRect()
> >
> > I assume that gtk webkit exposes some sort of DOM bindings, no? Please feel
> > free to r? this again if I'm wrong.
>
> window.getSelection seems to be marked as JavaScript only in the IDL file
> though, so it wouldn't be accessible through GTK+ DOM bindings. Is there
> another way to do this?
Answering myself, apparently document.defaultView.getSelection() should do the
same thing.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list