Commit graph

37935 commits

Author SHA1 Message Date
Josh Matthews
962a2a0afa Use openssl dependency that works on arm64. 2019-07-23 09:00:41 -04:00
bors-servo
fdbb317d7a
Auto merge of #23774 - sreeise:media_fragment_parser, r=ferjm
Media fragment parser

<!-- Please describe your changes on the following line: -->
Media fragment parser for audio and video.

---
<!-- 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 #22366 (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/23774)
<!-- Reviewable:end -->
2019-07-23 05:00:01 -04:00
bors-servo
e2903bcebf
Auto merge of #23790 - paulrouget:hl2, r=angelortiz1007,jdm
HoloLens app - winrt/immersive rewrite

This is a complete rewrite of the app in C++ winrt. It includes a immersive view (use D3D and doesn't render any servo content yet).

<!-- 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/23790)
<!-- Reviewable:end -->
2019-07-23 02:53:40 -04:00
sreeise
dc11219496 Media fragment parser 2019-07-22 21:39:55 -04:00
bors-servo
42b6b18f76
Auto merge of #23208 - ferjm:media.ui, r=emilio,jdm
Media controls

<strike>This is still highly WIP. It depends on #22743 and so it is based on top of it.

The basic controls functionality is there, but the layout is highly broken. There is a hack to at least make the controls render on top of the video, but it is not correctly positioned. The controls' div container ends up as sibbling of the media element in the flow tree while IIUC it should end up as a child.</strike>

- [X] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [X] These changes fix #22721 and fix #22720

There is at least an extra dependency to improve the functionality and visual aspect: #22728.

<!-- 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/23208)
<!-- Reviewable:end -->
2019-07-22 21:33:47 -04:00
bors-servo
28f7a87186
Auto merge of #23568 - jdm:more-updates, r=nox
Remove some duplicate dependencies

<!-- 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/23568)
<!-- Reviewable:end -->
2019-07-22 12:42:32 -04:00
Fernando Jiménez Moreno
388bb453b7 Add default case to MediaControls.onControlEvent switch 2019-07-22 17:40:17 +02:00
Fernando Jiménez Moreno
a3d0d95b61 Moar detach shadow improvements 2019-07-22 17:40:17 +02:00
Fernando Jiménez Moreno
590ac0b937 Format media controls JS with prettier 2019-07-22 17:40:17 +02:00
Fernando Jiménez Moreno
ef5ded943c Remove event listeners if controls are removed 2019-07-22 17:40:17 +02:00
Fernando Jiménez Moreno
ef02196dd8 More detach shadow changes 2019-07-22 17:40:17 +02:00
Fernando Jiménez Moreno
d4be72d386 Naming and minor JS nits fixed 2019-07-22 17:40:17 +02:00
Fernando Jiménez Moreno
36aeae2eae Use formatTime for initial currentTime and duration values 2019-07-22 17:40:16 +02:00
Fernando Jiménez Moreno
04a40138d0 Use Number.isFinite() to check position percentage 2019-07-22 17:40:16 +02:00
Fernando Jiménez Moreno
87bee50c20 Add span for position text node 2019-07-22 17:40:16 +02:00
Fernando Jiménez Moreno
cf9f46ba35 Use template literals for 'formatTime' 2019-07-22 17:40:16 +02:00
Fernando Jiménez Moreno
a8419c4a86 Fix media-controls resources naming 2019-07-22 17:40:16 +02:00
Fernando Jiménez Moreno
1f3c879a85 Detach shadow clean up 2019-07-22 17:40:16 +02:00
Fernando Jiménez Moreno
f8ae394cad Remove extra hash-map lookup unregistering media controls 2019-07-22 17:40:16 +02:00
Fernando Jiménez Moreno
5aba6d5bbb Update test expectations 2019-07-22 17:40:16 +02:00
Fernando Jiménez Moreno
5c39097edd Remove unused ShadowRoot constructor argument 2019-07-22 17:40:16 +02:00
Fernando Jiménez Moreno
1621076af7 Revert change to render media controls breaking inline layout 2019-07-22 17:40:16 +02:00
Fernando Jiménez Moreno
e344203c11 Only allow UA widgets as children of media elements
Do not allow pseudo-elements for replaced elements
2019-07-22 17:40:15 +02:00
Fernando Jiménez Moreno
618f528344 Render audio controls 2019-07-22 17:40:15 +02:00
Fernando Jiménez Moreno
428d3b896c Set initial controls state based on media element state 2019-07-22 17:40:15 +02:00
Fernando Jiménez Moreno
23def72787 Implement method to remove media controls 2019-07-22 17:40:15 +02:00
Fernando Jiménez Moreno
142d42a833 Revert changes to load media styles as UA styles
Revert changes to set chrome url of user agent widget styles
2019-07-22 17:40:15 +02:00
Fernando Jiménez Moreno
82339a9295 Do not try to render controls if they are already rendered 2019-07-22 17:40:15 +02:00
Fernando Jiménez Moreno
3a99c6ba6a Do not render controls until we have metadata 2019-07-22 17:40:15 +02:00
Fernando Jiménez Moreno
f16cf2d6a4 Expose HTMLMediaElement.controls 2019-07-22 17:40:15 +02:00
Fernando Jiménez Moreno
eccf738b09 Switch to dark background and white icons 2019-07-22 17:40:15 +02:00
Fernando Jiménez Moreno
9496dff529 Anchor controls inside bottom of video element 2019-07-22 17:40:14 +02:00
Fernando Jiménez Moreno
8a4d54af0b Add progress percentage as input range 2019-07-22 17:40:14 +02:00
Fernando Jiménez Moreno
aad5b23e2b Use input instead of change for volume control 2019-07-22 17:40:14 +02:00
Fernando Jiménez Moreno
a664449681 Media UI basic functionality 2019-07-22 17:40:14 +02:00
Fernando Jiménez Moreno
1c02fc94a8 Barebones media UI 2019-07-22 17:40:14 +02:00
Fernando Jiménez Moreno
4f6b86f9f5 Render media controls 2019-07-22 17:40:14 +02:00
Paul Rouget
24d2213780 Add new hololens code (winrt + D3D immersive mode example) 2019-07-22 12:37:53 +02:00
Paul Rouget
13872eb254 Remove old hololens code 2019-07-22 12:36:13 +02:00
bors-servo
75275965f0
Auto merge of #23585 - georgeroman:tag_name_selector_for_find_element_wd_commands, r=jdm
Implement tag name selector for FindElement and related WebDriver commands

