Commit graph

33063 commits

Author SHA1 Message Date
Anthony Ramine
585006a808 Clean some weird WebSocket test expectations 2018-04-03 17:03:48 +02:00
bors-servo
6b7957d9a0
Auto merge of #20517 - Eijebong:fix_log, r=mbrubeck
Fix the env_logger update

When building an env_logger, we need to pass it the environment,
otherwise it just takes some defaults and doesn't log anything.

<!-- 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/20517)
<!-- Reviewable:end -->
2018-04-03 09:14:41 -04:00
Anthony Ramine
4b032f9191 Properly implement the WebGL2 mixin
It should not extend the WebGL1 mixin.
2018-04-03 14:17:11 +02:00
Anthony Ramine
938f1362e7 Update the WebIDL parser 2018-04-03 14:06:07 +02:00
Anthony Ramine
866a523914 Properly use Float32List and Int32List for WebGL uniform methods 2018-04-03 12:22:32 +02:00
Bastien Orivel
04d1e12806 Fix the env_logger update
When building an env_logger, we need to pass it the environment,
otherwise it just takes some defaults and doesn't log anything.
2018-04-03 12:03:41 +02:00
Anthony Ramine
088ebcb095 Remove obsolete BufferDataSource 2018-04-03 11:15:54 +02:00
Anthony Ramine
a82164d8a5 Clean up signature of some fallible WebGL methods 2018-04-03 10:51:26 +02:00
Anthony Ramine
84adede785 Clean up WebGLRenderingContext.webidl 2018-04-03 10:51:26 +02:00
bors-servo
20db733f8e
Auto merge of #20510 - servo-wpt-sync:wpt_update_02-04-2018, r=jdm
Sync WPT with upstream (02-04-2018)

Automated downstream sync of changes from upstream as of 02-04-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/20510)
<!-- Reviewable:end -->
2018-04-03 03:54:22 -04:00
bors-servo
0a3ffc0c60
Auto merge of #20508 - nnethercote:bug-1448225, r=emilio
Convert StylePrefs to StaticPrefs.

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

This is the Servo part of https://bugzilla.mozilla.org/show_bug.cgi?id=1448225.
---
<!-- 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 https://bugzilla.mozilla.org/show_bug.cgi?id=1448225

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because tested on the Gecko side.

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

r? emilio

<!-- 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/20508)
<!-- Reviewable:end -->
2018-04-03 01:54:24 -04:00
WPT Sync Bot
04276c4e1f Update web-platform-tests to revision 5b68d219206139c0bfeec65c88e765749aed57fb 2018-04-02 23:07:13 -04:00
bors-servo
9cd60c8e78
Auto merge of #20447 - Brody-Eastwood:master, r=jdm
NCSU Canvas Rendering Project Initial Steps

<!-- Please describe your changes on the following line: -->
Implements the initial steps from:

https://github.com/servo/servo/wiki/Canvas-rendering-project

---
<!-- 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 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/20447)
<!-- Reviewable:end -->
2018-04-02 22:24:34 -04:00
Brody Eastwood
8a1590efc6 Add unique canvas IDs to all canvas operations. 2018-04-02 22:02:22 -04:00
Nicholas Nethercote
8705fb3783 Convert StylePrefs to StaticPrefs. 2018-04-03 11:41:03 +10:00
bors-servo
a208d4246c
Auto merge of #20501 - emilio:parsing-style, r=nox
style: Use a more consistent style for parsing functions.

<!-- 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/20501)
<!-- Reviewable:end -->
2018-04-02 13:36:01 -04:00
Emilio Cobos Álvarez
15c416b133
style: Use a more consistent style for parsing functions. 2018-04-02 19:34:58 +02:00
bors-servo
39018f9339
Auto merge of #20481 - emilio:debug-wat, r=nox
style: Derive a debug impl instead of implementing by hand.

<!-- 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/20481)
<!-- Reviewable:end -->
2018-04-02 12:09:29 -04:00
bors-servo
c0bf170a11
Auto merge of #20504 - jdm:unbreak, r=bustage
Hide non-Servo heap measurement.

This hides the changes in #20391 from Gecko builds that use the malloc_size_of crate.

