Commit graph

36788 commits

Author SHA1 Message Date
Josh Matthews
944d1d1f29 webgl: Check internal format of textures when determining attachment completeness. 2018-09-10 15:56:16 -04:00
Josh Matthews
15e2af0fea webgl: Support DEPTH_STENCIL_ATTACHMENT on osmesa. 2018-09-10 15:56:16 -04:00
Josh Matthews
d179435eab webgl: Ensure that framebuffers have a color attachment before reading or writing. 2018-09-10 15:56:15 -04:00
Josh Matthews
80ed829241 webgl: Mark framebuffers as incomplete if attachments do not meet format requirements. 2018-09-10 15:54:41 -04:00
Josh Matthews
03f6ce292e webgl: Remove unnecessary Option from texture API. 2018-09-10 15:54:41 -04:00
bors-servo
6cad3f4f40
Auto merge of #21657 - AnshulMalik:format-profile_traits, r=jdm
format components/profile_traits

Issue: #21373

<!-- 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/21657)
<!-- Reviewable:end -->
2018-09-10 15:25:58 -04:00
bors-servo
1127bcf69c
Auto merge of #21655 - kingdido999:master, r=jdm
Format jstraceable_derive #21373

```bash
rustfmt components/jstraceable_derive/*.rs
```

<!-- 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/21655)
<!-- Reviewable:end -->
2018-09-10 14:08:06 -04:00
Simon Sapin
ea7804385d Install lz4 2018-09-10 19:05:20 +02:00
bors-servo
948f0c9548
Auto merge of #21664 - chansuke:format_servo, r=jdm
Format component servo

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

`rustfmt components/servo/*.rs`

---
<!-- 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 part of #21373.
- [x] 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/21664)
<!-- Reviewable:end -->
2018-09-10 13:05:12 -04:00
Simon Sapin
22f5da0a92 docker-worker doesn’t like gzip, try lz4 2018-09-10 19:00:45 +02:00
Simon Sapin
8e7d83206f Use the docker image we just built 2018-09-10 18:54:32 +02:00
Josh Matthews
4482ccc52d Enable wasm tests. 2018-09-10 12:46:24 -04:00
Simon Sapin
b72d5ca2a7 dind only as needed 2018-09-10 18:22:06 +02:00
bors-servo
e122341a1d
Auto merge of #21651 - AnshulMalik:format-profile, r=jdm
format components/profile

Issue #21373

<!-- 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/21651)
<!-- Reviewable:end -->
2018-09-10 11:49:56 -04:00
chansuke
f2c9c3dc43 Format component servo 2018-09-11 00:47:01 +09:00
Simon Sapin
d023c28487 Options before position args in old Docker? 2018-09-10 17:33:58 +02:00
Simon Sapin
b6342b5b76 Trace shell scripts 2018-09-10 17:19:03 +02:00
Simon Sapin
22ae3c7a42 chmod +x 2018-09-10 17:08:25 +02:00
Simon Sapin
1be9b4945f Quiet(er) APT 2018-09-10 17:04:32 +02:00
Simon Sapin
69dbe1bce2 docker/build.sh 2018-09-10 17:03:31 +02:00
Simon Sapin
a4fb0c3068 apt-install.sh 2018-09-10 17:02:53 +02:00
Simon Sapin
0d1c28c254 Try older Ubuntu for docker-in-docker 2018-09-10 16:56:25 +02:00
bors-servo
f37124563b
Auto merge of #21658 - paulrouget:loaduri, r=jdm
Save initial URI even for all loadUri methods

<!-- 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/21658)
<!-- Reviewable:end -->
2018-09-10 10:39:24 -04:00
Simon Sapin
e13014ba75 docker version 2018-09-10 16:14:35 +02:00
bors-servo
78ad1df0b0
Auto merge of #21645 - AgustinCB:add-websocket-task-queue, r=jdm
Add Websocket task source

According to the doc: https://html.spec.whatwg.org/multipage/web-sockets.html#network

The task source for all tasks queued in the websocket section are the
websocket task source, so this commit also updates those references to
use the appropriate one.

Also, while working on this, I made a typo here: 5dd6e21c2e/components/script/dom/window.rs (L191)

Setting the name incorrectly. The error, however, was this:

```bash
error[E0412]: cannot find type `WebsocketEventTaskSource` in this scope
     --> components/script/dom/window.rs:171:1
       |
171 | #[dom_struct]
       | ^^^^^^^^^^^^^ did you mean `WebsocketTaskSource`?
```

Which isn't useful at all. Not sure if it's a rustc problem or something related with htis code base, but I thought it was worth mentioning.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #21590
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because they don't include new behavior and existing tests should cover this code.

<!-- 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/21645)
<!-- Reviewable:end -->
2018-09-10 09:11:44 -04:00
chansuke
52a11d8237 Format component size_of_test 2018-09-10 21:31:38 +09:00
Anthony Ramine
dac7740b8c Reuse input buffer for RGB/UNSIGNED_BYTE in rgba8_image_to_tex_image_data 2018-09-10 14:13:23 +02:00
bors-servo
0341b87b8b
Auto merge of #21654 - servo-wpt-sync:wpt_update_09-09-2018, r=jdm
Sync WPT with upstream (09-09-2018)

