Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make ShadowRoot.elementsFromPoint always return document element
Currently in some cases, ShadowRoot.elementsFromPoint may not return the document element even when Document.elementsFromPoint returns the document element such as when the document element height is shorter than the hit-tested element's position. This CL fixes it by removing a check in TreeScope::ElementsFromHitTestResult. See example live case detailed in this comment: https://bugs.chromium.org/p/chromium/issues/detail?id=843215#c16 Bug: 843215 Change-Id: I5b774d1a091f3c3f72345c55bca188fad309ba58 Reviewed-on: https://chromium-review.googlesource.com/1131023 Commit-Queue: Rakina Zata Amni <rakina@chromium.org> Reviewed-by: Hayato Ito <hayato@chromium.org> Cr-Commit-Position: refs/heads/master@{#574104}
- Loading branch information