<!-- 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/20504)
<!-- Reviewable:end -->
2018-04-02 10:40:02 -04:00
Josh Matthews
54c44a2751 Hide non-Servo heap measurement. 2018-04-02 10:21:18 -04:00
bors-servo
8f226f841b
Auto merge of #20391 - modal17:iss19251, r=jdm
Measure cache memory usage

<!-- Please describe your changes on the following line: -->
- [X] make the memory cache data structure derive MallocSizeOf
- [X] add a new IpcReceiver argument to ResourceChannelManager::start that is used for listening to messages from the memory profiler (it must correspond with this sender)
- [X] use run_with_memory_reporting in the network code to register a memory reporter for that thread
- [X] when a message from the memory profiler arrives, create a report that includes that size of the public and private http caches

---
<!-- 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 #19251 (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/20391)
<!-- Reviewable:end -->
2018-04-02 02:01:50 -04:00
bors-servo
3c59a1f353
Auto merge of #20502 - servo-wpt-sync:wpt_update_01-04-2018, r=jdm
Sync WPT with upstream (01-04-2018)

Automated downstream sync of changes from upstream as of 01-04-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/20502)
<!-- Reviewable:end -->
2018-04-02 00:50:06 -04:00
WPT Sync Bot
a57e1a4320 Update web-platform-tests to revision 3589b85af366d5c53bf03cfeb5e0ccb3ac2a38e9 2018-04-01 23:17:45 -04:00
bors-servo
ca7463df9e
Auto merge of #20500 - emilio:1105111, r=xidorn
style: Add support for 'flex-basis:content' in the style system.

Bug: 1105111
Reviewed-by: xidorn
MozReview-Commit-ID: 5WhgHJJ0mDB

<!-- 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/20500)
<!-- Reviewable:end -->
2018-04-01 21:18:27 -04:00
Emilio Cobos Álvarez
ac088b4a72
style: Update bindings. 2018-04-02 03:17:57 +02:00
Emilio Cobos Álvarez
744809a8b2
style: Add support for 'flex-basis:content' in the style system.
Bug: 1105111
Reviewed-by: xidorn
MozReview-Commit-ID: 5WhgHJJ0mDB
2018-04-02 03:17:56 +02:00
bors-servo
1e2411d2c5
Auto merge of #20499 - emilio:1398537, r=emilio,dholbert
style: Implement percentages for 'column-gap'.

