Commit graph

17922 commits

Author SHA1 Message Date
Ms2ger
1ebe681d8d Report panics in web worker threads. 2016-05-18 12:30:10 +02:00
Emilio Cobos Álvarez
2bf4565c01
geckolib: Support constants in classes
Newest bindgen adds support for in-class statics.

This patch updates this to take them into account.
2016-05-18 11:56:15 +02:00
Anthony Ramine
c9af465ae8 Update the WebIDL parser 2016-05-18 11:30:53 +02:00
bors-servo
872565bb4b Auto merge of #11243 - Ms2ger:constellation, r=nox
Move constellation into its own crate.

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 --faster` 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 refactoring

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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11243)
<!-- Reviewable:end -->
2016-05-18 02:11:46 -07:00
Ms2ger
c652995d16 Support test-tidy --faster with moved files. 2016-05-18 11:09:29 +02:00
Ms2ger
c057ace251 Move constellation into its own crate. 2016-05-18 11:09:28 +02:00
Bobby Holley
825f610dec Regenerate bindings. 2016-05-17 23:17:52 -07:00
Ms2ger
6ad7f3cd91 Remove unnecessary bounds on arc_ptr_eq. 2016-05-17 23:17:52 -07:00
bors-servo
aa8c835d3b Auto merge of #11182 - mrmiywj:add-attribute-mutated, r=KiChjang
htmlanchorelement getter work before href setting is called

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

Either:
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11182)
<!-- Reviewable:end -->
2016-05-17 22:05:57 -07:00
mrmiywj
904e9ea17c htmlanchorelement getter work before href setting is called
update tests

rewrite it
2016-05-18 12:37:41 +08:00
bors-servo
36df00ae96 Auto merge of #11236 - mbrubeck:num_traits, r=jdm
Use num_traits in util

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11236)
<!-- Reviewable:end -->
2016-05-17 18:15:15 -07:00
bors-servo
e5c3bb8977 Auto merge of #11205 - pcwalton:avoid-needless-animation-state-changes, r=jdm
script: Avoid needless `ChangeRunningAnimationsState` messages during typical `requestAnimationFrame()` animations.

This skips useless message traffic when `requestAnimationFrame()` is
called during an animation frame callback. It reduces CPU usage of the
following snippet by 49%:

    <script>
        function foo() {
            requestAnimationFrame(foo);
        }
    </script>
    <button onclick="foo()">Start rAF</button>

Partially addresses #9844.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11205)
<!-- Reviewable:end -->
2016-05-17 17:24:46 -07:00
Matt Brubeck
aa8e214e34 Use num_traits in util 2016-05-17 17:05:18 -07:00
Matt Brubeck
8cab1d6948 Support font-style in geckolib 2016-05-17 16:59:39 -07:00
bors-servo
c519739b7b Auto merge of #11196 - fduraffourg:master, r=jdm
Add unit tests for cookies handling

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 #9965

Either:
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

Add unit tests for the `net` component about cookies. The tests are generated
with a new `mach update-net-cookies` command from this repo: https://github.com/abarth/http-state.

This PR also includes two trivial bug fixes about cookie handling.

From all the tests included, the following ones are currently failing:

- cookie_http_state::test_0003
- cookie_http_state::test_0006
- cookie_http_state::test_attribute0004
- cookie_http_state::test_attribute0005
- cookie_http_state::test_attribute0007
- cookie_http_state::test_attribute0008
- cookie_http_state::test_domain0017
- cookie_http_state::test_mozilla0001
- cookie_http_state::test_mozilla0002
- cookie_http_state::test_mozilla0003
- cookie_http_state::test_mozilla0005
- cookie_http_state::test_mozilla0007
- cookie_http_state::test_mozilla0009
- cookie_http_state::test_mozilla0010
- cookie_http_state::test_mozilla0013

`test_000[36]` and `test_mozilla*` are failing because there is currently no
method to clean a `net::cookie_storage` from expired cookies.

`test_attribute000[4578]` are failing because hyper does not parse the `Secure`
attribute correctly. I will open an issue on the upstream project.

`test_domain0017` fails because the TLD .org is not on the PUB_DOMAINS list.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11196)
<!-- Reviewable:end -->
2016-05-17 16:34:16 -07:00
bors-servo
6c08ad857e Auto merge of #11191 - servo:bitflags, r=pcwalton
Update bitflags to 0.7

- [x] https://github.com/servo/cocoa-rs/pull/126 https://github.com/servo/cocoa-rs/pull/127 https://github.com/servo/cocoa-rs/pull/128 https://github.com/servo/glutin/pull/91
- [x] https://github.com/cyderize/rust-websocket/pull/78
- [x] https://github.com/sfackler/rust-openssl/pull/393
- [x] https://github.com/PistonDevelopers/image-png/pull/36
- [x] https://github.com/servo/rust-selectors/pull/87
- [x] https://github.com/vberger/wayland-kbd/pull/12
- [x] https://github.com/vberger/wayland-client-rs/pull/50
- [x] https://github.com/netvl/xml-rs/pull/122 https://github.com/netvl/xml-rs/pull/123

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11191)
<!-- Reviewable:end -->
2016-05-17 15:43:14 -07:00
Anthony Ramine
3cda52c6a4 Disallow bitflags dupes again 2016-05-18 00:23:18 +02:00
Anthony Ramine
9f4c04ca13 Update wayland-kbd to 0.3.6 2016-05-18 00:23:17 +02:00
Anthony Ramine
f65db3756b Update wayland-client to 0.5.12 2016-05-18 00:23:16 +02:00
Anthony Ramine
b2a0b0f620 Update openssl to 0.7.12 2016-05-18 00:23:15 +02:00
Anthony Ramine
7682f4c3f9 Update png to 0.5.1 2016-05-18 00:23:13 +02:00
Anthony Ramine
736dad868d Update xml-rs to 0.3.4 2016-05-18 00:23:12 +02:00
Anthony Ramine
0aeb110bc8 Update selectors to 0.5.9 2016-05-18 00:23:11 +02:00
Anthony Ramine
d58ec5ab14 Update websocket to 0.17.1 2016-05-18 00:23:10 +02:00
Anthony Ramine
ff5aace4a5 Update cocoa to 0.4.1 and servo-glutin to 0.4.21 2016-05-18 00:22:43 +02:00
bors-servo
e0addae51c Auto merge of #11222 - KiChjang:stylo-keywords, r=bholley
Add -moz-user-* CSS longhands for Gecko

- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy --faster` does not report any errors
- [x] These changes do not require tests because stylo

