Web Automation: Fix element and event coord space issues
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 16 Jul 2016 01:19:21 +0000 (01:19 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 16 Jul 2016 01:19:21 +0000 (01:19 +0000)
commit581d369d970e9306b87a2acd282e148cb294c4b7
tree2fb063a409c1e97353725c2ecb5aa4e658a8e328
parent6dc285092c5f382ed5d4ef97fe402e9ecd671de9
Web Automation: Fix element and event coord space issues
https://bugs.webkit.org/show_bug.cgi?id=159851
rdar://problem/27375780

Reviewed by Brian Burg.

* UIProcess/Automation/WebAutomationSession.cpp:
(WebKit::WebAutomationSession::performMouseInteraction): Subtract topContentInset() before
it goes back out to WebDriver.
* WebProcess/Automation/WebAutomationSessionProxy.cpp:
(WebKit::WebAutomationSessionProxy::computeElementLayout): When using useViewportCoordinates,
subtract topContentInset() so it matches expectations.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@203316 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/Automation/WebAutomationSession.cpp
Source/WebKit2/WebProcess/Automation/WebAutomationSessionProxy.cpp