Re: [webkit-dev] onselectionchange when clicked on img

2013-02-15 Thread vineeth
I have filed the bug https://bugs.webkit.org/show_bug.cgi?id=110004 Thanks. --Vineeth On Fri, Feb 15, 2013 at 11:41 PM, Ryosuke Niwa wrote: > Possibly. Please file a bug with a reduction (simplest HTML where this > bug/behavior is observable) and cc me. > > > On Fri, Feb 15, 2013 at 3:22 AM, v

Re: [webkit-dev] onselectionchange when clicked on img

2013-02-15 Thread Ryosuke Niwa
Possibly. Please file a bug with a reduction (simplest HTML where this bug/behavior is observable) and cc me. On Fri, Feb 15, 2013 at 3:22 AM, vineeth wrote: > Hi, > Thanks for your reply. I think selectionchange isn't getting fired. I > created a simple page with some text and some images and a

Re: [webkit-dev] onselectionchange when clicked on img

2013-02-15 Thread vineeth
Hi, Thanks for your reply. I think selectionchange isn't getting fired. I created a simple page with some text and some images and added this event handler: document.onselectionchange=function(){ console.log('sel changed'); } Now when I click anywhere on a text region this function is called. Howe

Re: [webkit-dev] onselectionchange when clicked on img

2013-02-15 Thread Ryosuke Niwa
We should be firing selectionchange event. It's fired in FrameSelection::setSelection but our implementation of selectionchange event is asynchronous. On Fri, Feb 15, 2013 at 2:07 AM, vineeth wrote: > Hello, > I have a usecase in which I need document.onselectionchange to be fired > when I click

[webkit-dev] onselectionchange when clicked on img

2013-02-15 Thread vineeth
Hello, I have a usecase in which I need document.onselectionchange to be fired when I click on an img, the way it happens for text nodes. Can someone pls help the function/class to look into. I am currently going through EventHandler.cpp and EventHandler::updateSelectionForMouseDownDispatchingSelec