servo/components
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
..
allocator
atoms Media element duration param 2018-10-08 16:12:03 +02:00
bluetooth Make mach test-unit not recompile components after mach build 2018-10-07 13:27:23 +02:00
bluetooth_traits Make mach test-unit not recompile components after mach build 2018-10-07 13:27:23 +02:00
canvas Auto merge of #21725 - pyfisch:update-wr, r=jdm 2018-10-12 12:49:23 -04:00
canvas_traits Share some code between 2D canvas and WebGL 2018-10-09 14:57:02 +02:00
channel add servo_channel crate 2018-09-12 11:25:45 +08:00
compositing Make mach test-unit not recompile components after mach build 2018-10-07 13:27:23 +02:00
config Make mach test-unit not recompile components after mach build 2018-10-07 13:27:23 +02:00
constellation Provide webrender_api::RenderApiSender to ScriptThread and DOM Window 2018-10-08 16:11:59 +02:00
debugger Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
deny_public_fields
devtools DevTools - add Emulation Actor 2018-10-15 08:48:30 +02:00
devtools_traits Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
dom_struct
domobject_derive
embedder_traits Make mach test-unit not recompile components after mach build 2018-10-07 13:27:23 +02:00
fallible Partially revert #21746. 2018-09-22 18:51:42 +02:00
geometry
gfx Fix windows build errors. 2018-10-11 22:34:33 -04:00
gfx_traits Format gfx_traits #21373 2018-09-09 10:11:08 +08:00
hashglobe Format hashglobe #21373 2018-09-09 10:14:36 +08:00
jstraceable_derive Format jstraceable_derive #21373 2018-09-10 11:03:38 +08:00
layout style: More useful logging for transition-related stuff. 2018-10-15 14:50:13 +02:00
layout_thread Make layout use available image data before querying the image cache. 2018-10-12 21:55:09 -04:00
layout_traits Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
malloc_size_of Update webrender to 923ee495bd9b0fda8a4a94c5a6cf42e2f0548731. 2018-10-09 18:23:19 -04:00
malloc_size_of_derive
metrics Auto merge of #21325 - gterzian:crossbeam_integration, r=SimonSapin,jdm 2018-09-12 13:33:45 -04:00
msg Format msg #21373 2018-09-11 15:04:55 +08:00
net Auto merge of #21877 - servo:webgl, r=jdm 2018-10-09 20:15:40 -04:00
net_traits Remove Origin::unicode_serialization 2018-10-12 10:25:03 +02:00
pixels Share some code between 2D canvas and WebGL 2018-10-09 14:57:02 +02:00
profile Add support for IpcBytesReceiver in profile_traits::ipc - #21704 2018-09-20 21:36:34 -04:00
profile_traits Add support for IpcBytesReceiver in profile_traits::ipc - #21704 2018-09-20 21:36:34 -04:00
rand
range format components/range using rustfmt 2018-09-12 12:32:31 +05:30
remutex format components/remutex 2018-09-12 12:37:11 +05:30
script Auto merge of #21923 - est31:master, r=ferjm 2018-10-16 01:23:08 -04:00
script_layout_interface Make layout use available image data before querying the image cache. 2018-10-12 21:55:09 -04:00
script_plugins Format components/script_plugins 2018-09-13 01:01:35 +09:00
script_traits Rustfmt and make tidy happy 2018-10-08 16:12:03 +02:00
selectors Partially revert #21746. 2018-09-22 18:51:42 +02:00
servo Update webrender to 923ee495bd9b0fda8a4a94c5a6cf42e2f0548731. 2018-10-09 18:23:19 -04:00
servo_arc Fix tidy issues. 2018-09-18 11:46:01 +02:00
size_of_test Format component size_of_test 2018-09-10 21:31:38 +09:00
std_test_override Make mach test-unit not recompile components after mach build 2018-10-07 13:27:23 +02:00
style Auto merge of #20757 - emilio:animations, r=jdm 2018-10-15 19:03:07 -04:00
style_derive style: Teach ComputeSquaredDistance derive about #[animation(constant)]. 2018-09-15 17:56:41 +02:00
style_traits Format component of style_traits 2018-09-08 13:28:13 +09:00
url Remove Origin::unicode_serialization 2018-10-12 10:25:03 +02:00
webdriver_server Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
webvr Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
webvr_traits Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00