servo/components/script
bors-servo 1652fe2a91
Auto merge of #21923 - est31:master, r=ferjm
🐈🐈🐈 Implement basic <source> take-first-then-fail algo for HtmlMediaElement

The spec has a complicated algorithm for selecting a <source>
element among multiple <source> children of a HtmlMediaElement
where it loops over all of them, tries each and takes the first
where "everything works out".

This PR implements a much simpler and restricted approach by
just taking the first <source> child, and if that fails,
failing altogether, without looking at any further children.

This is an improvement over the current status and makes gifv
items on imgur playable, although it doesn't mean full <source>
support.

See it in action: https://i.imgur.com/WoEhYj3.gifv

<!-- 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/21923)
<!-- Reviewable:end -->
2018-10-16 01:23:08 -04:00
..
docs Rename Root<T> to DomRoot<T> 2017-09-26 09:49:10 +02:00
dom Auto merge of #21923 - est31:master, r=ferjm 2018-10-16 01:23:08 -04:00
task_source Add task source for media element 2018-10-10 22:15:37 +09:00
body.rs Format script component 2018-09-19 17:40:47 -04:00
build.rs Format script component 2018-09-19 17:40:47 -04:00
Cargo.toml Auto merge of #21877 - servo:webgl, r=jdm 2018-10-09 20:15:40 -04:00
clipboard_provider.rs
CMakeLists.txt build(cmake): detect python binary for specified version 2018-03-13 09:25:06 -07:00
devtools.rs Format script component 2018-09-19 17:40:47 -04:00
document_loader.rs Format script component 2018-09-19 17:40:47 -04:00
fetch.rs Format script component 2018-09-19 17:40:47 -04:00
layout_image.rs Format script component 2018-09-19 17:40:47 -04:00
lib.rs Auto merge of #21877 - servo:webgl, r=jdm 2018-10-09 20:15:40 -04:00
mem.rs Format script component 2018-09-19 17:40:47 -04:00
microtask.rs Format script component 2018-09-19 17:40:47 -04:00
network_listener.rs
script_runtime.rs Format script component 2018-09-19 17:40:47 -04:00
script_thread.rs Add task source for media element 2018-10-10 22:15:37 +09:00
serviceworker_manager.rs Format script component 2018-09-19 17:40:47 -04:00
serviceworkerjob.rs Format script component 2018-09-19 17:40:47 -04:00
stylesheet_loader.rs Format script component 2018-09-19 17:40:47 -04:00
task.rs Format script component 2018-09-19 17:40:47 -04:00
task_queue.rs Format script component 2018-09-19 17:40:47 -04:00
test.rs Remove unused code for parsing a sizes attribute. 2018-07-01 10:53:42 +02:00
textinput.rs Format script component 2018-09-19 17:40:47 -04:00
timers.rs Format script component 2018-09-19 17:40:47 -04:00
unpremultiplytable.rs Format script component 2018-09-19 17:40:47 -04:00
webdriver_handlers.rs Format script component 2018-09-19 17:40:47 -04:00