r? @bholley

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11222)
<!-- Reviewable:end -->
2016-05-17 14:57:32 -07:00
Anthony Ramine
b9cda99ca5 Update internal crates to bitflags 0.7 2016-05-17 23:34:04 +02:00
Anthony Ramine
d580226a9c Reorder dependencies in many Cargo.toml files 2016-05-17 23:34:02 +02:00
bors-servo
02399d90c1 Auto merge of #11211 - nox:test-wpt-pref, r=jgraham
Implement --pref in test-wpt

Needed to test GC zeal.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11211)
<!-- Reviewable:end -->
2016-05-17 12:35:45 -07:00
Patrick Walton
8a83261b61 script: Avoid needless ChangeRunningAnimationsState messages during
typical `requestAnimationFrame()` animations.

This skips useless message traffic when `requestAnimationFrame()` is
called during an animation frame callback. It reduces CPU usage of the
following snippet by 49%:

    <script>
        function foo() {
            requestAnimationFrame(foo);
        }
    </script>
    <button onclick="foo()">Start rAF</button>

Partially addresses #9844.
2016-05-17 10:24:53 -07:00
bors-servo
a5cfbb226e Auto merge of #10190 - Ms2ger:framechain, r=jdm
Remove JS_SaveFrameChain and JS_RestoreFrameChain calls.

