dom: getElementsFromPoint does the hit testing on viewport coordinates.

We got this wrong, I was just writing a test for #12777 when I found this.
This commit is contained in:
Emilio Cobos Álvarez 2016-08-10 19:33:40 -07:00
parent 3c7de6b821
commit f9c0f2df13
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 56 additions and 6 deletions

View file

@ -147,7 +147,9 @@ impl LayoutRPC for LayoutRPCImpl {
let result = match rw_data.display_list {
None => panic!("Tried to hit test without a DisplayList"),
Some(ref display_list) => {
display_list.hit_test(&page_point, &client_point, &rw_data.stacking_context_scroll_offsets)
display_list.hit_test(&page_point,
&client_point,
&rw_data.stacking_context_scroll_offsets)
}
};