Bug: 1398537
Reviewed-by: emilio,dholbert
2018-04-01 18:59:15 -04:00
Mats Palmgren
3532f64b32
[css-multicol] style: Implement percentages for 'column-gap'.
Bug: 1398537
Reviewed-by: emilio,dholbert
2018-04-02 00:56:45 +02:00
modal-d17
af445a357d Measure cache memory usage (#19251):
Made the memory cache data structure derive MallocSizeOf, along with
manual size_of() implementations in malloc_size_of.

Added a Measurable struct that acts as a container for fields size_of() can be called for.

Added a new IpcReceiver used for listening to messages from the memory profiler,
and used run_with_memory reporting to register a memory reporter in the thread.
Now when a message from the memory profiler arrives, report includes sizes of public and private http caches.

Updated test file.
2018-04-01 13:30:57 -04:00
bors-servo
9677d5c1ba
Auto merge of #20495 - LiHaoTan:move-text-emphasis-position, r=emilio
Move `text-emphasis-position` outside of mako

<!-- 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` and `./mach build-geckolib` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fixes #19961

- [X] These changes do not require tests because this is refactoring.

~Just as a sanity check I ran `./mach test-wpt tests/wpt/web-platform-tests/css/css-text-decor/text-emphasis-position-above-left-001.xht` though I'm not sure if I'm correct since we are also building for `geckolib`. I guess the buildbot will make sure to run all the relevant tests anyway.~ I guess Travis and AppVeyor will run the web platform tests before the buildbot run all the tests later on.

<!-- 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/20495)
<!-- Reviewable:end -->
2018-04-01 12:00:08 -04:00
Li Hao Tan
8d5a2a9aeb Refactor text-emphasis-position to use ${helpers.predefined_type(..)} 2018-04-01 21:12:01 +08:00
Fausto Núñez Alberro
b175a156e3
Add build-geckolib checkbox to pull request template 2018-03-31 15:04:13 +02:00
Bastien Orivel
f12b7bbd7a Bump walkdir 2018-03-31 12:22:36 +02:00
bors-servo
f7a495afa7
Auto merge of #20483 - fabricedesre:port-cleanup, r=paulrouget
Cleanup ports/servo to only rely on libservo

<!-- Please describe your changes on the following line: -->
When using `ports/servo` as a starting point for an embedding, it's easier if it only relies on the `libservo` crate and not directly on `components` ones. Since `libservo` reexports all the modules we need, it's a straightforward fix.

---
<!-- 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: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because There are no relevant tests, and no real code change.

<!-- 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/20483)
<!-- Reviewable:end -->
2018-03-31 03:05:34 -04:00
Fabrice Desré
bab1394146 Cleanup ports/servo to only rely on libservo 2018-03-30 22:55:23 -07:00
bors-servo
260051da3c
Auto merge of #20484 - servo-wpt-sync:wpt_update_30-03-2018, r=jdm
Sync WPT with upstream (30-03-2018)

Automated downstream sync of changes from upstream as of 30-03-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/20484)
<!-- Reviewable:end -->
2018-03-30 23:35:39 -04:00
WPT Sync Bot
09b1413275 Update web-platform-tests to revision fc33be9acfbf8e883fd9683c527aab22d842542b 2018-03-30 23:11:51 -04:00
bors-servo
107fd47b93
Auto merge of #20479 - emilio:anon-child-bit, r=upsuper
style: Add a fast path to each_anonymous_content_child.

If we know that we don't have anon children it is pointless to go through FFI.

<!-- 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/20479)
<!-- Reviewable:end -->
2018-03-30 20:31:36 -04:00
Emilio Cobos Álvarez
ec0c4f396a
style: Derive a debug impl instead of implementing by hand. 2018-03-31 00:53:47 +02:00
Emilio Cobos Álvarez
f815d2f9c6
style: Add a fast path to each_anonymous_content_child.
If we know that we don't have anon children it is pointless to go through FFI.
2018-03-30 21:06:34 +02:00
bors-servo
d232705106
Auto merge of #20454 - emilio:rustup, r=SimonSapin
Update to rust version 1.26.0-nightly (188e693b3 2018-03-26)

<!-- 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/20454)
<!-- Reviewable:end -->
2018-03-29 09:12:45 -04:00
bors-servo
0c148809c1
Auto merge of #20434 - nupurbaghel:typed-array-xml, r=jdm
Typed array support for XMLHttpRequest's send API

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

<!-- Either: -->
- [x] Updated some 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/20434)
<!-- Reviewable:end -->
2018-03-29 02:02:37 -04:00
Nupur Baghel
3f06ccb1ac updated the test files due to typed array support 2018-03-29 11:29:26 +05:30
Nupur Baghel
2009c4e481 typed array support for XMLHttpRequest's send API 2018-03-29 11:10:00 +05:30
bors-servo
a69eceefc9
Auto merge of #20469 - servo-wpt-sync:wpt_update_28-03-2018, r=jdm
Sync WPT with upstream (28-03-2018)

Automated downstream sync of changes from upstream as of 28-03-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/20469)
<!-- Reviewable:end -->
2018-03-28 23:12:04 -04:00
WPT Sync Bot
0a3e19aac8 Update web-platform-tests to revision 592e2ed83ecd717392d37047536250ba74f1bafa 2018-03-28 22:44:05 -04:00
bors-servo
c8b0dc965d
Auto merge of #20468 - Eijebong:fix_log, r=mbrubeck
Fix style/build_gecko.rs for log 0.4

<!-- 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/20468)
<!-- Reviewable:end -->
2018-03-28 17:18:31 -04:00
Bastien Orivel
8d738a5048 Fix style/build_gecko.rs for log 0.4 2018-03-28 23:08:01 +02:00
bors-servo
914952487b
Auto merge of #20246 - marmistrz:test-lifetime-handles, r=jdm
Use higher level handles from JS bindings

…reak servo

<!-- 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 https://github.com/servo/rust-mozjs/issues/153

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because this is just migration to a lifetimed API
<!-- 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/20246)
<!-- Reviewable:end -->
2018-03-28 16:22:01 -04:00
Marcin Mielniczuk
356c57e628 Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393 2018-03-28 21:28:30 +02:00