Commit graph

34802 commits

Author SHA1 Message Date
bors-servo
ddcb72f750
Auto merge of #21906 - Manishearth:minor-webaudio-fixes, r=ferjm
Minor WebAudio fixes

Stuff I discovered whilst working on https://github.com/servo/media/pull/148

r? @ferjm

<!-- 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/21906)
<!-- Reviewable:end -->
2018-10-11 08:46:18 -04:00
bors-servo
597f7c1cc6
Auto merge of #21905 - servo:log-spam, r=jdm
Reduce log spam for large downloads made from mach

Printing the same line again is a no-op in an actual terminal, but Taskcluster’s log viewer shows each such line separately.

<!-- 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/21905)
<!-- Reviewable:end -->
2018-10-11 06:54:38 -04:00
bors-servo
ae0a5a8ead
Auto merge of #21879 - chansuke:add_element_event_taskforce, r=ferjm
Add task source for media element

<!-- 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
- [x] These changes fix #21612 .
- [x] These changes do not require tests because the existing test should cover this code.

<!-- 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/21879)
<!-- Reviewable:end -->
2018-10-11 03:36:08 -04:00
bors-servo
35bf180dcb
Auto merge of #21907 - servo-wpt-sync:wpt_update_10-10-2018, r=jdm
Sync WPT with upstream (10-10-2018)

Automated downstream sync of changes from upstream as of 10-10-2018.
[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/21907)
<!-- Reviewable:end -->
2018-10-10 23:33:10 -04:00
WPT Sync Bot
b33912a5ce Update web-platform-tests to revision 2c89bbecfab9a69190906abd7610c3bc62303dd4 2018-10-10 23:13:06 -04:00
Manish Goregaokar
600f997a51 Increase webaudio sample rate threshold to match firefox 2018-10-10 17:32:12 -07:00
Manish Goregaokar
ceb2cd2279 Handle case when OfflineAudioContext doesn't receive all the buffers 2018-10-10 16:29:43 -07:00
bors-servo
48bb94ded8
Auto merge of #21902 - ferjm:windows.installer.locate.gst, r=jdm
Windows installer: set GStreamer installation path based on registry …

…search

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

<!-- 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/21902)
<!-- Reviewable:end -->
2018-10-10 19:29:22 -04:00
Simon Sapin
e49fc3994c Reduce log spam for large downloads made from mach
Printing the same line again is a no-op on an actual terminal, but Taskcluster’s log viewer shows each such line separately.
2018-10-11 00:07:36 +02:00
bors-servo
304e09732e
Auto merge of #21594 - gterzian:try_to_fix_travis, r=jdm
Try to fix travis

<!-- 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: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #21592 (github issue number if applicable).

<!-- Either: -->
- [ ] 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/21594)
<!-- Reviewable:end -->
2018-10-10 17:42:37 -04:00
Manish Goregaokar
75d94c2a06 Remove gst-plugins-ugly dep from README
We don't use it and shouldn't be using it because of the license
2018-10-10 12:14:30 -07:00
bors-servo
900a81d380
Auto merge of #21799 - codehag:bug_1172897_rename_tab_actor, r=jdm
Bug 1172897 - Rename Tab Actor to BrowsingContextActor

As part of [Bug 1172987](https://bugzilla.mozilla.org/show_bug.cgi?id=1172897) we renamed TabActor, as the actor does not represent tabs (as in a browser tab), it instead represents a browsing context as defined by the the [HTML standard](https://html.spec.whatwg.org/multipage/browsers.html#windows). In a later PR I will mirror the structure we have on devtools to have a targets folder, which contains all target types. At the moment it looks like servo only represents workers and browsing contexts.

<!-- 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: -->
- [ ] `./mach build -d` does not report any errors
Unfortunately, I am unable to build due to #21792 -- I will try to find a linux machine to build on
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix Bugzilla [Bug 1172987](https://bugzilla.mozilla.org/show_bug.cgi?id=1172897).

<!-- Either: -->
- [x] These changes do not require tests because this is a renaming and shouldn't impact tests as far as I can tell

<!-- 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/21799)
<!-- Reviewable:end -->
2018-10-10 15:08:21 -04:00
Fernando Jimenez Moreno
593f69c348 Windows installer: set GStreamer installation path based on registry search 2018-10-10 15:35:06 +02:00
chansuke
7b3cf27c69 Add task source for media element 2018-10-10 22:15:37 +09:00
bors-servo
78327fcba5
Auto merge of #21863 - servo:tc-windows, r=Manishearth
Build on and for Windows on Taskcluster CI

I’ve configured a `servo-win2016` Taskcluster worker type and built an AMI for it. The docs and scripts for this are in `etc/taskcluster/windows` in this PR. They don’t strictly need to be in this repository, but it’s as good a place as any.

This PR also adds a new Windows task similar to Buildbot’s `windows-msvc-dev` job. Like the other tasks triggered on `github-push` events (in particular pushes by Homu to the `auto`), it needs to succeed for a PR to be merged.

CC https://github.com/servo/saltfs/issues/559

<!-- 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/21863)
<!-- Reviewable:end -->
2018-10-10 04:31:42 -04:00
bors-servo
7ca426fa14
Auto merge of #21901 - servo-wpt-sync:wpt_update_09-10-2018, r=jdm
Sync WPT with upstream (09-10-2018)

