Commit graph

36141 commits

Author SHA1 Message Date
bors-servo
7ed6b9d3ce
Auto merge of #22850 - georgeroman:implement_htmlareaelement_target_attribute, r=ferjm
Implement the target attribute for HTMLAreaElement

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

<!-- 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/22850)
<!-- Reviewable:end -->
2019-02-11 04:13:42 -05:00
George Roman
90b5d0d338 Implement the target attribute for HTMLAreaElement 2019-02-11 10:42:58 +02:00
bors-servo
aeeaf9dda1
Auto merge of #22861 - 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/22861)
<!-- Reviewable:end -->
2019-02-10 17:00:26 -05:00
bors-servo
a019ed1f80
Auto merge of #22860 - servo-wpt-sync:wpt_update_09-02-2019, r=jdm
Sync WPT with upstream (09-02-2019)

Automated downstream sync of changes from upstream as of 09-02-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/22860)
<!-- Reviewable:end -->
2019-02-10 15:48:56 -05:00
Emilio Cobos Álvarez
6daebcc5df Fix servo build. 2019-02-10 07:23:51 +01:00
Emilio Cobos Álvarez
1cb235c81a style: Call things by their name. 2019-02-10 07:11:47 +01:00
Emilio Cobos Álvarez
a68bc29b96 style: Derive more length stuff, and shrink MaxLength / MozLength's repr(C) representation.
This patch:

 * Makes LengthPercentageOrAuto generic, and removes a bunch of code fo
   LengthPercentageOrNone, which was used only for servo and now can use the
   normal MaxLength (with a cfg() guard for the ExtremumLength variant).

 * Shrinks MaxLength / MozLength's repr(C) reperesentation by reducing enum
   nesting. The shrinking is in preparation for using them from C++ too, though
   that'd be a different bug.

 * Moves NonNegative usage to the proper places so that stuff for them can be
   derived.

I did this on top of bug 1523071 to prove both that it could be possible and
that stuff wasn't too messy. It got a bit messy, but just because of a bug I
had fixed in bindgen long time ago already, so this updates bindgen's patch
version to grab a fix instead of ugly workarounds :)

Differential Revision: https://phabricator.services.mozilla.com/D17762
2019-02-10 07:11:46 +01:00
Emilio Cobos Álvarez
8dad956513 style: Use Rust lengths for margin / padding / inset.
Also for the intersection observer root margin, since it was easier to fix it
up and clean it up than not doing it.

This is the first big step to get rid of nscoord. It duplicates a bit of logic
in nsLayoutUtils since for now max/min-width/height are still represented with
nsStyleCoord, but I think I prefer to land this incrementally.

I didn't add helpers for the physical accessors of the style rect sides that
nsStyleSides has (top/bottom/left/right) since I think we generally should
encourage the logical versions, but let me know if you want me to do that.

Differential Revision: https://phabricator.services.mozilla.com/D17739
2019-02-10 05:12:19 +01:00
Emilio Cobos Álvarez
13e12d23f3 style: Use the style system's LengthPercentage for shape-margin.
This also makes us pass a few WPTs because we stop losing precision when
serializing the computed value.

Differential Revision: https://phabricator.services.mozilla.com/D17738
2019-02-10 05:12:11 +01:00
Emilio Cobos Álvarez
15f503d000 style: Add bindings for LengthPercentage, and use it for text-indent.
Which is the only property that uses LengthPercentage alone.

Differential Revision: https://phabricator.services.mozilla.com/D17737
2019-02-10 05:12:00 +01:00
Emilio Cobos Álvarez
207ff730c2 style: Cleanup a bit after bug 1525371.
Differential Revision: https://phabricator.services.mozilla.com/D19001
2019-02-10 05:11:49 +01:00
Emilio Cobos Álvarez
258217a369 style: Generate combined transform just once.
Differential Revision: https://phabricator.services.mozilla.com/D18567
2019-02-10 05:11:43 +01:00
Emilio Cobos Álvarez
eef9e24e96 style: Make -moz-binding chrome / UA only.
But enable it in all tests because a lot of them rely on using it in the
style="" attribute for example, or in inline stylesheets, which will no longer
parse this (even in chrome documents), and we don't want to rewrite all the XUL
and XBL tests.

Differential Revision: https://phabricator.services.mozilla.com/D18027
2019-02-10 05:11:33 +01:00
WPT Sync Bot
67ab92907c Update web-platform-tests to revision 01e5f08719565e56a6c0d2abfc2485481ceb924a 2019-02-09 22:31:15 -05:00
bors-servo
5de6d87c97
Auto merge of #22859 - servo-wpt-sync:wpt_update_08-02-2019, r=jdm
Sync WPT with upstream (08-02-2019)