Automated downstream sync of changes from upstream as of 09-09-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/21654)
<!-- Reviewable:end -->
2018-09-10 07:52:08 -04:00
Anthony Ramine
e1486f7d71 Reuse input vector for LUMINANCE_ALPHA/HALF_FLOAT 2018-09-10 12:43:38 +02:00
Anthony Ramine
7e7441749b Fix the remaining LUMINANCE* cases in rgba8_image_to_tex_image_data 2018-09-10 12:41:57 +02:00
Paul Rouget
77f38a0789 Save initial URI for all loadUri methods 2018-09-10 10:45:10 +02:00
Anshul Malik
ce9231c471 format components/profile_traits 2018-09-10 09:56:01 +05:30
kingdido999
1cd092db63 Format jstraceable_derive #21373 2018-09-10 11:03:38 +08:00
WPT Sync Bot
968ce5b5b3 Update web-platform-tests to revision 9614def367ae8af8247142c34b00f755863d2fbb 2018-09-09 23:02:49 -04:00
bors-servo
6cb39fad47
Auto merge of #21620 - chansuke:format_style_traits, r=jdm
Format component of style_traits

<!-- Please describe your changes on the following line: -->
Format `style_traits` with:
```
rustfmt components/style_traits/*.rs
```

---
<!-- 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 part of #21373.
- [x] These changes do not require tests because they format the components only.

<!-- 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/21620)
<!-- Reviewable:end -->
2018-09-09 16:18:18 -04:00
bors-servo
041d0e36a4
Auto merge of #21649 - servo-wpt-sync:wpt_update_08-09-2018, r=jdm
Sync WPT with upstream (08-09-2018)

Automated downstream sync of changes from upstream as of 08-09-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/21649)
<!-- Reviewable:end -->
2018-09-09 15:20:18 -04:00
bors-servo
129b97ad08
Auto merge of #21648 - kingdido999:master, r=jdm
Format gfx_traits and hashglobe #21373

```bash
rustfmt components/gfx_traits/*.rs
rustfmt components/hashglobe/src/*.rs
```

<!-- 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/21648)
<!-- Reviewable:end -->
2018-09-09 13:34:03 -04:00
bors-servo
c8fd63802e
Auto merge of #21652 - chansuke:format_style, r=emilio
Format component `style`

<!-- Please describe your changes on the following line: -->
Format `components/style` with:
```
rustfmt components/style/*.rs
```

---
<!-- 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 part of #21373.
- [x] These changes do not require tests because they format the components only.

<!-- 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/21652)
<!-- Reviewable:end -->
2018-09-09 12:40:12 -04:00
bors-servo
186393a3be
Auto merge of #21646 - servo:webgl, r=jdm
Fix some texture conversions

<!-- 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/21646)
<!-- Reviewable:end -->
2018-09-09 11:52:22 -04:00
Anshul Malik
72748de721 format components/profile - #21373 2018-09-09 20:08:00 +05:30
chansuke
8dab4d659a
Format style component. 2018-09-09 16:24:45 +02:00
bors-servo
a39a57c076
Auto merge of #21653 - 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/21653)
<!-- Reviewable:end -->
2018-09-09 10:22:38 -04:00
Boris Chiou
31fc6cd565
style: Use the standalone struct and enum for the flags in SVG path.
We define the standalone types for using derive macro easily and overriding
the behaviors of this traits. This could avoid defining the general
behavior of booleans.

Depends on D4788

Differential Revision: https://phabricator.services.mozilla.com/D4813
2018-09-09 16:09:08 +02:00
Boris Chiou
b0604c9be5
style: Make offset-path: path() animatable.
Here, we change the animation type of offset-path as ComputedValue, so
we could do animation on it. Also enable the wpt for offset-path
interpolation. In test_transition_per_property.html, we add some basic tests
ifor offset-path.

ToAnimatedZero for PathCommand will be dropped later.

Because the animations of arcs with mismatched flags are fallen back to
discrete animations, the result of getComputedValue is not normalized in this
case. This makes some wpt failed even though the progress is 100%.

Depends on D4786

Differential Revision: https://phabricator.services.mozilla.com/D4787
2018-09-09 16:08:56 +02:00
Boris Chiou
14911b96e0
style: Make SVGPathData and clip-path: path() animatable.
Implement Animate trait for SVGPathData.

The basic idea is: we normalize |this| and |other| svg paths, and then
do interpolation on the normalized svg paths. The normalization is to
convert relative coordinates into absolute coordinates, so we could do
real number interpolation on each path command directly.

In this patch, we also make |clip-path:path()| animatable.

Differential Revision: https://phabricator.services.mozilla.com/D4786
2018-09-09 16:08:24 +02:00
Anthony Ramine
6d3609dbe8 Fix the UNSIGNED_SHORT_4_4_4_4 case of premultiply_pixels 2018-09-09 12:22:01 +02:00
Anthony Ramine
d8b7394fa3 Fix the UNSIGNED_SHORT_5_5_5_1 case of premultiply_pixels 2018-09-09 12:21:56 +02:00
Anthony Ramine
f726f18291 Remove some useless argument mutability
I wonder why this doesn't trigger a warning.
2018-09-09 12:21:55 +02:00
Anthony Ramine
e61c7b757f Fix the LUMINANCE of rgba8_image_to_tex_image_data
The internal format and format values match, thus the canvas or image input
must be interpreted as already in LUMINANCE format.
2018-09-09 12:21:54 +02:00
Anthony Ramine
9a362391d5 Fix the LUMINANCE_ALPHA case of rgba8_image_to_tex_image_data
The internal format and format values match, thus the canvas or image input
must be interpreted as already in LUMINANCE_ALPHA format.
2018-09-09 12:21:54 +02:00