Commit graph

35029 commits

Author SHA1 Message Date
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
Simon Sapin
eaee801e64 Add try-taskcluster branch 2018-10-09 14:00:23 +02:00
Simon Sapin
95150280bf Rename decision-task.py to make it importable 2018-10-09 14:00:23 +02:00
bors-servo
3b153af49c
Auto merge of #21543 - ceyusa:wip-player, r=<try>
Add <audio> and <video> player backends

These patches enables audio and video playing inside Servo.

It is bit hackish way to enable it, thus the purpose of this pull request is for an early request for comments.

It is tested with the current servo-media GStreamer backend in Linux.

~~The produced layout is not correct, since the elements after the video seems to be stacked behind, and the same with the scrolling bars.~~

~~There is no JavaScript interface yet~~, neither controls.

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

<!-- 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/21543)
<!-- Reviewable:end -->
2018-10-09 04:15:18 -04:00
Fernando Jiménez Moreno
7e6661d9ab Disable event_timeupdate_noautoplay test on mac 2018-10-09 10:14:48 +02:00
bors-servo
3455d223db
Auto merge of #21890 - pocmo:servoview-default-constructor, r=paulrouget
ServoView: Add default constructor.

Android's `View` has multiple constructors. Currently only `ServoView(Context, AttributeSet)` is available. This constructor is usually used by Android when inflating a View from a layout XML file. However when creating the `View` in code no `AttributeSet` is available.

---

- [ ] `./mach build -d` does not report any errors
- [ ] `./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/21890)
<!-- Reviewable:end -->
2018-10-09 01:11:35 -04:00
bors-servo
552af0043a
Auto merge of #21785 - sumit0190:new_markasdirty, r=jdm
Add framebuffer check for mark_as_dirty, #21691

<!-- Please describe your changes on the following line: -->
Check `bound_framebuffer` in each `mark_as_dirty` call, so that we don't dirty the canvas if we don't have a bound framebuffer.

---
<!-- 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 #21691  (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because there isn't a direct way to test it (yet).

<!-- 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/21785)
<!-- Reviewable:end -->
2018-10-08 21:45:55 -04:00
bors-servo
4a27e1723a
Auto merge of #21889 - dguenther:add-lld-readme, r=jdm
Add optional section to README for using lld-link on Windows

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

Switching to lld-link as described in #21243 decreased Windows dev build times for 1-line changes from 20 minutes to 10 minutes for me. The last comment on that issue mentioned that a readme change might be welcome, hopefully this is useful 😄

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

<!-- Either: -->
- [x] These changes do not require tests because they only affect the README

<!-- 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/21889)
<!-- Reviewable:end -->
2018-10-08 20:31:42 -04:00
bors-servo
0525d40d12
Auto merge of #21888 - servo-wpt-sync:wpt_update_07-10-2018, r=jdm
Sync WPT with upstream (07-10-2018)

Automated downstream sync of changes from upstream as of 07-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/21888)
<!-- Reviewable:end -->
2018-10-08 15:39:32 -04:00
Fernando Jiménez Moreno
92a10e2616 Update tests expectations 2018-10-08 17:52:24 +02:00
Simon Sapin
545d54704a Add bootstrap script for messing with a manually-started instance 2018-10-08 16:44:24 +02:00
Simon Sapin
7be1c2c899 Windows AMI: disable indexing and anti-virus 2018-10-08 16:44:24 +02:00
Simon Sapin
a88fb7ed40 Taskcluster Windows: build 2018-10-08 16:44:24 +02:00
Simon Sapin
b5cf1f87cf Taskcluster Windows: add gstreamer 2018-10-08 16:44:23 +02:00
Simon Sapin
233c911639 Taskcluster Windows: install rustup 2018-10-08 16:44:23 +02:00
Simon Sapin
63e244ebab Cache repackaged Python 2 for Windows 2018-10-08 16:44:23 +02:00
Simon Sapin
a7fc7629ff msiextract corrupts files :( Try lessmsi instead
https://gitlab.gnome.org/GNOME/msitools/issues/6
2018-10-08 16:44:22 +02:00
Simon Sapin
3b2076fdc3 Windows: don’t check out tests/wpt
Creating many files is slow, on Windows
2018-10-08 16:44:22 +02:00
Simon Sapin
522445f609 Convert python-2.7.15.amd64.msi to a ZIP file, for generic-worker mount 2018-10-08 16:44:22 +02:00
Simon Sapin
f9038a78df Taskcluster: add initial Windows task 2018-10-08 16:44:21 +02:00
Simon Sapin
1bab9fb64f mach.bat: exit with an error code 2018-10-08 16:44:21 +02:00
Simon Sapin
c2d868f213 (Disabled) Exfiltrate IP addresses for new generic-worker instances 2018-10-08 16:44:21 +02:00
Simon Sapin
bb7157ec59 Windows AMI: add missing signinig key for generic-worker 2018-10-08 16:44:20 +02:00
Simon Sapin
e0d6cb8a60 Initial Windows AMI-building script 2018-10-08 16:44:20 +02:00
Fernando Jiménez Moreno
11ac049d27 Make sure we do not skip the HaveMetadata state. Fixes a bunch of tests 2018-10-08 16:12:04 +02:00