Commit graph

35029 commits

Author SHA1 Message Date
Boris Chiou
cb2533d61a
style: Use alias for StyleDisplay and StyleDisplayMode.
Map these two types to their original rust type in rust-bindgen.

Differential Revision: https://phabricator.services.mozilla.com/D10141
2018-11-05 12:30:38 +01:00
Boris Chiou
591a47858b
style: Use alias for StyleAppearance.
So we could avoid generating it in rust-bindgen and drop transmute.

Differential Revision: https://phabricator.services.mozilla.com/D10304
2018-11-05 12:30:29 +01:00
Boris Chiou
b00bbb3be7
style: Add a special list for cbindgen types to avoid generating redundant rust types.
We will blacklist this type and add a module raw line to map the gecko
type to its rust type (as an alias).

Differential Revision: https://phabricator.services.mozilla.com/D10303
2018-11-05 12:30:18 +01:00
Brian Birtles
8bc8a0bfa0
style: Interpolate the angle between mis-matched rotate() functions when the angle of one is zero.
Bug: 1501176
Reviewed-by: hiro
2018-11-05 12:29:52 +01:00
Emilio Cobos Álvarez
edf6e6a54f
style: Update cbindgen due to breaking change.
https://github.com/eqrion/cbindgen/pull/233 changed the way one of the options
we use work.

I think the new behavior is better, but we should do this sooner rather than
later, and fix broken builds.

Differential Revision: https://phabricator.services.mozilla.com/D10301
2018-11-05 12:29:37 +01:00
Emilio Cobos Álvarez
badb8f398a
style: Support ::before / ::after on ::slotted pseudos.
See https://github.com/w3c/csswg-drafts/issues/3150 for the issue that would
expand this to all pseudos.

Differential Revision: https://phabricator.services.mozilla.com/D9994
2018-11-05 12:29:30 +01:00
Sean Voisen
62aaf865aa
style: Ignore border-image-source when overriding document colors.
Differential Revision: https://phabricator.services.mozilla.com/D10017
2018-11-05 12:29:20 +01:00
Emilio Cobos Álvarez
a3fcfb6435
style: Add a fast path for querySelector{,All} when we have classes or tags in the rightmost compound.
Before this patch we were only optimizing the case of a single selector, which
is fine, but not enough to catch ones like .foo .bar or so.

This patch allows us to optimize classes and tags in the rightmost compound,
while keeping the current optimization for #id selectors.

Need to profile this, but code-wise should be ready for review.

Differential Revision: https://phabricator.services.mozilla.com/D9351
2018-11-05 12:29:10 +01:00
Emilio Cobos Álvarez
a9af61e3be
style: Don't allow auto in grid line names.
See https://github.com/w3c/csswg-drafts/issues/2856.

Differential Revision: https://phabricator.services.mozilla.com/D9882
2018-11-05 12:28:59 +01:00
Emilio Cobos Álvarez
26040d1b00
style: Remove unused style constant.
Also remove specified-value-only keywords, since those are handled
only in Rust code and C++ doesn't need to know about them.

Differential Revision: https://phabricator.services.mozilla.com/D9634
2018-11-05 12:28:10 +01:00
bors-servo
176d984b3b
Auto merge of #22109 - servo-wpt-sync:wpt_update_04-11-2018, r=jdm
Sync WPT with upstream (04-11-2018)

Automated downstream sync of changes from upstream as of 04-11-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/22109)
<!-- Reviewable:end -->
2018-11-04 22:32:11 -05:00
WPT Sync Bot
3c4e5d8f18 Update web-platform-tests to revision 064f51c50eab34723ef435e80188bde08f718c2c 2018-11-04 22:29:22 -05:00
bors-servo
348f5520ee
Auto merge of #22107 - CYBAI:update-spec-link, r=emilio
Update to new ServiceWorker spec link

I think this is missing in #13408

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes do not require tests because it just updates the spec link

<!-- 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/22107)
<!-- Reviewable:end -->
2018-11-04 12:35:23 -05:00
bors-servo
299ec554a8
Auto merge of #22105 - servo-wpt-sync:wpt_update_03-11-2018, r=jdm
Sync WPT with upstream (03-11-2018)

Automated downstream sync of changes from upstream as of 03-11-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/22105)
<!-- Reviewable:end -->
2018-11-04 06:56:34 -05:00
CYBAI
0a82cea555 Update to new ServiceWorker spec link 2018-11-04 17:26:48 +08:00
WPT Sync Bot
612038c4d6 Update web-platform-tests to revision 6e9693d2690e0648fb9a1bd902af7cc078f28515 2018-11-03 22:48:49 -04:00
bors-servo
4ec7dedce1
Auto merge of #22096 - servo-wpt-sync:wpt_update_02-11-2018, r=jdm
Sync WPT with upstream (02-11-2018)