<!-- 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

<!-- Either: -->
- [X] There are tests for these changes

<!-- 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/23585)
<!-- Reviewable:end -->
2019-07-21 09:44:26 -04:00
George Roman
bf6ea64e8c Implement tag name selector for FindElementsFromElement WebDriver command 2019-07-21 15:57:26 +03:00
George Roman
616a81fb27 Implement tag name selector for FindElementFromElement WebDriver command 2019-07-21 15:56:24 +03:00
George Roman
dec73e4cea Implement tag name selector for FindElements WebDriver command 2019-07-21 15:56:23 +03:00
George Roman
7d5b324bda Implement tag name selector for FindElement WebDriver command 2019-07-21 15:55:19 +03:00
bors-servo
4128a38936
Auto merge of #23819 - larsbergstrom:update_windows_readme, r=jdm
Fix Python and gstreamer instructions for Windows

<!-- Please describe your changes on the following line: -->
Improved the README.md to address missing information for bootstrapping a Windows build.

---
<!-- 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: -->
- [ ] There are tests for these changes OR
- [x ] These changes do not require tests because README changes

<!-- 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/23819)
<!-- Reviewable:end -->
2019-07-21 00:22:47 -04:00
Lars Bergstrom
c04d32da13 Fix Python and gstreamer instructions for Windows 2019-07-20 19:44:35 -05:00
bors-servo
510ffde3f1
Auto merge of #23808 - georgeroman:fix_wdspec_setup_errors, r=jdm
Add a HOST_FILE env variable and fix the wdspec setup errors that it causes

<!-- 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

<!-- Either: -->
- [X] There are tests for these changes

<!-- 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/23808)
<!-- Reviewable:end -->
2019-07-20 20:35:35 -04:00
bors-servo
d34bde34f1
Auto merge of #23815 - servo-wpt-sync:wpt_update_20-07-2019, r=servo-wpt-sync
Sync WPT with upstream (20-07-2019)

Automated downstream sync of changes from upstream as of 20-07-2019.
[no-wpt-sync]

<!-- 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/23815)
<!-- Reviewable:end -->
2019-07-20 15:39:04 -04:00
WPT Sync Bot
dc1f7ba3ec Update web-platform-tests to revision 6fa9de7201cd41564d02c3edd62365aeb40e171b 2019-07-20 14:47:24 +00:00
George Roman
1c4a35e22b Add a HOST_FILE env variable and fix the wdspec setup errors that it causes 2019-07-20 17:06:50 +03:00