They were cargo-culted from Gecko, where they haven't been necessary for a
while either.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10190)
<!-- Reviewable:end -->
2016-05-17 10:14:14 -07:00
Ms2ger
5242342aff Stop re-rooting CallSetup::exception_compartment. 2016-05-17 16:32:05 +02:00
Ms2ger
e4db7b6e9c Remove JS_SaveFrameChain and JS_RestoreFrameChain calls.
They were cargo-culted from Gecko, where they haven't been necessary for a
while either.
2016-05-17 16:32:04 +02:00
bors-servo
82036b57c7 Auto merge of #11231 - servo:rustup, r=Ms2ger
Update Rust to 1.10.0-nightly (cd6a40017 2016-05-16)

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11231)
<!-- Reviewable:end -->
2016-05-17 07:04:12 -07:00
Anthony Ramine
60aaac5175 Remove the custom PartialEq implementations on TypeId enums
https://github.com/rust-lang/rust/pull/33593 made them useless.
2016-05-17 15:30:14 +02:00
Anthony Ramine
2ab7f1366c Update Rust to 1.10.0-nightly (cd6a40017 2016-05-16) 2016-05-17 15:21:18 +02:00
bors-servo
985086501a Auto merge of #11230 - Ms2ger:request, r=nox
Remove Request handling from CallSetup.

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 --faster` 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 no behaviour changes

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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11230)
<!-- Reviewable:end -->
2016-05-17 06:16:25 -07:00
bors-servo
8bfeea5f20 Auto merge of #11229 - Ms2ger:create_layout_font, r=emilio
Simplify FontContext::create_layout_font.

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 --faster` 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 refactoring

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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11229)
<!-- Reviewable:end -->
2016-05-17 05:30:53 -07:00
Ms2ger
a2bb595974 Remove Request handling from CallSetup. 2016-05-17 14:17:22 +02:00
Ms2ger
a732c3ff76 Simplify FontContext::create_layout_font. 2016-05-17 14:08:43 +02:00
Keith Yeung
4f4d4cb7b4 Add -moz-user-input 2016-05-17 04:24:00 -04:00
Florian Duraffourg
4fb53c8256 Correct cookie handling behavior
- Cookies with empty values are not to be ignored as per RFC6265
- A space should separate two cookie-pairs as per RFC6265 section
  4.2.1
2016-05-17 10:13:47 +02:00
Florian Duraffourg
8b9b36454c Add unit tests for cookies base on abarth/http-state github repo
- Add unit tests
- Add a mach command to update cookie's unit tests
2016-05-17 10:13:26 +02:00
Keith Yeung
ff98e44654 Add -moz-user-select 2016-05-17 04:12:20 -04:00
Keith Yeung
ac9c411d18 Add -moz-user-modify 2016-05-17 04:12:18 -04:00
Keith Yeung
5e2f52df23 Add -moz-user-focus 2016-05-17 04:12:17 -04:00
bors-servo
fe4061e0ec Auto merge of #11213 - canaltinova:compositing, r=mbrubeck
Remove num-traits from compositing

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 --faster` does not report any errors
- [X] These changes fix #11198 (github issue number if applicable).

Either:
- [ ] There are tests for these changes OR
- [X] These changes do not require tests

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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11213)
<!-- Reviewable:end -->
2016-05-16 18:16:22 -07:00
bors-servo
db5846ed7d Auto merge of #11215 - nox:greener-than-hulk, r=mbrubeck
Do not use libc in profile on Windows

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11215)
<!-- Reviewable:end -->
2016-05-16 17:24:16 -07:00
Anthony Ramine
7bc768f358 Do not use libc in profile on Windows 2016-05-17 01:12:10 +02:00
bors-servo
28e8d31c5d Auto merge of #11207 - mbrubeck:vertical-align, r=bholley
Support vertical-align in geckolib

r? @bholley

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11207)
<!-- Reviewable:end -->
2016-05-16 16:03:00 -07:00