Automated downstream sync of changes from upstream as of 02-11-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/22096)
<!-- Reviewable:end -->
2018-11-03 07:37:23 -04:00
WPT Sync Bot
bd791500b2 Update web-platform-tests to revision c583bcd7eb30f38cb2d673031cde245776f1da5a 2018-11-02 22:59:27 -04:00
bors-servo
ba1ed11ced
Auto merge of #22089 - servo-wpt-sync:wpt_update_01-11-2018, r=jdm
Sync WPT with upstream (01-11-2018)

Automated downstream sync of changes from upstream as of 01-11-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/22089)
<!-- Reviewable:end -->
2018-11-02 07:55:42 -04:00
WPT Sync Bot
4a942c982f Update web-platform-tests to revision fb15e14b52049f952612623ee0d7fb7a620a57c9 2018-11-01 23:02:46 -04:00
bors-servo
200cc8aa6b
Auto merge of #22084 - KiChjang:idl-default-empty-array, r=jdm
Handle default empty sequence values

Fixes #22077.

<!-- 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/22084)
<!-- Reviewable:end -->
2018-11-01 18:13:49 -04:00
Keith Yeung
99589d2f2a Handle default empty sequence values 2018-11-01 14:54:23 -07:00
bors-servo
ad32d52ba5
Auto merge of #22076 - asajeffrey:magicleap-scroll, r=jdm
Support scrolling in Magic Leap Servo

<!-- Please describe your changes on the following line: -->

Add support for scrolling in Magic Leap Servo. Also adds support for mouse down and mouse up events.

---
<!-- 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 #22043
- [X] These changes do not require tests because we can't test ML

<!-- 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/22076)
<!-- Reviewable:end -->
2018-11-01 17:09:59 -04:00
bors-servo
46fdf156e4
Auto merge of #21644 - Eijebong:hyperup, r=jdm
Update hyper to 0.12

<!-- 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/21644)
<!-- Reviewable:end -->
2018-11-01 15:03:01 -04:00
Bastien Orivel
024b40b39d Update hyper to 0.12 2018-11-01 19:17:36 +01:00
Alan Jeffrey
3970c4ffbe Support scrolling in Magic Leap Servo 2018-11-01 12:16:01 -05:00
bors-servo
95bfaa0a77
Auto merge of #22067 - jdm:mesaup, r=manishearth
Update osmesa dependency.

Fixes #22063.

<!-- 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/22067)
<!-- Reviewable:end -->
2018-11-01 07:19:34 -04:00
bors-servo
8aded34bf6
Auto merge of #21914 - Eijebong:canvas-cleanup, r=jdm
Use pixels::get_rect in CanvasData::draw_image

Those functions are the same except that get_rect isn't failible, so we
have to check that the rect we want is actually in the image.

<!-- 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/21914)
<!-- Reviewable:end -->
2018-11-01 03:29:06 -04:00
bors-servo
126ed26171
Auto merge of #22060 - jdm:ml, r=asajeffrey
Add a build switch to disable the native bluetooth backend.

Fixes #22059.

<!-- 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/22060)
<!-- Reviewable:end -->
2018-11-01 02:23:53 -04:00
bors-servo
07071b42c7
Auto merge of #22061 - servo-wpt-sync:wpt_update_30-10-2018, r=jdm
Sync WPT with upstream (30-10-2018)

Automated downstream sync of changes from upstream as of 30-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/22061)
<!-- Reviewable:end -->
2018-10-31 23:58:16 -04:00
bors-servo
ace6324935
Auto merge of #22066 - asajeffrey:magicleap-url-bar, r=jdm
Magic Leap URL bar

<!-- Please describe your changes on the following line: -->

This PR gets the URL bar in the Servo2D magic leap app to function: it shows the current URL, and navigates Servo when edited.

---
<!-- 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 do not require tests because we can't test on ML

<!-- 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/22066)
<!-- Reviewable:end -->
2018-10-31 21:45:28 -04:00
bors-servo
eea3c5d10e
Auto merge of #22046 - servo:tc-android-x86, r=Manishearth+asajeffrey
Taskcluster: build for Android x86 and test in emulator

This adds to Taskcluster the equivalent of Buildbot’s `android-x86` job. CC https://github.com/servo/saltfs/issues/559

Like on Buildbot, the Android emulator runs on a Packet.net server. However we can compiler in a separate task, and run that task on fast AWS instances. The Packet server is provisionned and installed automatically with Terraform scripts forked from https://github.com/taskcluster/taskcluster-infrastructure/tree/master/modules/docker-worker.

