diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-08-11 05:34:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-11 05:34:27 -0500 |
commit | 4cefbcc94927a1c7cf12b188c4abbd63d7636e3d (patch) | |
tree | 94a2eef3663da242fc332f22a253b21397c98c81 /components/layout/query.rs | |
parent | b7facf41cbc7ba727666e95fd0c390d432d862fa (diff) | |
parent | f9c0f2df13dcb2869c1fd03597ff91ded0de2748 (diff) | |
download | servo-4cefbcc94927a1c7cf12b188c4abbd63d7636e3d.tar.gz servo-4cefbcc94927a1c7cf12b188c4abbd63d7636e3d.zip |
Auto merge of #12813 - emilio:hit-test, r=notriddle
dom: getElementsFromPoint does the hit testing on viewport coordinates.
<!-- Please describe your changes on the following line: -->
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
<!-- Either: -->
- [x] There are tests for these changes OR
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
We got this wrong (I think it wasn't my fault actually), I was just writing a test for #12777 when I found this.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12813)
<!-- Reviewable:end -->
Diffstat (limited to 'components/layout/query.rs')
-rw-r--r-- | components/layout/query.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/layout/query.rs b/components/layout/query.rs index d8742973460..3f45941e93a 100644 --- a/components/layout/query.rs +++ b/components/layout/query.rs @@ -148,7 +148,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) } }; |