servo/components/script
bors-servo e196776c24 Auto merge of #16807 - mrobinson:scroll-clamping, r=emilio
Fix clamping of scroll position in window.scrollBy

For rightward and downward overflow the spec says:

Let x be max(0, min(x, viewport scrolling area width - viewport width)).
Let y be max(0, min(y, viewport scrolling area height - viewport height)).

Previously, those operations were reversed, which created negative
overflow even when the overflow direction was downward. This change
ensures that Servo matches spec behavior.

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

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

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- 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/16807)
<!-- Reviewable:end -->
2017-05-11 13:23:39 -05:00
..
docs
dom Auto merge of #16807 - mrobinson:scroll-clamping, r=emilio 2017-05-11 13:23:39 -05:00
task_source
body.rs
build.rs
Cargo.toml Auto merge of #16706 - alicemaz:master, r=nox 2017-05-04 06:08:37 -05:00
clipboard_provider.rs
CMakeLists.txt
devtools.rs Added some same-origin-domain checks. 2017-03-14 14:36:03 -05:00
document_loader.rs Remove mutability requirement from fetch_async_background. 2017-02-28 10:23:23 -05:00
fetch.rs Remove all internal mutability from Request 2017-04-03 12:39:07 +02:00
layout_image.rs Make image cache per-document rather than global 2017-03-27 19:54:13 +02:00
layout_wrapper.rs Bug 1355343: Take all the snapshots into account. r=bholley 2017-05-10 12:05:39 +02:00
lib.rs Upgrade to html5ever 0.16 2017-05-02 19:24:28 +02:00
mem.rs
microtask.rs
network_listener.rs
script_runtime.rs Update rust-mozjs to master. 2017-03-31 14:40:38 -04:00
script_thread.rs added origin to globalscope 2017-04-24 13:15:42 +01:00
serviceworker_manager.rs
serviceworkerjob.rs
stylesheet_loader.rs Fix up script and layout. 2017-05-02 17:35:45 -07:00
test.rs
textinput.rs Auto merge of #15822 - charlesvdv:unicode-panic, r=emilio 2017-04-16 15:08:59 -05:00
timers.rs Terminate timer scheduler thread during shutdown 2017-03-30 14:27:40 +02:00
unpremultiplytable.rs
webdriver_handlers.rs Update Hyper and OpenSSL 2017-03-31 16:32:21 +02:00