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
Created attachment 173603 [details] Patch
Comment on attachment 173603 [details] Patch r=me
Comment on attachment 173603 [details] Patch Clearing flags on attachment: 173603 Committed r134253: <http://trac.webkit.org/changeset/134253>
All reviewed patches have been landed. Closing bug.