Commit graph

21718 commits

Author SHA1 Message Date
Emilio Cobos Álvarez
96594be65d
style: Don't go through all the part names if not there.
This uses the bit added for tracking part attributes in order to avoid doing
wasted work.

Differential Revision: https://phabricator.services.mozilla.com/D32644
2019-06-25 13:11:28 +02:00
Emilio Cobos Álvarez
f0bf7d6481
style: Add plumbing code to invalidate shadow parts.
Still does nothing, since we still do not collect part rules, but this is all
the plumbing that should allow us to invalidate parts when attributes or state
change on their ancestors.

Differential Revision: https://phabricator.services.mozilla.com/D32642
2019-06-25 13:11:27 +02:00
Emilio Cobos Álvarez
a4690ce158
style: Use cbindgen for gradients.
Differential Revision: https://phabricator.services.mozilla.com/D33901
2019-06-25 13:11:27 +02:00
Emilio Cobos Álvarez
ad142f8f2f
style: Handle default angle in radians.
We were not copying the angle in this case for some reason, and I overlooked
this.
2019-06-25 13:11:27 +02:00
Charlie Marlow
b70a9fe564
style: added text-decoration-width support to style system.
from-font support will be added later

Differential Revision: https://phabricator.services.mozilla.com/D33392
2019-06-25 13:11:27 +02:00
Emilio Cobos Álvarez
3980dc31cd
style: Cleanup gradient parsing by removing the simple-moz-gradient parsing pref.
It looks like bug 1547939 will stick, given how fast the other regressions came
in for bug 1337655.

We haven't seen any regression from this, and it seems unlikely that we'd want
this code back.

This blocks further improvements to the style system. Simplifying this code
allows me to remove all the conversion code for gradients.

Let me know if you think it's premature and I'm happy to wait, but I really want
to see this code gone :)

Differential Revision: https://phabricator.services.mozilla.com/D33820
2019-06-25 13:11:26 +02:00
Daniel Holbert
e9b0d54a95
style: Remove support for the layout.css.prefixes.webkit pref.
From this point on, the webkit-prefixed CSS features that were previously
protected by this pref will now be unconditionally enabled.

Differential Revision: https://phabricator.services.mozilla.com/D33807
2019-06-25 13:11:26 +02:00
Charlie Marlow
b6c88745e8
style: adding support for CSS text underline offset to the style system.
Support for from-font listed in the CSS spec will be implemented in a later bug.

Differential Revision: https://phabricator.services.mozilla.com/D33233
2019-06-25 13:11:26 +02:00
Emilio Cobos Álvarez
1f5bed4473
style: Hide some appearance values from content.
They're not used internally either, so remove all ability to address them.

I haven't removed the implementation yet, as some of them are quite complex, and
I don't have a mac / windows build. We should do that when this hits release
though.

Differential Revision: https://phabricator.services.mozilla.com/D32488
2019-06-25 13:11:26 +02:00
Emilio Cobos Álvarez
ef99ab1f08
style: Report heap size of rule tree heap allocations as well.
Differential Revision: https://phabricator.services.mozilla.com/D33353
2019-06-25 13:11:25 +02:00
Emilio Cobos Álvarez
9721bd7d0d
style: Inline one child in the rule tree.
It is indeed the most common case according to a bit of measurement.

A non-atypical example from GitHub for example:

> Rule tree stats:
>  0 - 340
>  1 - 1403
>  2 - 28
>  3 - 8
>  4 - 2
>  6 - 1
>  7 - 3
>  8 - 2
>  12 - 2
>  14 - 1
>  41 - 1
>  45 - 1
>  67 - 1
>  68 - 1

Differential Revision: https://phabricator.services.mozilla.com/D33351
2019-06-25 13:11:25 +02:00
Emilio Cobos Álvarez
a40fd0bd5d
style: Add some very basic rule tree stats that can be enabled with trace-level logging.
This is useful to analyze the shape of the rule tree at a glance.