Automated downstream sync of changes from upstream as of 09-10-2018.
[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/21901)
<!-- Reviewable:end -->
2018-10-09 23:19:47 -04:00
WPT Sync Bot
3eaee747ed Update web-platform-tests to revision e15b5ebba7465e09bcda2962f6758cddcdcfa248 2018-10-09 22:45:22 -04:00
bors-servo
78e0c0e155
Auto merge of #21895 - Manishearth:gst-mac, r=jdm
Revert "Disable event_timeupdate_noautoplay test on mac"

Hopefully the builders now have the right gstreamer things.

From https://github.com/servo/servo/pull/21543 , needs https://github.com/servo/saltfs/pull/898

<!-- 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/21895)
<!-- Reviewable:end -->
2018-10-09 21:27:56 -04:00
bors-servo
7a88a2e28a
Auto merge of #21877 - servo:webgl, r=jdm
Improve some byte-swap and premultiply operations

<!-- 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/21877)
<!-- Reviewable:end -->
2018-10-09 20:15:40 -04:00
Josh Matthews
8a2eec2714 Use upstream font weight values for windows. 2018-10-09 18:23:20 -04:00
Josh Matthews
171469c27c Update webrender to 923ee495bd9b0fda8a4a94c5a6cf42e2f0548731. 2018-10-09 18:23:19 -04:00
Pyfisch
d13172845c Update Webrender
New version is
9156a4465f6ad715a0206cdd9a7e9a6f0385fbd6
2018-10-09 18:23:18 -04:00
bors-servo
68e55ead42
Auto merge of #21897 - emilio:gecko-sync, r=emilio
style: Sync changes from mozilla-central.

See each individual commit for details.

<!-- 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/21897)
<!-- Reviewable:end -->
2018-10-09 18:07:26 -04:00
Emilio Cobos Álvarez
f287691f2e
style: fix tidy issues and update test expectations. 2018-10-09 22:01:38 +02:00
Josh Matthews
c98e30516b
Skip css-text i18n tests. 2018-10-09 15:07:15 -04:00
Emilio Cobos Álvarez
912d65a392
style: Remove some more leftover code.
Differential Revision: https://phabricator.services.mozilla.com/D7755
2018-10-09 19:45:53 +02:00
Emilio Cobos Álvarez
d833754183
style: Remove nsCSSValue usage from font code.
Really sorry for the size of the patch.

Differential Revision: https://phabricator.services.mozilla.com/D7753
2018-10-09 19:45:45 +02:00
Emilio Cobos Álvarez
7345af613a
style: Serialize a bunch of image properties with Servo.
I had to fix the conversion for BackgroundSize too, hopefully we can
simplify all this using cbindgen in the future instead of CalcValue.

Differential Revision: https://phabricator.services.mozilla.com/D7580
2018-10-09 19:45:35 +02:00
Nicholas Nethercote
0d5d5a9c82
style: Make static atom pointers constexpr.
This saves one word per static atom, per process.

The `nsGkAtoms` change is only a small part of this commit.

In regen_atoms.py:

- There is now only one link name per platform: nsGkAtoms::sAtoms[].

- But there is a new constant per atom, giving the index into
  nsGkAtoms::sAtoms[].

- And the `atom!` macro for each atom indexes into nsGkAtoms::sAtoms[] using
  the index constant.

- A couple of `*mut` pointers are now `*const`.

Elsewhere, the `(nsStaticAtom*)` casts within the `AppendElement()` calls are
necessary to avoid link errors, presumably due to some template instantiation
wrinkle.