Automated downstream sync of changes from upstream as of 08-02-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/22859)
<!-- Reviewable:end -->
2019-02-09 01:33:29 -05:00
WPT Sync Bot
05db47be0f Update web-platform-tests to revision 345300fad3945a5f1441fb2b2001109ca48f36e8 2019-02-08 22:35:01 -05:00
bors-servo
71ba247942
Auto merge of #22847 - servo-wpt-sync:wpt_update_07-02-2019, r=jdm
Sync WPT with upstream (07-02-2019)

Automated downstream sync of changes from upstream as of 07-02-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/22847)
<!-- Reviewable:end -->
2019-02-07 22:55:25 -05:00
WPT Sync Bot
2178678b0f Update web-platform-tests to revision ead8f8b00d0b68237109f3c93d0ccae076a34f98 2019-02-07 22:37:04 -05:00
bors-servo
d029b1a0ff
Auto merge of #22832 - paulrouget:capi_tweaks, r=jdm
Some tweaks in libsimpleservo C API

- Adding logs.
- Adding OpenGL support for OSX.
- Fixing file reading issue.

With this, I can load Servo into a C app (with the C version of libui + https://github.com/andlabs/libui/pull/405).

<!-- 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/22832)
<!-- Reviewable:end -->
2019-02-07 01:41:21 -05:00
Paul Rouget
1292db6824 Add logs to libsimpleservo C API 2019-02-07 06:27:58 +01:00
Paul Rouget
399456665c Add Mac OpenGL support to libsimpleservo 2019-02-07 06:27:58 +01:00
bors-servo
6c161e5037
Auto merge of #22773 - paulrouget:immersive, r=jdm
Support for ExternalVR implementation

This PR adds the hook necessary for the ExternalVR rust-webvr driver.
Waiting on rust-webvr 0.9.3 to be published before landing.

<!-- 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/22773)
<!-- Reviewable:end -->
2019-02-07 00:17:26 -05:00
Paul Rouget
c055b74e13 Support for ExternalVR implementation 2019-02-07 06:15:11 +01:00
bors-servo
d81ff5704e
Auto merge of #22839 - jdm:overflow-hit-test-fix, r=pcwalton
Ensure transparent hit test region is sized and positioned correctly.

This addresses some edge cases that were missed by #22156. Specifically, in some cases the transparent region was being placed in the display list in front of the scrollable content, rather than behind it, and the size of the region did not account for parent stacking context.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #22073 and fix #22216.
- [x] There are tests for these changes

<!-- 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/22839)
<!-- Reviewable:end -->
2019-02-06 18:14:20 -05:00
bors-servo
73ff9995fb
Auto merge of #22825 - asajeffrey:layout-fullscreen-top-layer, r=jdm
Layout fullscreen top layer

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

Implement the fullscreen top layer described at https://fullscreen.spec.whatwg.org/#top-layer

---
<!-- 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] There are tests for these changes OR

<!-- 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/22825)
<!-- Reviewable:end -->
2019-02-06 15:31:12 -05:00
Josh Matthews
f59e95ee3d Ensure transparent hit test region is sized and positioned correctly. 2019-02-06 15:19:03 -05:00
Alan Jeffrey
386c0f80ed Implemented fullscreen top layer 2019-02-06 13:23:52 -06:00
bors-servo
a34c8f952e
Auto merge of #22835 - servo-wpt-sync:wpt_update_05-02-2019, r=jdm
Sync WPT with upstream (05-02-2019)

Automated downstream sync of changes from upstream as of 05-02-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/22835)
<!-- Reviewable:end -->
2019-02-06 10:24:24 -05:00
bors-servo
16b8347c86
Auto merge of #22836 - paulrouget:remove_readfile_callback, r=jdm
Remove readfile callback

Reproducing what is done in libmlservo.

This simplifies a lot of things. No need for resources anymore.

<!-- 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/22836)
<!-- Reviewable:end -->
2019-02-06 08:20:57 -05:00
Paul Rouget
475756ec2f Remove readfile callback 2019-02-06 07:52:58 +01:00
WPT Sync Bot
6dda93c6e2 Update web-platform-tests to revision 9fc797e6e5fb7d244dfb5b5125886c01f8cedf2b 2019-02-05 23:23:41 -05:00
bors-servo
b7e9bab267
Auto merge of #22823 - servo:rustup, r=SimonSapin
Compat with rustc 1.34.0-nightly (f6fac4225 2019-02-03)

<!-- 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/22823)
<!-- Reviewable:end -->
2019-02-05 16:42:51 -05:00
bors-servo
9c8bce2a6b
Auto merge of #22821 - servo-wpt-sync:wpt_update_04-02-2019, r=jdm
Sync WPT with upstream (04-02-2019)

