WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
101915
hitTestResultAtPoint does two hit-tests if called on non main frame
https://bugs.webkit.org/show_bug.cgi?id=101915
Summary
hitTestResultAtPoint does two hit-tests if called on non main frame
Allan Sandfeld Jensen
Reported
2012-11-12 03:07:09 PST
EventHandler::hitTestResultAtPoint performs a second hit-test if it hits something and it was not started on the main-frame. Due to another quirk in RenderLayer hit-tests will in most cases pretend to hit the frame. This leads to not only needlessly performing multiple test, but having rare cases where the returned empty result is not performed from the perspective of the main frame. Changing the logic to always redirect to the main-frame will save one of the hit-tests in most cases, and simplify the hitTestResult to always being started in the context of the main-frame. The last part is needed to clarify the hitTestResult interface in
bug #98139
Attachments
Patch
(3.70 KB, patch)
2012-11-12 03:21 PST
,
Allan Sandfeld Jensen
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Allan Sandfeld Jensen
Comment 1
2012-11-12 03:21:54 PST
Created
attachment 173603
[details]
Patch
Antonio Gomes
Comment 2
2012-11-12 05:41:39 PST
Comment on
attachment 173603
[details]
Patch r=me
WebKit Review Bot
Comment 3
2012-11-12 10:13:42 PST
Comment on
attachment 173603
[details]
Patch Clearing flags on attachment: 173603 Committed
r134253
: <
http://trac.webkit.org/changeset/134253
>
WebKit Review Bot
Comment 4
2012-11-12 10:13:45 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug