[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::updateSelectionForMouseDownDispatchingSelectStart but haven't
made much progress.

Thanks.
--Vineeth
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


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 nvine...@gmail.com wrote:

 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::updateSelectionForMouseDownDispatchingSelectStart but
 haven't made much progress.

 Thanks.
 --Vineeth

 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 https://lists.webkit.org/mailman/listinfo/webkit-dev


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


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. However
clicking on a image isn't firing this event. I tried the above experiment
on chrome  24.0.1312.57 m

Is this a bug and should I file a bug report for this?
If I need to add this behavior which classes should I look into?

Thanks.

--Vineeth


On Fri, Feb 15, 2013 at 3:42 PM, Ryosuke Niwa rn...@webkit.org wrote:

 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 nvine...@gmail.com wrote:

 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::updateSelectionForMouseDownDispatchingSelectStart but
 haven't made much progress.

 Thanks.
 --Vineeth

 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 https://lists.webkit.org/mailman/listinfo/webkit-dev



___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


[webkit-dev] Testing feature suggestion: Custom measurable data @ Performance Tests

2013-02-15 Thread Bruno Abinader
Hi all,

I'd like to suggest us to provide ways to aggregate custom measurable data
to Performance Test results (i.e. as seen on perf-o-matic tool). As example
of a custom measurable data, I'd suggest counting the amount of OpenGL
context-summarized calls per frame. This kind of data is useful when
evaluating performance impact of changes related to hardware-accelerated
drawing code (i.e. TextureMapperLayer). Along with this example, other
OpenGL-related data also apply (no. of state changes - specially talking
about the redundant ones). I'm aware each platform may or may not benefit
much from lesser OpenGL calls, but as a general guide, the lesser the
better.

This kind of information can be obtained with tools like apitrace [1], for
instance (at least on Linux), but may also be provided from other tools
depending on the platform. As done in WebCore/WebKit, platofrm-specific
implementations of the data logger can share a common interface. I haven't
analyzed the perftestsrunner code to check if a similar approach to custom
data is already available, so I'd kindly ask for your feedback on the
subject (whether it seems like a valid approach).

Best regards,

Links:
[1] http://apitrace.github.com

-- 
Bruno de Oliveira Abinader
Software Engineer @ basysKom GmbH
WebKit committer / Nokia Certified Qt Specialist
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


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 nvine...@gmail.com 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 added this event
 handler:
 document.onselectionchange=function(){ console.log('sel changed'); }

 Now when I click anywhere on a text region this function is called.
 However clicking on a image isn't firing this event. I tried the above
 experiment on chrome  24.0.1312.57 m

 Is this a bug and should I file a bug report for this?
 If I need to add this behavior which classes should I look into?

 Thanks.

 --Vineeth


 On Fri, Feb 15, 2013 at 3:42 PM, Ryosuke Niwa rn...@webkit.org wrote:

 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 nvine...@gmail.com wrote:

 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::updateSelectionForMouseDownDispatchingSelectStart but
 haven't made much progress.

 Thanks.
 --Vineeth

 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 https://lists.webkit.org/mailman/listinfo/webkit-dev




___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


[webkit-dev] Access WebKit Rendering pixel data

2013-02-15 Thread Michael Chen
Hi All,

I am new to WebKit. Is it possible to get a raw pointer to the WebKit rendering 
buffer? 

I appreciate any comments.

Best regards,
Michael___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


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 rn...@webkit.org 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, vineeth nvine...@gmail.com 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 added this event
 handler:
 document.onselectionchange=function(){ console.log('sel changed'); }

 Now when I click anywhere on a text region this function is called.
 However clicking on a image isn't firing this event. I tried the above
 experiment on chrome  24.0.1312.57 m

 Is this a bug and should I file a bug report for this?
 If I need to add this behavior which classes should I look into?

 Thanks.

 --Vineeth


 On Fri, Feb 15, 2013 at 3:42 PM, Ryosuke Niwa rn...@webkit.org wrote:

 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 nvine...@gmail.com wrote:

 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::updateSelectionForMouseDownDispatchingSelectStart but
 haven't made much progress.

 Thanks.
 --Vineeth

 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 https://lists.webkit.org/mailman/listinfo/webkit-dev





___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev