[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 30 22:40:11 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=66681
--- Comment #21 from Darin Fisher (:fishd, Google) <fishd at chromium.org> 2011-08-30 22:40:10 PST ---
Yes, indeed we do implement something like this on the Mac. See WebKit::WebSubstringUtil::attributedSubstringInRange(...) in WebKit/chromium/public/mac/WebSubstringUtil.h.
It appears to be implemented as a forked copy of a similar function defined in WebKit/mac/Misc/WebNSAttributedStringExtras.mm. Forking :-(
Obviously, that does not work on non-Mac platforms. It is not so clear to me that it is exactly analogous to what we want in this case, but I haven't studied it very closely.
Thanks for the tip!
--
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