Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
WebDriver: Get Element Rect should not round to integer values
https://bugs.webkit.org/show_bug.cgi?id=248556 rdar://100588620 Reviewed by BJ Burg. The x/y/width/height of the element rect is specified to be in "CSS Pixels", which is a decimal number of pixels. We should as such not round to the nearest containing IntRect. This progresses the following WPT tests: webdriver/tests/get_element_rect/get.py::test_basic webdriver/tests/get_element_rect/user_prompts.py::test_accept[capabilities0-alert-None] webdriver/tests/get_element_rect/user_prompts.py::test_accept[capabilities0-confirm-True] webdriver/tests/get_element_rect/user_prompts.py::test_accept[capabilities0-prompt-] webdriver/tests/get_element_rect/user_prompts.py::test_dismiss[capabilities0-alert-None] webdriver/tests/get_element_rect/user_prompts.py::test_dismiss[capabilities0-confirm-False] webdriver/tests/get_element_rect/user_prompts.py::test_dismiss[capabilities0-prompt-None] * Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp: (WebKit::WebAutomationSession::computeElementLayout): (WebKit::WebAutomationSession::viewportInViewCenterPointOfElement): * Source/WebKit/WebProcess/Automation/WebAutomationSessionProxy.cpp: (WebKit::WebAutomationSessionProxy::computeElementLayout): * Source/WebKit/WebProcess/Automation/WebAutomationSessionProxy.h: * Source/WebKit/WebProcess/Automation/WebAutomationSessionProxy.messages.in: Canonical link: https://commits.webkit.org/257498@main
- Loading branch information
Showing
4 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters