servo/components/script
bors-servo aa9141277e Auto merge of #11906 - asajeffrey:textinput-ok-selection, r=ConnorGBrewster
Added checks that selection is valid, and fix set_selection_range.

<!-- Please describe your changes on the following line: -->

Fixed range checking for text inputs. Included some `debug_assert!` statements to check that the selection range is always valid.

---
<!-- 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 #11901.
- [X] These changes do not require tests because the code includes debug_asserts to ensure invariants are maintained.

<!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11906)
<!-- Reviewable:end -->
2016-06-29 12:36:01 -05:00
..
docs
dom Auto merge of #11913 - jdm:stylesheet-error, r=Ms2ger 2016-06-29 11:42:40 -05:00
parse Replace HTMLScriptElement::mark_script_already_started by set_script_already_started 2016-06-03 01:31:52 +02:00
task_source Derive Clone for DOMManipulationTaskSource, UserInteractionTaskSource. 2016-06-03 09:33:18 +02:00
bluetooth_blacklist.rs Add WebBluetooth Blacklist support 2016-05-31 17:05:45 +02:00
build.rs
Cargo.toml Use nightly feature of webrender_traits 2016-06-28 23:50:48 +02:00
clipboard_provider.rs Remove ConstellationChan. 2016-05-19 17:13:44 +02:00
devtools.rs Make the net monitor panel in FF's devtools show meaningful output. 2016-06-06 00:51:36 +01:00
document_loader.rs Add file backend support for Blob and related 2016-06-01 09:47:07 +08:00
layout_wrapper.rs Use our copy of RefCell for style data. 2016-06-23 16:13:49 +02:00
lib.rs Use common cookie struct add cookie webdriver cmds 2016-06-25 22:24:35 +00:00
makefile.cargo
mem.rs Bump heapsize to 0.3 2016-02-13 11:13:19 +01:00
network_listener.rs Test fixes; update for changes in spec 2016-06-10 20:55:25 +05:30
origin.rs Make script origins sendable and immutable. 2016-05-27 17:16:13 +02:00
script_runtime.rs Wrap executions of Rust code called from JS in catch_unwind. Propagate the interrupted panic to the origin of the JS execution via TLS before resuming. Fix #6462. 2016-06-22 09:35:19 -04:00
script_thread.rs style: Rewrite the animation representation to allow having state in layout 2016-06-28 15:09:53 +00:00
textinput.rs Added checks that selection is valid, and fix set_selection_range. 2016-06-29 07:24:19 -05:00
timers.rs Auto merge of #10225 - jmr0:visibility_api, r=jdm 2016-06-16 08:53:56 -05:00
unpremultiplytable.rs
webdriver_handlers.rs Use common cookie struct add cookie webdriver cmds 2016-06-25 22:24:35 +00:00