Bug: 1449787
Reviewed-by: froydnj,emilio
2018-10-09 19:45:10 +02:00
Nicholas Nethercote
c276c8a341
style: Tweak regen_atoms.py.
Specifically, give all the string templates the ''' form, and give them all
`_TEMPLATE` suffixes. This requires slightly changing the newline handling.

Bug: 1449787
Reviewed-by: emilio
2018-10-09 19:44:45 +02:00
Ryan Hunt
7f8a3530a3
style: Implement multi-position gradient color-stops syntax.
This commit adds the multi-position gradient color-stops syntax.

GradientItem::parse_comma_separated is extended to attempt to parse
a LengthOrPercent after each color stop. If it succeeds, it appends
an additional color stop with a duplicate color and the specified
position.

This change is only to the parsing, serialization is left unchanged
as per [1].

[1] https://github.com/w3c/csswg-drafts/issues/2714

Differential Revision: https://phabricator.services.mozilla.com/D7380
2018-10-09 19:44:35 +02:00
Emilio Cobos Álvarez
2cf4e9998a
style: Serialize -moz-image-region and clip with Servo.
This changes the serialization of -moz-image-region to be consistent with that
of clip(), but it's an internal property and the specified value is already
serialized by Servo so I think it's the right thing to do.

There are also no internal callers of the getter.

Differential Revision: https://phabricator.services.mozilla.com/D7069
2018-10-09 19:44:21 +02:00
Xidorn Quan
b1cc6b4598
style: Rename pref "layout.css.scrollbar-colors.enabled" to "layout.css.scrollbar-color.enabled".
Differential Revision: https://phabricator.services.mozilla.com/D7030
2018-10-09 19:44:08 +02:00
Martin Stransky
6a1078c551
style: [CSD] Enable round corners by default by -moz-gtk-csd-transparent-background media query.
Replace mozilla.widget.use-argb-visuals pref by
-moz-gtk-csd-transparent-background media query at browser.css to draw
transparent background. The media query is set by toolkit code and enabled when
compatible window manager is detected.

Differential Revision: https://phabricator.services.mozilla.com/D6658
2018-10-09 19:43:50 +02:00
Emilio Cobos Álvarez
2751df808b
style: Don't apply containing shadow-host rules to NAC.
This is a regression from bug 1487856.

Differential Revision: https://phabricator.services.mozilla.com/D6700
2018-10-09 19:43:42 +02:00
Emilio Cobos Álvarez
426683cd4b
style: Remove an outdated comment.
This was fixed, css/css-scoping/shadow-cascade-order-001.html tests it.
2018-10-09 19:43:33 +02:00
Emilio Cobos Álvarez
75bebf1618
style: Avoid walking the rule tree three times from apply_declarations.
Just once is slow enough.

Differential Revision: https://phabricator.services.mozilla.com/D6574
2018-10-09 19:43:26 +02:00
Manish Goregaokar
c563befefb Revert "Disable event_timeupdate_noautoplay test on mac"
This reverts commit 7e6661d9ab.
2018-10-09 08:09:13 -07:00
Anthony Ramine
c53db64e63 Return input as is when there is no cropping to be done 2018-10-09 14:57:04 +02:00
Anthony Ramine
2bf4fcd9bd Remove some condition in CanvasData::write_image
The surface creation should never fail.
2018-10-09 14:57:04 +02:00
Anthony Ramine
6c469b90b1 Share some code between 2D canvas and WebGL 2018-10-09 14:57:02 +02:00
Simon Sapin
bd6762314f decisionlib docs 2018-10-09 14:00:26 +02:00
Simon Sapin
09d8339b46 Code coverage for decisionlib 2018-10-09 14:00:25 +02:00
Simon Sapin
62e4f7072b Taskcluster WPT: inline extra variable 2018-10-09 14:00:25 +02:00
Simon Sapin
829b44e9f0 Taskcluster: index Windows builds 2018-10-09 14:00:25 +02:00
Simon Sapin
2d12d50b54 Tascluster: shorten x86_64 to x64 2018-10-09 14:00:25 +02:00
Simon Sapin
652ff71482 Taskcluster: Add Windows release build 2018-10-09 14:00:24 +02:00
Simon Sapin
2c7abbb2bf Taskcluster: package the Windows build 2018-10-09 14:00:24 +02:00
Simon Sapin
0a7811111e Time fetching dependencies on Windows separately from build 2018-10-09 14:00:24 +02:00
Simon Sapin
c0b132a2e0 Rewrite decisionlib with a builder pattern to be more composable 2018-10-09 14:00:24 +02:00