Commit graph

15947 commits

Author SHA1 Message Date
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
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
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
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
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
Ms2ger
6de127a343 Move the ImageCacheThread's closure into a function. 2016-03-07 14:08:41 +01:00
Cengiz Can
12100edffc Replace deprecated fs::walk_dir call with walkdir crate 2016-03-07 14:12:05 +02:00
bors-servo
743e0c9c87 Auto merge of #9888 - servo:rustup, r=Manishearth
Update to Rust 2016-03-05

Blocked by https://github.com/Manishearth/rust-tenacious/pull/14.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9888)
<!-- Reviewable:end -->
2016-03-06 16:33:42 +05:30
Anthony Ramine
7c1dd54895 Update to Rust 2016-03-05 2016-03-06 10:36:49 +01:00
bors-servo
97e29f3f2c Auto merge of #9884 - Manishearth:appveyor-homu, r=metajack
Make appveyor run on auto branch

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9884)
<!-- Reviewable:end -->
2016-03-06 09:43:42 +05:30
bors-servo
64fb09ca2d Auto merge of #9800 - Wafflespeanut:node_attrs, r=nox
fixed the last failing test in dom/nodes/attributes.html

r? @nox

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9800)
<!-- Reviewable:end -->
2016-03-05 21:32:46 +05:30
bors-servo
1edabe1673 Auto merge of #9885 - nox:bump-regex, r=ecoal95
Bump regex and regex-syntax

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9885)
<!-- Reviewable:end -->
2016-03-05 20:28:25 +05:30
Anthony Ramine
c5af2f27c3 Bump regex and regex-syntax 2016-03-05 15:51:51 +01:00
Manish Goregaokar
5bd795fc0a Make appveyor run on auto branch 2016-03-05 17:55:26 +05:30
Ravi Shankar
aaf2888d0b Updated SupportedPropertyNames in NamedNodeMap to match spec 2016-03-05 17:21:01 +05:30
bors-servo
02e75f6d86 Auto merge of #9880 - larsbergstrom:cargoup, r=SimonSapin
Update cargo

Confirmed locally that it fixes #9794 (thanks, @alexcrichton!).

r? @nox @metajack

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9880)
<!-- Reviewable:end -->
2016-03-05 12:48:03 +05:30
bors-servo
6e3e41ef1a Auto merge of #9883 - glennw:update-ipc-channel, r=frewsxcv
Update ipc-channel.

Fixes #9882.
2016-03-05 11:06:06 +05:30
Glenn Watson
52fa387383 Update ipc-channel.
Fixes #9882.
2016-03-05 15:34:00 +10:00
bors-servo
69f52d0f21 Auto merge of #9873 - metajack:mach-run-bhtml, r=ecoal95
Adds browserhtml dependency and mach run --browserhtml

This makes the experience for testing browserhtml super easy.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9873)
<!-- Reviewable:end -->
2016-03-05 04:33:18 +05:30
Jack Moffitt
96cbe7ac97 Add --browserhtml/-b command to ./mach run
This will run Servo with browser.html. We use the latest package in the
dependency tree if there are multiple copies, since there is no way for
Cargo to tell us which one is canonical.
2016-03-04 15:07:32 -07:00
Lars Bergstrom
f2e7061522 Update cargo 2016-03-04 15:56:25 -06:00
bors-servo
49e9594fb9 Auto merge of #9852 - bholley:stylo_uplifts_3, r=bholley
Stylo uplifts 3

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9852)
<!-- Reviewable:end -->
2016-03-05 01:48:35 +05:30
Bobby Holley
dbbbebd664 Parse ServoBindings.h as C++.
This allows us to remove the bool-as-int contortions we were doing before.
2016-03-04 11:46:35 -08:00
Bobby Holley
23ace489b9 Binding generator tooling.
This should make it a lot easier for people to bootstrap and run the binding generator.
2016-03-04 11:46:33 -08:00
Bobby Holley
4da1171474 Stop using servo UA stylesheets for geckolib.
Gecko will provide these. This also removes the need to reference
the servo resource directory.
2016-03-04 11:46:32 -08:00
bors-servo
b46d2e2737 Auto merge of #9875 - servo:overflow-clip-box, r=mbrubeck
Hide overflow of <input>

