[chromedriver] Handle shadow root in GetElementLocation
Previously, inView in GetElementLocation only checks for elements directly under document to see if the point includes the element under document. However, this does not handle element in shadow DOM. The change is to check shadow root includes the element at the point traversing all the way up to document. Bug: chromedriver:3708 Change-Id: I78cafc847fee3ec4ad850cfaaea66b2f301aa600 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2638653Reviewed-by:John Chen <johnchen@chromium.org> Commit-Queue: Shengfa Lin <shengfa@google.com> Cr-Commit-Position: refs/heads/master@{#845215}
Showing
Please register or sign in to comment