Differential Revision: https://phabricator.services.mozilla.com/D33350
2019-06-25 13:11:25 +02:00
bors-servo
b1ecda32aa
Auto merge of #23580 - georgeroman:implement_switch_to_window_and_dismiss_alert_wd_commands, r=jdm
Implement SwitchToWindow and DismissAlert 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/23580)
<!-- Reviewable:end -->
2019-06-24 18:37:36 -04:00
bors-servo
7490dd6f0d
Auto merge of #23536 - gatoWololo:omar_timing_entries, r=jdm
Let resources timing entries be added to performance entry buffer.

<!-- Please describe your changes on the following line: -->
Update relevant tests to properly report and expect failure.

These changes are the first step for #23328. Not sure if I would say they _fix_ the issue.

---
<!-- 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: Existing tests have been updated to expect pass/failures.

<!-- 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/23536)
<!-- Reviewable:end -->
2019-06-24 10:48:39 -04:00
bors-servo
49bf3ba05f
Auto merge of #23611 - atouchet:travis-url, r=jdm
Update Travis CI URLs

<!-- 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 #___ (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/23611)
<!-- Reviewable:end -->
2019-06-24 08:46:08 -04:00
atouchet
5803ebf32a Update Travis CI URLs 2019-06-23 22:07:52 -07:00
bors-servo
a2b195aff8
Auto merge of #23588 - georgeroman:implement_status_wd_command, r=ferjm
Implement Status WebDriver command

<!-- 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/23588)
<!-- Reviewable:end -->
2019-06-23 19:44:59 -04:00
bors-servo
1d2c0ba0bc
Auto merge of #23593 - georgeroman:fix_panic_on_opening_directory, r=Manishearth
Fix panic on opening a directory

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

Continued from https://github.com/servo/servo/pull/23548

<!-- 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/23593)
<!-- Reviewable:end -->
2019-06-22 22:24:08 -04:00
bors-servo
2cbd177082
Auto merge of #23581 - georgeroman:implement_get_page_source_wd_command, r=jdm
Implement GetPageSource WebDriver command

<!-- 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/23581)
<!-- Reviewable:end -->
2019-06-22 19:11:59 -04:00
bors-servo
5592682c4b
Auto merge of #23494 - gterzian:improve_http_cache, r=jdm
Various improvements and update to the http cache

<!-- 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 #___ (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/23494)
<!-- Reviewable:end -->
2019-06-22 11:36:14 -04:00
Gregory Terzian
689b7971b8 http-cache: re-enable and update test 2019-06-22 06:28:32 -07:00
Simon Sapin
1d38bc0419 Fix some new warnings 2019-06-22 14:59:09 +02:00
Simon Sapin
112f1ddeba Upgrade to rustc 1.37.0-nightly (04a3dd8a8 2019-06-18) 2019-06-22 14:59:06 +02:00
Gregory Terzian
67494d4776 http-cache: do not cache responses from requests with authorization 2019-06-20 06:18:25 -07:00
Gregory Terzian
049817c5a7 http-cache: remove double-store of resources 2019-06-19 05:25:32 -07:00
George Roman
12877511db Implement Status WebDriver command 2019-06-18 17:08:26 +03:00
George Roman
29bdcba1e8 Fix panic on opening a directory 2019-06-18 17:01:51 +03:00
George Roman
13d908ab15 Implement GetPageSource WebDriver command 2019-06-17 13:06:29 +03:00
George Roman
15bd852b52 Implement dummy DismissAlert WebDriver command 2019-06-17 12:23:38 +03:00
George Roman
96c1ce2dd6 Implement SwitchToWindow WebDriver command 2019-06-17 12:23:04 +03:00
Gregory Terzian
4f41065dfb http-cache: improve handling of network errors and partial content 2019-06-17 13:19:46 +08:00
Josh Matthews
eab01e7877
Remove sampling profiler unit test. 2019-06-14 09:42:55 -04:00
bors-servo
09f9273b2d
Auto merge of #23559 - jdm:uwp-dirs, r=asajeffrey
Remove dirs crate from use in UWP builds.

The dirs crate relies on APIs that aren't available to UWP apps. This adds the ability to hide it from builds that need to run in UWP environments.