Fix #9477

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9875)
<!-- Reviewable:end -->
2016-03-05 00:53:33 +05:30
Simon Sapin
79656278f2 Hide overflow of <input>, fix #9477 2016-03-04 19:48:19 +01:00
Simon Sapin
142610265e Add the -servo-overflow-clip-box property. 2016-03-04 19:47:20 +01:00
Simon Sapin
7126fdfc10 Add a mechanism for "internal" CSS properties
… that can only be parsed in a user-agent stylesheet.
2016-03-04 19:46:54 +01:00
Jack Moffitt
1615f173f7 Add browserhtml package 2016-03-04 10:23:27 -07:00
bors-servo
b4cae84e9e Auto merge of #9872 - servo:cursor-text, r=nox
Use `cursor: text` in text input areas

… not just over text.

Fix #9486.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9872)
<!-- Reviewable:end -->
2016-03-04 20:14:56 +05:30
Simon Sapin
428dab1069 Use cursor: text in text input areas
… not just over text.

Fix #9486.
2016-03-04 15:44:39 +01:00
bors-servo
c37a086660 Auto merge of #9786 - peterjoel:fix_codegen_is_array_like, r=jdm
Fixed compile error in generated code, when webidl constructors have same number of args

One of the ways that generated code differentiates constructors is by comparing if the args are array-like. The generated code was calling a function `IsArrayLike` that no longer exists. I re-implemented it with a more rust-like naming scheme.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9786)
<!-- Reviewable:end -->
2016-03-04 15:14:20 +05:30
bors-servo
12466b8706 Auto merge of #9866 - metajack:refix-shadow-hit-test, r=pcwalton
Unrevert the fix for hit testing through shadows

This was originally #9428 but got accidentally reverted during rebase in

Fixes #9865.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9866)
<!-- Reviewable:end -->
2016-03-04 08:36:12 +05:30
bors-servo
08b9fe0c00 Auto merge of #9863 - larsbergstrom:appveyor2, r=edunham
Fix Windows build and add AppVeyor support

Proof of success: https://ci.appveyor.com/project/larsbergstrom/servo/build/1.0.15

Fixes #9767

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9863)
<!-- Reviewable:end -->
2016-03-04 07:41:08 +05:30
bors-servo
1c63bf9822 Auto merge of #9861 - pcwalton:superflat, r=glennw
Flatten the WebRender API to allow us to use shared memory to transfer display lists.

Improves performance significantly.

Requires servo/webrender_traits#15 and servo/webrender#222.

r? @glennw

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9861)
<!-- Reviewable:end -->
2016-03-04 06:45:45 +05:30
bors-servo
aba500a698 Auto merge of #9858 - glennw:anim-smoothness, r=pcwalton
Fix animation smoothness when using requestAnimationFrame.

Previously, the flow for ticking animations was:

Compositor -> Constellation -> Layout -> Script

However, this means that the compositor <-> layout messages can thrash, meaning layout thread is very rarely idle.

This means that the script thread (which joins on the layout thread during reflow) was unable to execute and run rAF callbacks.

With this change, the flow is now:

Compositor -> Constellation -> Script (when rAF is active).
Compositor -> Constellation -> Layout (when transitions / animations are active and no rAF is present).

This makes rAF based animation *much* smoother.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9858)
<!-- Reviewable:end -->
2016-03-04 05:50:50 +05:30
Jack Moffitt
f7aa6a32e9 Unrevert the fix for hit testing through shadows
This was originally #9428 but got accidentally reverted during rebase in

Fixes #9865.
2016-03-03 17:04:55 -07:00
Patrick Walton
5e17325e54 Flatten the WebRender API to allow us to use shared memory to transfer
display lists.

Improves performance significantly.

Requires servo/webrender_traits#15 and servo/webrender#222.
2016-03-03 14:44:48 -08:00
bors-servo
37bcc161fe Auto merge of #9832 - metajack:suppress-reflows, r=mbrubeck
Suppress reflows before RefreshTick or FirstLoad

This fixes a bug where partially loaded content is displayed to the user
before it should be, usually before stylesheets have loaded. This commit
supresses reflows until either FirstLoad or RefreshTick, whichever comes
first.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9832)
<!-- Reviewable:end -->
2016-03-04 04:00:30 +05:30