Commit graph

17187 commits

Author SHA1 Message Date
Anthony Ramine
f89c321141 Bump euclid to 0.6.4 2016-03-09 20:15:11 +01:00
Anthony Ramine
200e2286fd Bump cssparser to 0.5.4 2016-03-09 20:14:38 +01:00
Anthony Ramine
7771f28a22 Bump core-text to 1.1 2016-03-09 20:14:37 +01:00
Anthony Ramine
5dc9fa0c17 Bump azure to 0.4.3 2016-03-09 20:14:36 +01:00
Anthony Ramine
5720c76816 Bump app_units to 0.2.3 2016-03-09 20:14:35 +01:00
bors-servo
25c6c29a27 Auto merge of #9941 - Ms2ger:tidy-ignore, r=jdm
Update the list of files tidy ignores.

The deque file was removed in favour of an external crate.

The sync and sync_css directories are automatically created when updating the
in-tree copies of the wpt and css tests.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9941)
<!-- Reviewable:end -->
2016-03-09 21:44:35 +05:30
bors-servo
0359fb8ed8 Auto merge of #9940 - Ms2ger:fetch-warnings, r=asajeffrey
Fix warnings in the fetch code.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9940)
<!-- Reviewable:end -->
2016-03-09 20:51:30 +05:30
Ms2ger
7e7495366c Update the list of files tidy ignores.
The deque file was removed in favour of an external crate.

The sync and sync_css directories are automatically created when updating the
in-tree copies of the wpt and css tests.
2016-03-09 16:18:23 +01:00
Ms2ger
3e3053653e Fix warnings in the fetch code. 2016-03-09 16:12:15 +01:00
bors-servo
31bdcbe725 Auto merge of #9937 - sorpaas:fix/cygwin, r=Wafflespeanut
Detect Cygwin environment on Windows

Currently if Servo is built using Cygwin, it is incorrectly classified as "unknown" host, which makes downloading Rust and Cargo fail. This pull request fixes that.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9937)
<!-- Reviewable:end -->
2016-03-09 17:53:01 +05:30
bors-servo
4f08caa5a6 Auto merge of #9934 - kaksmet:update-jpeg-decoder, r=metajack
Update jpeg-decoder

This brings performance improvements and fixes a bug which was causing some progressive JPEGs to fail decoding.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9934)
<!-- Reviewable:end -->
2016-03-09 16:59:58 +05:30
bors-servo
4d2040b31b Auto merge of #9906 - glennw:bump-gleam, r=ecoal95
Update gleam 0.2.6 -> 0.2.8

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9906)
<!-- Reviewable:end -->
2016-03-09 16:07:01 +05:30
bors-servo
162e89d8c6 Auto merge of #9780 - bobthekingofegypt:github_hsts_bug, r=jdm
correctly send secure cookies after hsts url match

Fixes #8100, where sites in the hsts list were not recieving secure
cookies if the site was originally loading using a plain http url.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9780)
<!-- Reviewable:end -->
2016-03-09 15:13:52 +05:30
Wei Tang
cc1bb8d5df Detect Cygwin environment on Windows
Currently if Servo is built using Cygwin, it is incorrectly classified
as "unknown" host, which makes downloading Rust and Cargo fail. This
commit fixes that.
2016-03-09 10:55:22 +08:00
Ulf Nilsson
d08d3f4b50 Update jpeg-decoder 2016-03-09 01:17:35 +01:00
bors-servo
ebe7d9ebfb Auto merge of #9923 - Ms2ger:response-new, r=jdm
Make Response::new() an inherent method.

There is no real reason to put this in an extension trait.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9923)
<!-- Reviewable:end -->
2016-03-08 22:25:57 +05:30
Ms2ger
8b629652ac Make Response::new() an inherent method.
There is no real reason to put this in an extension trait.
2016-03-08 17:55:18 +01:00
bors-servo
5fbed88248 Auto merge of #9886 - nox:unstable-feature, r=SimonSapin
Make Cargo share more things between servo and ports

This should enable Cargo to reuse more build artifacts between servo and geckolib.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9886)
<!-- Reviewable:end -->
2016-03-08 20:03:24 +05:30
bors-servo
be5b292078 Auto merge of #9910 - bombless:patch-1, r=SimonSapin
Add link for README

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9910)
<!-- Reviewable:end -->
2016-03-08 18:18:29 +05:30
bors-servo
a96b2360a9 Auto merge of #9920 - vishy1618:issue_9912, r=Ms2ger
Remove unused cell_extras feature gates. Fixes #9912

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9920)
<!-- Reviewable:end -->
2016-03-08 17:25:16 +05:30
Suvish Varghese Thoovamalayil
de68820e76 Remove unused cell_extras feature gates. Fixes #9912 2016-03-08 16:56:13 +05:30
bors-servo
60d97c3112 Auto merge of #9898 - nox:fix-private-in-public, r=Ms2ger
Properly use "pub extern crate"

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9898)
<!-- Reviewable:end -->
2016-03-08 15:26:50 +05:30
York Xiang
8940260092 Add link for README 2016-03-08 16:14:01 +08:00
bors-servo
e3bea4f887 Auto merge of #9908 - UK992:tidy-fix, r=ecoal95
Check tidy for "support/android/build-apk/"

Fixes  #9893
r? @ecoal95

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9908)
<!-- Reviewable:end -->
2016-03-08 12:27:08 +05:30
bors-servo
1453f43825 Auto merge of #9894 - servo:strip-priv-imports, r=Ms2ger
Use rustdoc’s new `--passes strip-priv-imports` flag.

https://github.com/rust-lang/rust/pull/32055