<!-- 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/23559)
<!-- Reviewable:end -->
2019-06-14 04:50:18 -04:00
bors-servo
9213331910
Auto merge of #23546 - asajeffrey:magicleap-webvr-second-cut, r=Manishearth
Add Servo3D immersive demo for magicleap

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

An immersive mode demo for magicleap.

---
<!-- 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 (apart from dupes, sigh)
- [X] These changes fix #22402 (GitHub issue number if applicable)
- [X] These changes do not require tests because it's a new platform

<!-- 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/23546)
<!-- Reviewable:end -->
2019-06-13 18:49:16 -04:00
Josh Matthews
3e22b52b47 Remove dirs crate from use in UWP builds. 2019-06-13 18:05:35 -04:00
Alan Jeffrey
0b48ff496f Add Servo3D immersive demo for magicleap 2019-06-13 15:04:05 -05:00
bors-servo
988f9847a0
Auto merge of #23560 - jdm:rand-upgrades, r=asajeffrey
Upgrade various old versions of rand

Old versions of rand rely on Windows APIs that are forbidden in UWP applications. These changes upgrade various dependencies that transitively depend on them.

---
- [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
- [x] Fixes #22767.

<!-- 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/23560)
<!-- Reviewable:end -->
2019-06-13 15:46:29 -04:00
Josh Matthews
ad94791027 Upgrade phf codegen. 2019-06-13 11:08:16 -04:00
Josh Matthews
b1510d9ad5 Upgrade headers, headers-core, and hyper_serde. 2019-06-13 11:08:16 -04:00
bors-servo
a74f38f843
Auto merge of #23551 - asajeffrey:script-navigatorid, r=jdm
Added missing NavigatorId attributes

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

Add the missing attributes from https://html.spec.whatwg.org/multipage/system-state.html#navigatorid

---
<!-- 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 there are already tests for Navigator

<!-- 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/23551)
<!-- Reviewable:end -->
2019-06-12 16:59:31 -04:00
Josh Matthews
7e29852baa Upgrade uuid. 2019-06-12 16:53:44 -04:00
Josh Matthews
09f7b6bf36 Upgrade ws. 2019-06-12 15:01:03 -04:00
bors-servo
8e783577d2
Auto merge of #23468 - servo:jdm-patch-52, r=asajeffrey
Add Windows arm64 build.

Depends on:
* [x] https://github.com/servo/mozjs/pull/184
* [x] https://github.com/servo/rust-mozjs/pull/463
* [ ] <strike>https://github.com/servo/ipc-channel/pull/232</strike>
* [x] https://github.com/alexcrichton/cmake-rs/pull/82
* [x] https://github.com/servo/rust-offscreen-rendering-context/pull/136
* [x] https://github.com/servo/mozangle/pull/21

<!-- 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/23468)
<!-- Reviewable:end -->
2019-06-11 17:21:36 -04:00
Josh Matthews
e9365ad303 Update mozjs for Windows arm64 support. 2019-06-11 15:53:35 -04:00
Josh Matthews
385b46cff7 Disable WGL for Windows arm64. 2019-06-11 15:53:35 -04:00
Josh Matthews
4367365419 No multiprocess on win arm64. 2019-06-11 15:53:34 -04:00
Josh Matthews
b8aac8b152 Hide windows sampler on arm64. 2019-06-11 15:53:34 -04:00
bors-servo
f63b404e0c
Auto merge of #23547 - Manishearth:reference-spaces, r=asajeffrey
Update to latest WebXR spec, add tests

This pulls in a bunch of the newer stuff. I think with this PR we're spec-compatible for the things we support.

<s>For testing I'm likely going to write custom tests rather than adapting the existing ones, as a first pass, but when I start adapting the existing ones these changes will make it smoother.</s>

This PR also adds some pretty simple tests that deal with core functionality.

r? @jdm @asajeffrey

<!-- 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/23547)
<!-- Reviewable:end -->
2019-06-11 15:50:15 -04:00
Manish Goregaokar
7d029d5a36 Use correct length in FakeXRDeviceController.setViews() 2019-06-11 10:10:41 -07:00
Manish Goregaokar
2af8e0ef9f Add stub makeXRCompatible() 2019-06-11 10:10:41 -07:00