Josh Matthews
55a8de5d6b
Run WPT sync on a machine with a case-sensitive filesystem.
2018-07-09 16:58:24 -04:00
bors-servo
52ccdba05f
Auto merge of #21143 - servo:webgl, r=jdm
...
Make some WebGL tests have a long timeout (fixes #20883 )
<!-- 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/21143 )
<!-- Reviewable:end -->
2018-07-09 10:46:49 -04:00
Anthony Ramine
36b6b86ad4
Make some WebGL tests have a long timeout ( fixes #20883 )
2018-07-09 16:39:33 +02:00
Anthony Ramine
00d9f55f35
Update outdated expectations
2018-07-09 16:39:33 +02:00
Anthony Ramine
6d91cadcdf
Update the Khronos test suites
2018-07-09 16:39:33 +02:00
bors-servo
3dc560761e
Auto merge of #21142 - servo:webgl, r=emilio
...
A couple of small WebGL fixes
<!-- 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/21142 )
<!-- Reviewable:end -->
2018-07-09 09:29:29 -04:00
Anthony Ramine
ef7d495838
Properly implement the checks for gl.renderbufferStorage ( fixes #20563 )
2018-07-09 15:27:51 +02:00
Anthony Ramine
fc0e403fb0
Implement attribute aliasing check ( fixes #21136 )
2018-07-09 15:27:49 +02:00
bors-servo
6554a40331
Auto merge of #21140 - 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/21140 )
<!-- Reviewable:end -->
2018-07-08 21:23:22 -04:00
Emilio Cobos Álvarez
628ab7db01
style: Fix servo build.
2018-07-09 03:22:52 +02:00
Emilio Cobos Álvarez
d9d0186117
style: Trivial indentation fix.
...
MozReview-Commit-ID: JqBxF7i0HQZ
2018-07-09 03:05:45 +02:00
Emilio Cobos Álvarez
9f8c80fb3a
style: Make writing-mode and direction non-animatable.
...
Per https://github.com/w3c/csswg-drafts/issues/2751
Bug: 1473779
Reviewed-by: heycam
2018-07-09 03:05:32 +02:00
Emilio Cobos Álvarez
a11dcefee7
style: Reformat most of inherited_box.mako.rs.
...
image-orientation is being changed as we speak, so I left it there to avoid
bitrot.
Bug: 1473779
Reviewed-by: heycam
2018-07-09 03:05:19 +02:00
Emilio Cobos Álvarez
6518b0adfa
style: Other minor properties.mako.rs cleanups and improvements.
...
Also, add an is_logical method, which we'll use in a bit.
Bug: 1473793
Reviewed-by: heycam
MozReview-Commit-ID: Hq63wgbiRRu
2018-07-09 03:05:04 +02:00
Emilio Cobos Álvarez
263d4258ea
style: Add a clone helper that works regardless of whether the property is logical.
...
Bug: 1473793
Reviewed-by: heycam
2018-07-09 03:04:36 +02:00
Emilio Cobos Álvarez
769188ddbb
style: Remove dead code.
...
Bug: 1473793
Reviewed-by: heycam
2018-07-09 03:04:21 +02:00
Bobby Holley
50a85a5dd6
style: Cap the number of style threads at six.
...
Differential Revision: https://phabricator.services.mozilla.com/D1928
Bug: 1431285
Reviewed-by: emilio
2018-07-09 03:04:01 +02:00
Emilio Cobos Álvarez
c23dca874f
style: Reformat font.mako.rs.
...
To be consistent, use the block indentation the rest of the Rust code uses.
Differential Revision: https://phabricator.services.mozilla.com/D1906
Bug: 1472552
Reviewed-by: xidorn
2018-07-09 03:03:41 +02:00
bors-servo
41e105733c
Auto merge of #21129 - servo:webgl, r=emilio
...
Implement instanced WebGL drawing calls (part of #20791 )
This is half of #20599 . The check for drawElements is a bit more complex to implement.
<!-- 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/21129 )
<!-- Reviewable:end -->
2018-07-08 04:45:37 -04:00
Anthony Ramine
4e6eea221a
Implement instanced WebGL drawing calls (part of #20791 )
2018-07-08 10:44:45 +02:00
Anthony Ramine
0aefffc5bf
Correctly implement the vertex buffer checks in drawArrays
...
This is half of #20599 . The check for drawElements is a bit more complex
to implement.
2018-07-08 10:44:45 +02:00
Anthony Ramine
f0ca100e87
Return an empty typed array from gl.getParameter(gl.COMPRESSED_TEXTURE_FORMATS)
2018-07-08 10:44:42 +02:00
Anthony Ramine
31774e9203
Implement gl.getParameter(gl.MAX_VIEWPORT_DIMS)
2018-07-08 10:14:10 +02:00
Anthony Ramine
0e6bec65bb
Return typed arrays from gl.getParameter ( fixes #20655 )
2018-07-08 10:11:44 +02:00
Anthony Ramine
5aafb5007a
Enable some tests marked as flaky
...
They don't seem flaky anymore and we have a tool to properly keep intermittent
results anyway now.
2018-07-08 10:11:44 +02:00
Anthony Ramine
7dd3efd088
Reenable .../ogles/GL/build/* ( fixes #13165 )
...
gl.getProgramInfoLog was implemented a while back.
2018-07-08 10:11:44 +02:00
Anthony Ramine
6996d1ce36
Fix gl.getShaderSource and gl.getShaderInfoLog
...
It only returns null if there was an error, and the only error isn't
implemented yet.
2018-07-08 10:11:44 +02:00
Anthony Ramine
0e93f06d8d
Pass more GL limits to the ANGLE shader compiler
2018-07-08 10:11:44 +02:00
Anthony Ramine
83aaf9a0e0
Fix some outdated expectations
2018-07-08 10:11:41 +02:00
bors-servo
bd0c001218
Auto merge of #21135 - Eijebong:regex, r=SimonSapin
...
Update regex to 1.0
<!-- 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/21135 )
<!-- Reviewable:end -->
2018-07-07 15:10:34 -04:00
bors-servo
11c5c878cd
Auto merge of #21089 - servo:rustup, r=SimonSapin
...
Upgrade to rustc 1.29.0-nightly (e06c87544 2018-07-06)
<!-- 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/21089 )
<!-- Reviewable:end -->
2018-07-07 07:07:22 -04:00
Simon Sapin
a09899be99
Upgrade to rustc 1.29.0-nightly (e06c87544 2018-07-06)
2018-07-07 12:53:39 +02:00
Bastien Orivel
1766867cf4
Update regex to 1.0
2018-07-07 12:03:17 +02:00
bors-servo
1b9d8fa674
Auto merge of #21131 - Manishearth:empty, r=nox
...
Make (dictionary)::empty() safe
It currently works by constructing from null (which will throw a runtime
error if there are non-defaultable members).
This changes it so that we no longer need a JSContext to construct this,
so it can be safely constructed. In the case of non-defaultable members,
this method simply does not exist.
<!-- 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/21131 )
<!-- Reviewable:end -->
2018-07-06 17:44:09 -04:00
Manish Goregaokar
cceaede96a
Make (dictionary)::empty() safe
...
It currently works by constructing from null (which will throw a runtime
error if there are non-defaultable members).
This changes it so that we no longer need a JSContext to construct this,
so it can be safely constructed. In the case of non-defaultable members,
this method simply does not exist.
2018-07-06 13:10:56 -07:00
bors-servo
c90737e6c8
Auto merge of #21118 - servo:webgl, r=emilio
...
Store vertex attribs data in DOM and optimise GetVertexAttrib
This is not an extremely useful change on its own but those things need to be stored on the DOM side to implement some draw checks anyway.
<!-- 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/21118 )
<!-- Reviewable:end -->
2018-07-05 08:21:45 -04:00
Anthony Ramine
15389586d9
Make gl.useProgram(null) do the right thing
2018-07-05 14:20:47 +02:00
Anthony Ramine
fc593c68c5
Store active attribs in DOM and optimise active attributes APIs
2018-07-05 14:20:47 +02:00
Anthony Ramine
0e2e834d18
Fix gl.linkProgram() signature
2018-07-05 14:20:47 +02:00
Anthony Ramine
cde6023ed4
Store vertex attribs data in DOM and optimise GetVertexAttrib
2018-07-05 14:20:47 +02:00
Anthony Ramine
0814bd6699
Rename VertexAttribs::set_from to VertexAttribs::clone_from
2018-07-05 14:20:47 +02:00
Anthony Ramine
0018e5e6ba
Refactor some vertex attrib checks
2018-07-05 14:20:47 +02:00
Anthony Ramine
f108a3e797
Introduce VertexAttribData
2018-07-05 14:20:47 +02:00
Anthony Ramine
5d43f1c9bd
Rename BoundAttribBuffers to VertexAttribs and make it store a slice
2018-07-05 14:20:44 +02:00
bors-servo
0125e96555
Auto merge of #21125 - servo:android-readme, r=paulrouget
...
Update README for Android
https://github.com/servo/servo/pull/21094 automates some things.
<!-- 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/21125 )
<!-- Reviewable:end -->
2018-07-05 01:11:37 -04:00
Simon Sapin
f0275d184b
Update README for Android
...
https://github.com/servo/servo/pull/21094 automates some things.
2018-07-04 20:30:50 +02:00
bors-servo
ce430566cd
Auto merge of #21087 - UK992:window-icon, r=asajeffrey
...
Add window icon on X11 and Windows
<!-- 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 #20761
<!-- 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/21087 )
<!-- Reviewable:end -->
2018-07-04 02:45:25 -04:00
bors-servo
3c43fa6b1d
Auto merge of #21105 - Manishearth:dom-inheritance-assert, r=nox
...
Assert that DOM structs have the correct first field
Not having the right field can lead to fun bugs like https://github.com/ferjm/servo/pull/1 where the struct gets mis-reinterpreted as what should be its parent (but is not layout-wise)
<!-- 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/21105 )
<!-- Reviewable:end -->
2018-07-03 12:52:12 -04:00
Manish Goregaokar
ad198993b1
Assert that DOM structs have the correct first field
...
DOM structs embed their parent type as their first field. This
introduces a `.parent()` method to the DOM struct that returns its first
field, and codegens a type assert that ensures that `.parent()` returns
the parent struct.
This generates:
On `#[dom_struct]`:
```rust
impl HasParent for Type {
type Parent = ParentType;
fn as_parent(&self) -> ParentType {
&self.first_field
}
}
```
In the codegen files:
```rust
impl Type {
fn __assert_parent_type(&self) {
let _: &ParentType = self.as_parent();
}
}
````
2018-07-03 09:39:29 -07:00
UK992
3d577ba752
Update servo-tidy.yml
2018-07-03 06:14:24 +02:00