servo/components/compositing
bors-servo 1706ffd6e5 Auto merge of #14141 - samuknet:home-end-key-scroll2, r=glennw
Implement home end key scrolling

<!-- Please describe your changes on the following line: -->
* Refactor all scroll related code to use a new `ScrollLocation` struct which can either be a `delta` (as before) or a `Start` or `End` request, to represent the desire to scroll to the start and end of the page.
Effectively, everywhere a delta was used, there is now a `ScrollLocation` struct instead.

* Add key press listeners for HOME and END keys so as to cause a scroll to be queued with `ScrollLocation::Start` (in HOME case) or `ScrollLocation::End` (in END case).

* These changes depend on added support for the new `ScrollLocation` in webrender and webrender_traits. See https://github.com/servo/webrender/pull/540.

---
<!-- 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
- [ x] These changes fix #13082 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because scrolling I/O

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/14141)
<!-- Reviewable:end -->
2017-01-23 07:26:00 -08:00
..
Cargo.toml Update image. 2017-01-11 14:37:17 +01:00
compositor.rs Auto merge of #14141 - samuknet:home-end-key-scroll2, r=glennw 2017-01-23 07:26:00 -08:00
compositor_thread.rs Add support for fullscreen #10102 2016-12-09 11:45:50 +01:00
delayed_composition.rs Move util::time::duration_from_nanoseconds to its only caller 2016-06-29 18:00:21 +02:00
lib.rs Upgrade to rustc 1.16.0-nightly (6f1ae663e 2017-01-06) 2017-01-06 17:43:31 +01:00
touch.rs Move DevicePixel to script_traits. 2017-01-11 15:27:14 +01:00
windowing.rs Implement home end key scroll. 2017-01-23 13:38:10 +00:00