Automated downstream sync of changes from upstream as of 04-02-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/22821)
<!-- Reviewable:end -->
2019-02-05 15:09:35 -05:00
bors-servo
0cf9bcdd24
Auto merge of #22809 - asajeffrey:wpt-add-fullscreen-baseline-reftest, r=asajeffrey
Add a reftest that entering fullscreen mode takes over the window

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

Add a baseline reftest for fullscreen that ensures that going fullscreen actually uses the whole window. This uses a pref that requests that fullscreen mode takes over the window rather than the whole screen. The pref doesn't do anything right now, but is a bit of future-proofing for when we do have proper fullscreen.

---
<!-- 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 #22804.
- [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/22809)
<!-- Reviewable:end -->
2019-02-05 11:48:22 -05:00
Alan Jeffrey
d2862094ec Add reftests for fullscreen mode 2019-02-05 10:04:38 -06:00
bors-servo
581df9da2c
Auto merge of #22806 - ferjm:webrtc.gst.plugins, r=jdm
Update gstreamer binaries for Android with webrtc related plugins

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

I updated the binaries for Android with the required plugins for WebRTC as suggested [here](https://github.com/servo/servo/pull/22780#discussion_r252767768)

<!-- 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/22806)
<!-- Reviewable:end -->
2019-02-05 10:15:28 -05:00
Simon Sapin
4c2dcff80b Compat with rustc 1.34.0-nightly (f6fac4225 2019-02-03) 2019-02-05 10:56:40 +01:00
WPT Sync Bot
f9b7afc45e Update web-platform-tests to revision fe78f2a1ad48c1e0132634e957369d8d674e4258 2019-02-04 23:30:37 -05:00
bors-servo
871fe9306f
Auto merge of #22786 - georgeroman:update_forked_referrer_policy_tests, r=jdm
Remove forked referrer policy tests

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

<!-- 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/22786)
<!-- Reviewable:end -->
2019-02-04 13:16:16 -05:00
bors-servo
40998d452d
Auto merge of #22819 - servo-wpt-sync:wpt_update_03-02-2019, r=jdm
Sync WPT with upstream (03-02-2019)

Automated downstream sync of changes from upstream as of 03-02-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/22819)
<!-- Reviewable:end -->
2019-02-03 23:02:38 -05:00
WPT Sync Bot
02a351684c Update web-platform-tests to revision db527a4944833201557faf740d4717c3ebe4c75f 2019-02-03 22:30:35 -05:00
bors-servo
481662d0a7
Auto merge of #22812 - servo-wpt-sync:wpt_update_02-02-2019, r=jdm
Sync WPT with upstream (02-02-2019)

Automated downstream sync of changes from upstream as of 02-02-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/22812)
<!-- Reviewable:end -->
2019-02-03 00:11:33 -05:00
WPT Sync Bot
314da91646 Update web-platform-tests to revision 78c15447152438264b49f4488683f60ee47d068f 2019-02-02 23:01:11 -05:00
bors-servo
007333e123
Auto merge of #22811 - UK992:mach-package-2, r=jdm
Windows: Add more missing dependencies

From https://github.com/servo/servo/pull/21968#issuecomment-459932742
r? @jdm

cc @atouchet

<!-- 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/22811)
<!-- Reviewable:end -->
2019-02-02 09:07:42 -05:00
bors-servo
4e463dec65
Auto merge of #22810 - servo-wpt-sync:wpt_update_01-02-2019, r=jdm
Sync WPT with upstream (01-02-2019)

Automated downstream sync of changes from upstream as of 01-02-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/22810)
<!-- Reviewable:end -->
2019-02-02 07:57:53 -05:00
UK992
4c236222c1 Add more GStreamer DLLs 2019-02-02 13:37:39 +01:00
UK992
ac8ac39ef3 Alphabetically sort GStreamer dlls 2019-02-02 13:36:12 +01:00
WPT Sync Bot
71dcf37d55 Update web-platform-tests to revision 0f0b7a7e353421b600ee555bf354d3a98bb603ae 2019-02-01 22:58:23 -05:00
bors-servo
363073568e
Auto merge of #21968 - UK992:mach-package, r=jdm
Windows: Add missing dependencies

Rebased https://github.com/servo/servo/pull/16445 and updated with Gstreamer DLLs.

About msi installer, there is also included gstreamer installer, should be removed and replaced by needed gstreamer DLLs or keep it at is it?

Fixes #16422.

<!-- 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/21968)
<!-- Reviewable:end -->
2019-02-01 18:02:59 -05:00
UK992
f374dc3b7d Taskcluster: Install gstreamer-1.0-x86_64-1.14.3.msi 2019-02-01 22:35:53 +01:00