Commit graph

34159 commits

Author SHA1 Message Date
kingdido999
3a3c4b8c8e Format the rest of gfx #21373 2018-09-08 08:05:42 +08:00
bors-servo
f7630dad87
Auto merge of #21630 - kingdido999:master, r=jdm
Format gfx text #21373

```bash
rustfmt $(find components/gfx/text -type f -name "*.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/21630)
<!-- Reviewable:end -->
2018-09-07 11:20:11 -04:00
bors-servo
ba8790bb0b
Auto merge of #21635 - chansuke:format_style_derive, r=jdm
Format component of style_derive

<!-- Please describe your changes on the following line: -->
Format `style_derive` component by:
```
rustfmt components/style_derive/*.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 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/21635)
<!-- Reviewable:end -->
2018-09-07 10:01:58 -04:00
chansuke
25bc998f17 Format component of style_derive 2018-09-07 22:18:51 +09:00
bors-servo
51283cf77a
Auto merge of #21634 - servo:webgl, r=emilio
Use a bytes channel in BufferData

<!-- 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/21634)
<!-- Reviewable:end -->
2018-09-07 06:23:12 -04:00
Anthony Ramine
9f924013bc Use a bytes channel in BufferData
This means we don't need to copy the input ArrayBuffer at all on the DOM side.
2018-09-07 11:28:59 +02:00
Anthony Ramine
e37856a855 Remove Clone impl for WebGLMsg 2018-09-07 11:28:45 +02:00
Anthony Ramine
1293692ef8 Simplify WebGLBuffer::buffer_data
There is no need to pass the target to that buffer method, given the buffer
has been retrieved by looking up the one bound to that target in the context.
2018-09-07 11:28:11 +02:00
bors-servo
8164c9d4cf
Auto merge of #21633 - ferjm:wpt.certs, r=Manishearth
Add Web Platform Tests root CA

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

This allows running the WPT suite locally. https://github.com/web-platform-tests/wpt#trusting-root-ca

<!-- 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/21633)
<!-- Reviewable:end -->
2018-09-07 05:09:01 -04:00
Fernando Jiménez Moreno
773881756e Add Web Platform Tests root CA 2018-09-07 10:57:55 +02:00
kingdido999
aa4a8eb88d Format gfx text #21373 2018-09-07 10:49:07 +08:00
bors-servo
a9a552e7e3
Auto merge of #21629 - servo-wpt-sync:wpt_update_06-09-2018, r=jdm
Sync WPT with upstream (06-09-2018)

Automated downstream sync of changes from upstream as of 06-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/21629)
<!-- Reviewable:end -->
2018-09-06 22:43:25 -04:00
WPT Sync Bot
560e025ce7 Update web-platform-tests to revision 9d5d9aa80785d9726ed0a5eaab1a8d144fd4b560 2018-09-06 22:40:10 -04:00
bors-servo
41a6c0cc39
Auto merge of #21610 - kingdido999:master, r=jdm
Format gfx platform #21373

```bash
rustfmt $(find components/gfx/platform -type f -name "*.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/21610)
<!-- Reviewable:end -->
2018-09-06 20:56:50 -04:00
bors-servo
1343c7de50
Auto merge of #21560 - JacksonCoder:chunk-file, r=jdm
Read file URL in chunks

<!-- Please describe your changes on the following line: -->
This is a very straightforward PR: essentially, I replaced a `read_to_end` call that occurs when processing a file URL fetch with a loop that reads the file in chunks (with a `FILE_CHUNK_SIZE` constant that specifies the chunk size, which I've put at 32KB), and then calls `target.process_response_chunk` to process the chunk. The chunk is then appended to the fetch result, and once the end of the file is reached, the result is returned.

---
<!-- 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 #21466.

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because there isn't really a way to observe this.

<!-- 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/21560)
<!-- Reviewable:end -->
2018-09-06 19:52:16 -04:00
Jackson Lewis
430ba86668 Tidy things up 2018-09-06 16:09:35 -07:00
Anthony Ramine
5a206d5137 Make validate_framebuffer return a WebGLResult<()> 2018-09-06 11:25:22 +02:00
Anthony Ramine
0579fbe4fa Use WebGLResult for returns of instanced draw methods 2018-09-06 10:41:58 +02:00
bors-servo
6aab6dd99c
Auto merge of #21627 - servo-wpt-sync:wpt_update_05-09-2018, r=jdm
Sync WPT with upstream (05-09-2018)

Automated downstream sync of changes from upstream as of 05-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/21627)
<!-- Reviewable:end -->
2018-09-05 23:14:49 -04:00
WPT Sync Bot
23dfe7c81e Update web-platform-tests to revision a806d658df3bcc3f05675ad8d08a6e109177c6b0 2018-09-05 22:56:05 -04:00
bors-servo
af777fcf15
Auto merge of #21623 - emilio:gecko-sync, r=emilio
style: Sync changes from mozilla-central.

See each commit for details.

https://bugzilla.mozilla.org/show_bug.cgi?id=1488854

<!-- 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/21623)
<!-- Reviewable:end -->
2018-09-05 16:32:19 -04:00
bors-servo
3fec9100e0
Auto merge of #21622 - servo:jdm-patch-20, r=SimonSapin
Make ndk-stack mach command support x86 builds.

Tested locally and it now provides usable output.

---
- [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 no automated tests for build environment.

<!-- 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/21622)
<!-- Reviewable:end -->
2018-09-05 14:14:46 -04:00
Emilio Cobos Álvarez
6dcf9b7630
style: Use decomposition to interpolate matched perspective transform operations.
Looks like this produces sensible results for interpolation with 0, though I'm
not really convinced about the results from, let's say, 1px to 2000px in the
attached test-case, I would've expected a linear interpolation from that to go
through normal length interpolation.

css-transforms-1 says:

  > Two transform functions with the same name and the same number of arguments
  > are interpolated numerically without a former conversion. The calculated
  > value will be of the same transform function type with the same number of
  > arguments.
  >
  > Special rules apply to <matrix()>.

Which is what we do... I was going to file a spec issue but turns out that it's
already addressed in css-transforms-2:

  https://drafts.csswg.org/css-transforms-2/#interpolation-of-transform-functions

Which says:

  > The transform functions <matrix()>, matrix3d() and perspective() get
  > converted into 4x4 matrices first and interpolated as defined in section
  > Interpolation of Matrices afterwards.

Differential Revision: https://phabricator.services.mozilla.com/D4942
2018-09-05 19:11:26 +02:00
Emilio Cobos Álvarez
3e0250ae61
style: Only no-op visited <-> unvisited changes.
Other changes should really be (and are) indistinguishable.

Differential Revision: https://phabricator.services.mozilla.com/D4847
2018-09-05 19:11:18 +02:00
Boris Chiou
cf6215c85f
style: Add a pref for |clip-path:path()|.
Add a preference, layout.css.clip-path-path.enabled, for |clip-path:path()|.

Differential Revision: https://phabricator.services.mozilla.com/D4965
2018-09-05 19:11:12 +02:00
Emilio Cobos Álvarez
3f08d2cc02
style: Make the author styles disabled stuff actually disable style attribute, animations, and XBL rules.
This also removes one of my FIXMEs from when I was looking at this code.

We don't seem to have a pre-existing test for this feature, sigh. I'll try to
write one if I have cycles for it...

Note that it not applying XBL rules is a feature, given the current state of
affairs. Video controls and such are right now unusable with no styles enabled.

Differential Revision: https://phabricator.services.mozilla.com/D4795
2018-09-05 19:10:46 +02:00
Emilio Cobos Álvarez
0c0018e4d6
style: Make <svg:use> in shadow tree apply the rules from the originating tree.
Differential Revision: https://phabricator.services.mozilla.com/D4674
2018-09-05 19:10:37 +02:00
Josh Matthews
a19cedfddc
Make ndk-stack mach command support x86 builds. 2018-09-05 12:52:50 -04:00
bors-servo
5ef3fff1b1
Auto merge of #21617 - chansuke:format-url, r=jdm
Format component of url

<!-- Please describe your changes on the following line: -->
Format `url` component with:

```
rustfmt components/url/*.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 code 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/21617)
<!-- Reviewable:end -->
2018-09-05 12:51:23 -04:00
bors-servo
5578cab464
Auto merge of #21607 - asajeffrey:aarch64-android-fixes, r=ferjm
Aarch64 android fixes

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

Getting android aarch64 to build again.

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

<!-- 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/21607)
<!-- Reviewable:end -->
2018-09-05 11:49:50 -04:00
Alan Jeffrey
f256f1d82f Allow duplicate versions of slab 2018-09-05 09:53:05 -05:00
chansuke
812d4a479a Format component of url 2018-09-05 22:53:03 +09:00
bors-servo
81655a9a99
Auto merge of #21611 - servo-wpt-sync:wpt_update_04-09-2018, r=jdm
Sync WPT with upstream (04-09-2018)

Automated downstream sync of changes from upstream as of 04-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/21611)
<!-- Reviewable:end -->
2018-09-05 08:50:42 -04:00
kingdido999
f8d850bf38 Fix comments indentation issue in gfx platform 2018-09-05 20:34:01 +08:00
bors-servo
9070d4bc65
Auto merge of #21614 - pyfisch:layout_traits-fmt, r=nox
Rustfmt layout_traits crate

Part of #21373. This is a small PR, just one function is formatted as the layout_traits crate contains only this one trait.

<!-- 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/21614)
<!-- Reviewable:end -->
2018-09-05 07:26:29 -04:00
bors-servo
d05cebdc6b
Auto merge of #21613 - pyfisch:layout_thread-fmt, r=Manishearth
Rustfmt layout_thread crate

Part of  #21373. Checked all changes looks good. 🎉 Manually removed two optional semicolons within unsafe so that it is formatted in one line.

<!-- 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/21613)
<!-- Reviewable:end -->
2018-09-05 06:33:16 -04:00
bors-servo
4d18014241
Auto merge of #21615 - pyfisch:malloc_size_of-fmt, r=Manishearth
Rustfmt malloc_size_of & derive

Part of #21373. Formatting looks good.

<!-- 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/21615)
<!-- Reviewable:end -->
2018-09-05 04:52:26 -04:00
Pyfisch
5ba4df0441 Rustfmt malloc_size_of & derive 2018-09-05 10:32:44 +02:00
Pyfisch
7566906f34 Rustfmt layout_traits crate 2018-09-05 10:16:52 +02:00
Pyfisch
840e696ad9 Rustfmt layout_thread crate 2018-09-05 10:11:10 +02:00
WPT Sync Bot
f9ee2396ab Update web-platform-tests to revision 7c50c216081d6ea3c9afe553ee7b64534020a1b2 2018-09-04 23:07:46 -04:00
kingdido999
c57c99d9f7 Format gfx platform #21373 2018-09-05 08:39:05 +08:00
Jackson Lewis
04288748ee Make file fetch asynchronous 2018-09-04 14:50:33 -07:00
bors-servo
5063ac465b
Auto merge of #21606 - asajeffrey:net2up, r=Eijebong
Update to net2 v0.2.33

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

Fixes the aarch64-linux-android build error https://github.com/rust-lang-nursery/net2-rs/pull/55

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

<!-- 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/21606)
<!-- Reviewable:end -->
2018-09-04 16:09:44 -04:00
bors-servo
04929fe527
Auto merge of #21603 - chansuke:format_webdriver_server, r=jdm
Format component of webdriver_sever

<!-- Please describe your changes on the following line: -->
Format `webdriver_server` with `rustfmt components/webdriver_server/*.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 #21373.
- [x] These changes do not require tests because they format the code 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/21603)
<!-- Reviewable:end -->
2018-09-04 15:22:35 -04:00
bors-servo
162826d6a9
Auto merge of #21583 - AgustinCB:add-task-source-name, r=jdm
Add task source name

Refactor `CommonScriptMsg::Task` to include `TaskSourceName`.

Sorry for the delay, between doing this after work and the time I spent trying to ramp up on the project, it took me a bit longer than I expected.

Test still don't pass in local, but they fail the same way on master, so I guess it's ok.

I may have forgotten something, I refactored mostly the stuff that the compiler complained about. Please let me know if I missed anything.

I tried to dump my thought process on the commit messages, so feel free to go commit by commit to understand context.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #21527

- [ ] There are tests for these changes OR
- [x] These changes do not require tests because it's mostly refactor, no new behavior added.

<!-- 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/21583)
<!-- Reviewable:end -->
2018-09-04 14:17:33 -04:00
Alan Jeffrey
f132e2e1ea Fix loader for aarch64 android build 2018-09-04 11:54:57 -05:00
Alan Jeffrey
a919da9896 Update mio to 0.6.15 2018-09-04 11:54:14 -05:00
Alan Jeffrey
cfd5085b1b Update to net2 v0.2.33 2018-09-04 11:18:45 -05:00
chansuke
511dfe8e1b Format component of webdriver_sever 2018-09-04 23:43:00 +09:00