servo/components/script
bors-servo f24f517965
Auto merge of #23272 - tdelacour:ISSUE-20455, r=SimonSapin
ISSUE-20455: introduce stronger types for textinput indexing

<!-- Please describe your changes on the following line: -->
Added two new types:
- ByteOffset
- UTF16CodeUnitOffset

I've replaced any instance of `usize` that would be better represented by one or the other of these. I also updated any downstream code, including the unit tests for `textinput.rs`. Along the way, I tried to add or edit comments to better reflect my understanding of this file - happy to revisit if I have misrepresented anything.

I did not end up finding any places where types were very obviously being mixed, as the issue description suggested I should do... LMK if I should re-audit the file for that (might need a bit of guidance)!

---
<!-- 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 #20455 (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/23272)
<!-- Reviewable:end -->
2019-05-23 12:01:29 -04:00
..
docs
dom Auto merge of #23272 - tdelacour:ISSUE-20455, r=SimonSapin 2019-05-23 12:01:29 -04:00
task_source Update MPL license to https (part 3) 2018-11-19 14:47:12 +01:00
body.rs Pass InCompartment by value 2019-04-25 11:37:35 +02:00
build.rs Auto merge of #23211 - jdm:win-cross, r=SimonSapin 2019-04-26 08:55:28 -04:00
Cargo.toml Revert "Glutin update: dependencies update" 2019-05-22 14:18:38 -04:00
clipboard_provider.rs Update MPL license to https (part 3) 2018-11-19 14:47:12 +01:00
CMakeLists.txt
compartments.rs Update to SpiderMonkey 66. 2019-05-10 22:43:43 -04:00
devtools.rs Update to SpiderMonkey 66. 2019-05-10 22:43:43 -04:00
document_loader.rs Auto merge of #23183 - krk:fix-23144, r=asajeffrey 2019-04-11 14:33:44 -04:00
fetch.rs Auto merge of #23351 - CYBAI:fix-modes, r=nox 2019-05-16 00:19:40 -04:00
image_listener.rs Implement HTMLMediaElement poster attribute 2019-01-11 17:11:11 +01:00
layout_image.rs Implementing the builder pattern for RequestInit 2019-04-10 14:01:30 -03:00
lib.rs Auto merge of #23253 - BartGitHub:refactor-promise-compartment, r=jdm 2019-04-29 13:59:04 -04:00
mem.rs Update MPL license to https (part 3) 2018-11-19 14:47:12 +01:00
microtask.rs Update MPL license to https (part 3) 2018-11-19 14:47:12 +01:00
network_listener.rs Create resource timing entry for sync network fetch 2019-05-08 17:33:39 +02:00
script_runtime.rs Update to SpiderMonkey 66. 2019-05-10 22:43:43 -04:00
script_thread.rs Auto merge of #23171 - hundredeir:find_elem_elems, r=jdm 2019-05-19 15:25:07 -04:00
serviceworker_manager.rs #8539 Config preferences backend restructure 2019-03-20 15:01:26 +00:00
serviceworkerjob.rs Update Worker webidl to support WorkerOptions 2019-05-11 12:14:25 +09:00
stylesheet_loader.rs Rename shadow_root_from_node to containing_shadow_root 2019-04-26 12:00:26 +02:00
stylesheet_set.rs Move StylesheetSetRef to script 2019-04-26 12:00:26 +02:00
task.rs Update MPL license to https (part 3) 2018-11-19 14:47:12 +01:00
task_manager.rs Update MPL license to https (part 3) 2018-11-19 14:47:12 +01:00
task_queue.rs in BC event-loop, only run tasks related to fully-active documents 2019-03-06 14:18:18 +08:00
test.rs Update MPL license to https (part 3) 2018-11-19 14:47:12 +01:00
textinput.rs PR #23272 review nits 2019-05-22 19:59:33 +02:00
timers.rs #8539 Config preferences backend restructure 2019-03-20 15:01:26 +00:00
unpremultiplytable.rs Update MPL license to https (part 3) 2018-11-19 14:47:12 +01:00
vcvars.bat Add Windows x86 build job. 2019-04-26 08:54:24 -04:00
webdriver_handlers.rs Auto merge of #23171 - hundredeir:find_elem_elems, r=jdm 2019-05-19 15:25:07 -04:00