Hi, i want to write a extension to get the word under mouse through javascript. in firefox, mouseEvent has property rangeParent and rangeOffset that help me to get the word under the mouse, but in webkit, i can only find which node under the mouse ,cannot find any position information inside the text node. for example, in the following html, i can only find the mouse stay on a HTMLDivElement and it's content is " Ap The ...", what i want is which word the mouse stay on. <div> AP The measure cleared a key hurdle on Monday when the Senate's newest Republican </div> why webkit doesn't provide these apis? thanks baizhenxuan
2010-03-02 baizhenxuan 发件人: webkit-dev-request 发送时间: 2010-03-01 23:00:13 收件人: webkit-dev 抄送: 主题: webkit-dev Digest, Vol 58, Issue 1 Send webkit-dev mailing list submissions to webkit-dev@lists.webkit.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev or, via email, send a message with subject or body 'help' to webkit-dev-requ...@lists.webkit.org You can reach the person managing the list at webkit-dev-ow...@lists.webkit.org When replying, please edit your Subject line so it is more specific than "Re: Contents of webkit-dev digest..." Today's Topics: 1. WebView & mouseMoved events (Alex MacCaw) 2. Reviewers Wanted: CSS3 Paged Media (Yuzo Fujishima) 3. Re: Reviewers Wanted: CSS3 Paged Media (Shinichiro Hamaji) ---------------------------------------------------------------------- Message: 1 Date: Sun, 28 Feb 2010 17:16:04 +0000 From: Alex MacCaw <macc...@gmail.com> To: webkit-dev@lists.webkit.org Subject: [webkit-dev] WebView & mouseMoved events Message-ID: <22fbd4b3-5798-49a5-b1e9-7e0ca9024...@gmail.com> Content-Type: text/plain; charset="us-ascii" Hi all, I'm having trouble with mouse moved events with Apple WebKit port. They're just not firing - and so I don't get any :hover css effects or js events. It looks like Apple aren't using the normal mouseMoved events, but rather send them through a NSNotificationCenter. I don't know where they're created, but I assume it''s something to do with 'WKSetNSWindowShouldPostEventNotifications'. Since that part of the project is closed, I can't see the source to find out why they're not being created. At the moment, I'm getting round the issue by firing them myself: http://github.com/maccman/bowline-desktop/commit/e4aa611373a2c76455566ff0dcf178a775b49756 Anyone know why mouse moved events wouldn't be created? I'd much rather do this the proper way, rather then hack round it. Thanks, Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20100228/922fce99/attachment-0001.html> ------------------------------ Message: 2 Date: Mon, 1 Mar 2010 19:51:24 +0900 From: Yuzo Fujishima <y...@google.com> To: WebKit Development <webkit-dev@lists.webkit.org> Cc: "Linss, Peter" <peter.li...@hp.com>, hay...@chromium.org Subject: [webkit-dev] Reviewers Wanted: CSS3 Paged Media Message-ID: <9124e09b1003010251k196245f6p9c5bf58a2dd45...@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Hi, webkit-dev (especially, reviewers), Shinichiro, Hayato, Peter, and I (all CC'ed) have started implementing CSS3 Paged Media (http://dev.w3.org/csswg/css3-page/). https://bugs.webkit.org/show_bug.cgi?id=15548 https://bugs.webkit.org/show_bug.cgi?id=35329 Reviewers, We'd appreciate it if one of you are interested in reviewing patches for CSS3 Paged Media. Anyone, please? Yuzo ------------------------------ Message: 3 Date: Mon, 1 Mar 2010 20:56:29 +0900 From: Shinichiro Hamaji <ham...@chromium.org> To: Yuzo Fujishima <y...@google.com> Cc: "Linss, Peter" <peter.li...@hp.com>, hay...@chromium.org, WebKit Development <webkit-dev@lists.webkit.org> Subject: Re: [webkit-dev] Reviewers Wanted: CSS3 Paged Media Message-ID: <dc751ec01003010356x6c4625ax7a9575b2afc5b...@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Note that we will review each other so it will make the main review a bit easier (hopefully!). I can also r+ easy patches but I'm not confident to review patches which touch deep WebCore stuff yet. On Mon, Mar 1, 2010 at 7:51 PM, Yuzo Fujishima <y...@google.com> wrote: > Hi, webkit-dev (especially, reviewers), > > Shinichiro, Hayato, Peter, and I (all CC'ed) have started implementing > CSS3 Paged Media (http://dev.w3.org/csswg/css3-page/). > > https://bugs.webkit.org/show_bug.cgi?id=15548 > https://bugs.webkit.org/show_bug.cgi?id=35329 > > Reviewers, > We'd appreciate it if one of you are interested in reviewing patches for > CSS3 Paged Media. Anyone, please? > > Yuzo > ------------------------------ _______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev End of webkit-dev Digest, Vol 58, Issue 1 *****************************************
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev