RESOLVED FIXED 40131
[GTK] Add inner-node property to WebKitHitTestResult
https://bugs.webkit.org/show_bug.cgi?id=40131
Summary [GTK] Add inner-node property to WebKitHitTestResult
Xan Lopez
Reported Thursday, June 3, 2010 7:21:07 PM UTC
Carries the DOM node where the hit test happened.
Attachments
innernode.diff (8.57 KB, patch)
2010-06-03 11:23 PDT, Xan Lopez
xan.lopez: commit-queue-
innernode.diff (8.57 KB, patch)
2010-06-03 11:31 PDT, Xan Lopez
xan.lopez: commit-queue-
Xan Lopez
Comment 1 Thursday, June 3, 2010 7:23:01 PM UTC
Created attachment 57793 [details] innernode.diff Patch
WebKit Review Bot
Comment 2 Thursday, June 3, 2010 7:23:47 PM UTC
Attachment 57793 [details] did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style', '--no-squash']" exit_code: 1 WebKit/gtk/webkit/webkithittestresult.cpp:212: Missing spaces around | [whitespace/operators] [3] WARNING: File exempt from style guide. Skipping: "WebKit/gtk/tests/testhittestresult.c" Total errors found: 1 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Xan Lopez
Comment 3 Thursday, June 3, 2010 7:31:38 PM UTC
Created attachment 57794 [details] innernode.diff Fix style nit.
Shaun McCance
Comment 4 Friday, June 4, 2010 8:41:29 PM UTC
Thanks, Xan. This works well for the stuff I'm doing in Yelp. What needs to be done before it can be committed?
Gustavo Noronha (kov)
Comment 5 Monday, June 7, 2010 7:04:26 PM UTC
Comment on attachment 57794 [details] innernode.diff  199 * The DOM node at the coordinates where the hit test  200 * happened. Keep in mind that the node might not be  201 * representative of the information given in the context  202 * property, since WebKit uses a series of heuristics to figure  203 * out that information. I think this needs an example to be better understood. I believe this means we might not be returning an <img> node, even though the hit test result has information about the hit being in an image. I think this example, or even use the example you used in the test (innert text node vs anchor element).
Xan Lopez
Comment 6 Tuesday, June 8, 2010 12:26:14 PM UTC
Comment on attachment 57794 [details] innernode.diff Pushed with the example you suggested as r60834
Xan Lopez
Comment 7 Tuesday, June 8, 2010 12:26:30 PM UTC
Closing.
Note You need to log in before you can comment on or make changes to this bug.