Taskcluster’s “livelog” functionality seems to be broken on Packet tasks, so logs are only available after a task is completed.

<!-- 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/22046)
<!-- Reviewable:end -->
2018-10-31 18:57:19 -04:00
Simon Sapin
b1da53e47f Use apt-get update before apt-get install 2018-10-31 23:55:21 +01:00
Josh Matthews
a51276986e Update osmesa dependency. 2018-10-31 18:33:41 -04:00
bors-servo
fa8b4ea139
Auto merge of #21983 - emilio:inline-absolute, r=jdm
style: Re-enable the rule that was accidentally disabled by a typo in the CSS parser.

In #21946 I commented out this rule because before that patch we were
accidentally ignoring it because of a typo in the CSS parser, since that PR
didn't intend to change behavior.

This PR does though, and re-enables the rule.

<!-- 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/21983)
<!-- Reviewable:end -->
2018-10-31 14:57:44 -04:00
bors-servo
8350c5e1ff
Auto merge of #22049 - ferjm:timeranges, r=jdm
Implement TimeRanges interface

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] There are tests for these changes

Spec: https://html.spec.whatwg.org/multipage/media.html#time-ranges

<!-- 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/22049)
<!-- Reviewable:end -->
2018-10-31 13:37:05 -04:00
Fernando Jiménez Moreno
664d5cd2fa Implement TimeRanges interface 2018-10-31 18:35:53 +01:00
Alan Jeffrey
c2f33709d1 Get the Servo2D URL bar to show the current URL, and to navigate when edited. 2018-10-31 11:11:01 -05:00
bors-servo
4c5a3c0d9f
Auto merge of #22024 - ferjm:range.request.file.urls, r=jdm
Support for byte range requests on file urls

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

This is required to allow seeking on media behind file urls

<!-- 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/22024)
<!-- Reviewable:end -->
2018-10-31 09:55:23 -04:00
Fernando Jiménez Moreno
594f17a8e1 Tests for byte range requests on file urls 2018-10-31 13:07:03 +01:00
Fernando Jiménez Moreno
0f73544297 Support for byte range requests on file urls 2018-10-31 12:50:58 +01:00
WPT Sync Bot
9f516d3717 Update web-platform-tests to revision b704e37ec97fe90b3a3d59c10f78c21907b5b576 2018-10-30 23:10:39 -04:00
Josh Matthews
83fda753a8 Add a build switch to disable the native bluetooth backend. 2018-10-30 19:26:42 -04:00
bors-servo
cc0ac89e1a
Auto merge of #22057 - asajeffrey:magicleap-fwd-back-buttons, r=jdm
Magic Leap history traversal

<!-- Please describe your changes on the following line: -->

Hook up the back and forward buttons in the Magic Leap Servo2D application to history traversal.

---
<!-- 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 do not require tests because we can't test ML

<!-- 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/22057)
<!-- Reviewable:end -->
2018-10-30 14:20:28 -04:00
Alan Jeffrey
c8fa64b93a Hook up the back and forward buttons to history traversal in Magic Leap Servo2D 2018-10-30 12:05:19 -05:00
bors-servo
7a715519a0
Auto merge of #22052 - ferjm:durationchange.resize.event.once, r=ceyusa
HTMLMediaElement - fire durationchange and resize iff something changes

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

<!-- 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/22052)
<!-- Reviewable:end -->
2018-10-30 12:45:45 -04:00
bors-servo
ac41b813a0
Auto merge of #22047 - servo-wpt-sync:wpt_update_29-10-2018, r=jdm
Sync WPT with upstream (29-10-2018)

Automated downstream sync of changes from upstream as of 29-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/22047)
<!-- Reviewable:end -->
2018-10-30 11:32:44 -04:00
bors-servo
4ead81717a
Auto merge of #22044 - asajeffrey:magicleap-less-egl-buffer-swapping, r=jdm
Reduce the amount of EGL buffer swapping the ML port is doing

<!-- Please describe your changes on the following line: -->

At the moment, we're swapping the EGL buffers every heartbeat, which produces a lot of flickering. We should only swap the buffers when needed.

---
<!-- 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 do not require tests because we have no way to test on ML

<!-- 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/22044)
<!-- Reviewable:end -->
2018-10-30 09:57:56 -04:00
Simon Sapin
d1a18dc052 Also show created/updated dates in Packet.net server list 2018-10-30 13:30:41 +01:00
Simon Sapin
46f9312d0c Taskcluster: use a dedicated role for scopes granted to decision tasks 2018-10-30 13:25:19 +01:00