[Webkit-unassigned] [Bug 66681] Need API for getting surrounding text from webkit in chromium
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Aug 23 19:25:04 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=66681
--- Comment #11 from MORITA Hajime <morrita at google.com> 2011-08-23 19:25:03 PST ---
> struct WebSize {
> int width;
> int height;
> ...}
>
> cursor, and anchor are indexes in plain text. I think it is different with WebSize.
That's true. My feedback there was pointless.
> >> Source/WebKit/chromium/src/WebViewImpl.cpp:1512
> >> +bool WebViewImpl::surrounding(WebString& text, size_t& cursor, size_t& anchor)
> >
> > It's sad to have this logic in WebKit layer.
> > If we have this in WebCore and make it available from LayoutTestcontroller or window.internals, It can be testable
> > and also would be helpful for other ports.
>
> Could you give more detail information? So I could look into it.
>
These code can be located somewhere under WebCore/, then it could be testable
using Webkit testing infrastructure. FrameSelection looks a good candidate.
--
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