This will make e.g. http://doc.servo.org/servo/index.html#reexports stop listing `extern crate` and `use` statements that don’t have `pub`.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9894)
<!-- Reviewable:end -->
2016-03-08 09:46:29 +05:30
bors-servo
b6e469cbde Auto merge of #9903 - servo:ref-filter-map, r=nox
Replace usage of deprecated std::cell::Ref::filter_map

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9903)
<!-- Reviewable:end -->
2016-03-08 08:52:45 +05:30
Anthony Ramine
d59cad2dd9 Enable query_encoding in geckolib
This allows the reuse of teh build artifacts of url and all the things that
depends on it between servo and geckolib.
2016-03-08 02:51:08 +01:00
Anthony Ramine
b7ef9ed97a Enable nightly feature for serde in style
Some external dependencies (at least webrender_traits) present only in servo
and not in geckolib use it already and this prevents Cargo to reuse build
artifacts depending on serde between the two targets.
2016-03-08 02:51:06 +01:00
Anthony Ramine
5f2a69b3b7 Use release_max_level_info in all ports 2016-03-08 02:50:41 +01:00
Anthony Ramine
80bcbcb966 Use the unstable feature of string_cache and selectors in geckolib
This should enable Cargo to reuse more build artifacts between servo and geckolib.
2016-03-08 02:49:17 +01:00
bors-servo
e8aeebbac5 Auto merge of #9896 - Swatinem:rename_utf16, r=Ms2ger
rename deprecated utf16_units to encode_utf16

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9896)
<!-- Reviewable:end -->
2016-03-08 06:32:43 +05:30
UK992
193fc1f84e Tidy fix 2016-03-08 01:38:49 +01:00
UK992
607cd5923e check tidy for support/android/build-apk/ 2016-03-08 01:38:35 +01:00
Glenn Watson
e2af261361 Update gleam 0.2.6 -> 0.2.8 2016-03-08 09:31:32 +10:00
bors-servo
fee7cb179e Auto merge of #9850 - nikkisquared:2_async_2_furious, r=jdm
Set response.body Asynchronously In Fetch

Following having finished making Fetch asynchronous, response.body should be set asynchronously, since it's the major goal of calling Fetch. So far, I've made the body wrapped in Arc<Mutex<>>, and I've wrapped a new thread around the part where it's set. I've also discovered that the fetch_async function makes step 8 of Main Fetch obsolete, and I've commented it appropriately.

I'm currently having a hard time with the thread for setting response.body, though. @jdm suggested I have the body set continually, block by block, but my implementation for that runs so slow that I can't finish running my fetch test suite in reasonable time. @KiChjang pointed out that a lot of the lag is due to how response.body currently stores everything inside a Vec. Changing the storage container seems to be both necessary and beyond the scope of the time I have to work on this.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9850)
<!-- Reviewable:end -->
2016-03-08 04:45:25 +05:30
bors-servo
7308205bfc Auto merge of #9901 - servo:css-20160307, r=Ms2ger
Update CSS tests to revision 5366390418de396cdf7c9d45fbaedbed81dc4a61

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9901)
<!-- Reviewable:end -->
2016-03-08 03:51:45 +05:30
Nikki
b187985e49 set response.body asynchronously in Fetch 2016-03-07 15:09:39 -07:00
bors-servo
41864c4524 Auto merge of #9871 - creativcoder:fix-tidy-single-import, r=Wafflespeanut
tidy fix for longer single line imports

Fixes #9864

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9871)
<!-- Reviewable:end -->
2016-03-08 01:06:08 +05:30
Simon Sapin
62034b956e Replace usage of deprecated std::cell::Ref::filter_map 2016-03-07 18:53:38 +01:00
Ms2ger
3a73a2452e Update CSS tests to revision 5366390418de396cdf7c9d45fbaedbed81dc4a61 2016-03-07 18:44:47 +01:00
Rahul Sharma
9e887157e3 tidy fix for longer single line imports 2016-03-07 23:04:03 +05:30
Anthony Ramine
c424d54c67 Properly use "pub extern crate" 2016-03-07 17:13:46 +01:00
bors-servo
1330e7e58f Auto merge of #9892 - Ms2ger:imagecache, r=jdm
ImageCache cleanup.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9892)
<!-- Reviewable:end -->
2016-03-07 21:30:30 +05:30
Arpad Borsos
c880c97b1b rename deprecated utf16_units to encode_utf16 2016-03-07 16:14:04 +01:00
Simon Sapin
f787e1a07b Use rustdoc’s new --passes strip-priv-imports flag.
https://github.com/rust-lang/rust/pull/32055

This will make e.g. http://doc.servo.org/servo/index.html#reexports
stop listing `extern crate` and `use` statements that don’t have `pub`.
2016-03-07 15:03:32 +01:00
bors-servo
dedae5e459 Auto merge of #9891 - cengizIO:master, r=ecoal95
Replace deprecated fs::walk_dir call with walkdir crate

While working on #8351 I discovered that deprecated fs::walk_dir is used in android support files.

This is my first PR to any Rust project, so any constructive feedback is more than welcome!

Thanks

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9891)
<!-- Reviewable:end -->
2016-03-07 19:16:02 +05:30
Ms2ger
d5b559c37c Bonus fix: Rewrite get_image_or_meta_if_available in an imperative style.
I believe this is more readable.
2016-03-07 14:30:23 +01:00
Ms2ger
1064c3dca0 Move the receivers out of the ImageCache struct. 2016-03-07 14:29:49 +01:00
Ms2ger
9c75ddfe66 Inline ImageCache::do_run. 2016-03-07 14:15:47 +01:00
Ms2ger
9c4f2265d0 Use the select! macro in ImageCacheThread. 2016-03-07 14:13:33 +01:00