Граф коммитов

5795 Коммитов

Автор SHA1 Сообщение Дата
Ms2ger c8db736877 servo: Merge #9941 - Update the list of files tidy ignores (from Ms2ger:tidy-ignore); r=jdm
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.

Source-Repo: https://github.com/servo/servo
Source-Revision: 25c6c29a27d2a176a967ee49d97a29ad1d3a140e
2016-03-09 21:15:35 +05:01
Ms2ger 725d1d8308 servo: Merge #9940 - Fix warnings in the fetch code (from Ms2ger:fetch-warnings); r=asajeffrey
Source-Repo: https://github.com/servo/servo
Source-Revision: 0359fb8ed8c2bd509a69335822ef7c8feb081994
2016-03-09 20:22:30 +05:01
Wei Tang d25060c15d servo: Merge #9937 - Detect Cygwin environment on Windows (from sorpaas:fix/cygwin); r=Wafflespeanut
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.

Source-Repo: https://github.com/servo/servo
Source-Revision: 31bdcbe7258cfa796b88505f5e29d75920e5c708
2016-03-09 17:24:01 +05:01
Ulf Nilsson fe2bce5658 servo: Merge #9934 - Update jpeg-decoder (from kaksmet:update-jpeg-decoder); r=metajack
This brings performance improvements and fixes a bug which was causing some progressive JPEGs to fail decoding.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4f08caa5a686c5ccf078c84cdf2fe459a3784f37
2016-03-09 16:30:58 +05:01
Glenn Watson 0e98d73a59 servo: Merge #9906 - Update gleam 0.2.6 -> 0.2.8 (from glennw:bump-gleam); r=ecoal95
Source-Repo: https://github.com/servo/servo
Source-Revision: 4d2040b31b6d18daacce73a582a676cacc3f941d
2016-03-09 15:38:01 +05:01
Bob 7f3584b186 servo: Merge #9780 - correctly send secure cookies after hsts url match (from bobthekingofegypt:github_hsts_bug); r=jdm
Fixes #8100, where sites in the hsts list were not recieving secure
cookies if the site was originally loading using a plain http url.

Source-Repo: https://github.com/servo/servo
Source-Revision: 162e89d8c6f19204e653b8d1fa83663ee710be15
2016-03-09 14:44:52 +05:01
Ms2ger 921864aeef servo: Merge #9923 - Make Response::new() an inherent method (from Ms2ger:response-new); r=jdm
There is no real reason to put this in an extension trait.

Source-Repo: https://github.com/servo/servo
Source-Revision: ebe7d9ebfb28d484ff0cce4e70cb8809f5867af5
2016-03-08 21:56:57 +05:01
Anthony Ramine d20617d135 servo: Merge #9886 - Make Cargo share more things between servo and ports (from nox:unstable-feature); r=SimonSapin
This should enable Cargo to reuse more build artifacts between servo and geckolib.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5fbed88248069f1943399d28885249ee0adc89b2
2016-03-08 19:34:24 +05:01
York Xiang 6fa9e8002b servo: Merge #9910 - Add link for README (from bombless:patch-1); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: be5b29207867dcd57983edf3a3ff24eea7fde418
2016-03-08 17:49:29 +05:01
Suvish Varghese Thoovamalayil 932eddd474 servo: Merge #9920 - Remove unused cell_extras feature gates. Fixes #9912 (from vishy1618:issue_9912); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: a96b2360a9e6cfed26c101704fd4c804ed1fcfd3
2016-03-08 16:56:16 +05:01
Anthony Ramine bd7683dfc0 servo: Merge #9898 - Properly use "pub extern crate" (from nox:fix-private-in-public); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 60d97c31129947d92258332e64a1896d2d988e2e
2016-03-08 14:57:50 +05:01
UK992 775aa09069 servo: Merge #9908 - Check tidy for "support/android/build-apk/" (from UK992:tidy-fix); r=ecoal95
Fixes  #9893
r? @ecoal95

Source-Repo: https://github.com/servo/servo
Source-Revision: e3bea4f88724c9fc7dfceab590dd0df90a0a7a3f
2016-03-08 11:58:08 +05:01
Simon Sapin d6492e5b27 servo: Merge #9894 - Use rustdoc’s new `--passes strip-priv-imports` flag (from servo:strip-priv-imports); r=Ms2ger
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`.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1453f438256afe92b0f79980c984824aac4afeae
2016-03-08 09:17:29 +05:01
Simon Sapin 1436e99264 servo: Merge #9903 - Replace usage of deprecated std::cell::Ref::filter_map (from servo:ref-filter-map); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: b6e469cbde0e58bab1b99e8c5ba356be2fc61843
2016-03-08 08:23:45 +05:01
Arpad Borsos f6a11faa18 servo: Merge #9896 - rename deprecated utf16_units to encode_utf16 (from Swatinem:rename_utf16); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: e8aeebbac5584e19e7ee23f187cdd6cf0da5ecb9
2016-03-08 06:03:43 +05:01
Nikki f2cb1a2b2f servo: Merge #9850 - Set response.body Asynchronously In Fetch (from nikkisquared:2_async_2_furious); r=jdm
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.

Source-Repo: https://github.com/servo/servo
Source-Revision: fee7cb179ee7ba2f159d87af07afaf0cd99a2161
2016-03-08 04:16:25 +05:01
Rahul Sharma 90e2b2cb80 servo: Merge #9871 - tidy fix for longer single line imports (from creativcoder:fix-tidy-single-import); r=Wafflespeanut
Fixes #9864

Source-Repo: https://github.com/servo/servo
Source-Revision: 41864c4524d6303a6aa21e99bf67d4026c135900
2016-03-08 00:37:08 +05:01
Ms2ger 4bdf8a7018 servo: Merge #9892 - ImageCache cleanup (from Ms2ger:imagecache); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1330e7e58f3da6a6fa855d9d44350873ea38c2b7
2016-03-07 21:01:30 +05:01
Cengiz Can 83f634f244 servo: Merge #9891 - Replace deprecated fs::walk_dir call with walkdir crate (from cengizIO:master); r=ecoal95
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

Source-Repo: https://github.com/servo/servo
Source-Revision: dedae5e459724d32ada7d3f4e33d8533bddb43fa
2016-03-07 18:47:02 +05:01
Anthony Ramine 1b34a11fda servo: Merge #9888 - Update to Rust 2016-03-05 (from servo:rustup); r=Manishearth
Blocked by https://github.com/Manishearth/rust-tenacious/pull/14.

Source-Repo: https://github.com/servo/servo
Source-Revision: 743e0c9c878a78da873fed4edaa9c8284b2fd12d
2016-03-06 16:04:42 +05:01
Manish Goregaokar ba5d9dee9d servo: Merge #9884 - Make appveyor run on auto branch (from Manishearth:appveyor-homu); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: 97e29f3f2c60c0859602f46fba0b23e0058fb289
2016-03-06 09:14:42 +05:01
Ravi Shankar c5fb9645f5 servo: Merge #9800 - fixed the last failing test in dom/nodes/attributes.html (from Wafflespeanut:node_attrs); r=nox
r? @nox

Source-Repo: https://github.com/servo/servo
Source-Revision: 64fb09ca2d5d077b4d3e0815ee3e094f67b7cf4e
2016-03-05 21:03:46 +05:01
Anthony Ramine c230b18459 servo: Merge #9885 - Bump regex and regex-syntax (from nox:bump-regex); r=ecoal95
Source-Repo: https://github.com/servo/servo
Source-Revision: 1edabe1673789aace16ae0477dbd2328fbf87e2e
2016-03-05 19:59:25 +05:01
Lars Bergstrom 5bd05b3db7 servo: Merge #9880 - Update cargo (from larsbergstrom:cargoup); r=SimonSapin
Confirmed locally that it fixes #9794 (thanks, @alexcrichton!).

r? @nox @metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: 02e75f6d869a832b8a4dbfc6db541cbed6ac1046
2016-03-05 12:19:03 +05:01
Glenn Watson 0ab9871b80 servo: Merge #9883 - Update ipc-channel (from glennw:update-ipc-channel); r=frewsxcv
Fixes #9882.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6e3e41ef1a9f6df44f2b8c9012000dca73741d8d
2016-03-05 10:37:06 +05:01
Jack Moffitt e4b7eb2998 servo: Merge #9873 - Adds browserhtml dependency and mach run --browserhtml (from metajack:mach-run-bhtml); r=ecoal95
This makes the experience for testing browserhtml super easy.

Source-Repo: https://github.com/servo/servo
Source-Revision: 69f52d0f213aeec0d498798dfdaa15f8459a9a79
2016-03-05 04:04:18 +05:01
Bobby Holley e191536d43 servo: Merge #9852 - Stylo uplifts 3 (from bholley:stylo_uplifts_3); r=bholley
Source-Repo: https://github.com/servo/servo
Source-Revision: 49e9594fb97d396f909cf367f70dec6c1ac32fc3
2016-03-05 01:19:35 +05:01
Simon Sapin 5ec3702057 servo: Merge #9875 - Hide overflow of <input> (from servo:overflow-clip-box); r=mbrubeck
Fix #9477

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: b46d2e2737c174d79681e73f3dbf881624373268
2016-03-05 00:24:33 +05:01
Simon Sapin 396c32bf7e servo: Merge #9872 - Use `cursor: text` in text input areas (from servo:cursor-text); r=nox
… not just over text.

Fix #9486.

Source-Repo: https://github.com/servo/servo
Source-Revision: b4cae84e9e87c5a978274e9ceac540de8a95a5e4
2016-03-04 19:45:56 +05:01
Peter 0b443ce56f servo: Merge #9786 - Fixed compile error in generated code, when webidl constructors have same number of args (from peterjoel:fix_codegen_is_array_like); r=jdm
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.

Source-Repo: https://github.com/servo/servo
Source-Revision: c37a0866608421d9e3afd67f0777e27091104f0f
2016-03-04 14:45:20 +05:01
Jack Moffitt 6f6499096b servo: Merge #9866 - Unrevert the fix for hit testing through shadows (from metajack:refix-shadow-hit-test); r=pcwalton
This was originally #9428 but got accidentally reverted during rebase in

Fixes #9865.

Source-Repo: https://github.com/servo/servo
Source-Revision: 12466b87062d8a20bd134bdd5824d46c5216ee48
2016-03-04 08:07:12 +05:01
UK992 adb691c464 servo: Merge #9863 - Fix Windows build and add AppVeyor support (from larsbergstrom:appveyor2); r=edunham
Proof of success: https://ci.appveyor.com/project/larsbergstrom/servo/build/1.0.15

Fixes #9767

Source-Repo: https://github.com/servo/servo
Source-Revision: 08b9fe0c00fc2be24f1c7ca877011f27a2a19599
2016-03-04 07:12:08 +05:01
Patrick Walton 229ea1816b servo: Merge #9861 - Flatten the WebRender API to allow us to use shared memory to transfer display lists (from pcwalton:superflat); r=glennw
Improves performance significantly.

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

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 1c63bf9822d54cf95daa9921cda08f3b60521027
2016-03-04 06:16:45 +05:01
Glenn Watson 44f92cb1ae servo: Merge #9858 - Fix animation smoothness when using requestAnimationFrame (from glennw:anim-smoothness); r=pcwalton
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.

Source-Repo: https://github.com/servo/servo
Source-Revision: aba500a698584e66975cd93006ca8cf745370f7d
2016-03-04 05:21:50 +05:01
Jack Moffitt 7d68aad107 servo: Merge #9832 - Suppress reflows before RefreshTick or FirstLoad (from metajack:suppress-reflows); r=mbrubeck
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.

Source-Repo: https://github.com/servo/servo
Source-Revision: 37bcc161fe45bf8c1cb1172b8e0d12c7d03371b6
2016-03-04 03:31:30 +05:01
Patrick Walton 73f8220db0 servo: Merge #9843 - Optimize flat display lists (from pcwalton:optimize-flat-display-lists); r=mrobinson
Flat display lists were a 2x regression on the spheres demo. This patch series fixes that.

See the individual commits for more details.

r? @mrobinson

Source-Repo: https://github.com/servo/servo
Source-Revision: 55fc48e4c46917a0f036d0054fac296bb5719434
2016-03-04 02:20:04 +05:01
Corey Farwell ccfd41c9c3 servo: Merge #9857 - Indicate components should not be published to crates.io (from servo:publish-false); r=ecoal95
http://doc.crates.io/manifest.html#the-publish--field-optional

Source-Repo: https://github.com/servo/servo
Source-Revision: 633f0414aaa177e439528f0fa848a41bc0fc094a
2016-03-04 01:08:14 +05:01
Emilio Cobos Álvarez fef86e7406 servo: Merge #9715 - script: Fix MouseOver handling (from emilio:mousemove); r=mbrubeck
Now we only query for the topmost node, and apply the hover state to all
of the parent elements.

This fixes things like #9705, where the hover state was applied only to
the children.

This also makes us more conformant with other browsers in the case of
taking in account margins and paddings.

For example, prior to this PR, when your mouse was over the inner
element, in the bottom part, `hover` styles didn't apply to the parent.

```html
<style>
div {
  padding: 10px;
  margin: 10px;
  height: 15px;
  background: blue;
}

div:hover {
  background: red;
}
</style>

<div>
  <div></div>
</div>
```

Fixes #9705

Source-Repo: https://github.com/servo/servo
Source-Revision: 056a7cf1a2284063e5d32c6627b86f6931957a74
2016-03-03 22:26:35 +05:01
Rahul Sharma afd7d280d8 servo: Merge #9825 - removed XMLDocument constructor according to spec (from creativcoder:remove-contructor-xmldoc); r=KiChjang
Source-Repo: https://github.com/servo/servo
Source-Revision: 46256b33efeb84b35cc90ae2dee03890ba7f38c7
2016-03-03 17:12:03 +05:01
Glenn Watson e18812e0da servo: Merge #9853 - Update webrender. Fixes #9846 (from glennw:update-wr); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: c92ad616a38434978f30c2bf17a9fabb123efc68
2016-03-03 06:31:27 +05:01
Glenn Watson 0bb8ab3918 servo: Merge #9841 - Fix unexpected overflow with overflow: hidden set (from glennw:extra-overflow); r=pcwalton
Fixes #9719.

Source-Repo: https://github.com/servo/servo
Source-Revision: 3ff5082798825c6b5925ba4ef3553eb653700695
2016-03-03 00:06:50 +05:01
Anthony Ramine 0afd393fe0 servo: Merge #9837 - Use a BTreeMap for Document::animation_frame_list (fixes #9834) (from nox:deterministic-raf); r=mbrubeck
The callbacks must stay ordered.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9ceda7de509d3dff01a766077011207f94ffadfd
2016-03-02 20:55:38 +05:01
Ms2ger 3f38199cb3 servo: Merge #9836 - Remove a stray println in table layout (from Ms2ger:print); r=nox
It was introduced in 4dc9d8b1c5a4e68eee09af547ae7069455c9abe9.

Source-Repo: https://github.com/servo/servo
Source-Revision: de7c67575e5cfe71578d226026484da5c6de8707
2016-03-02 15:51:19 +05:01
Ulf Nilsson 18490a8945 servo: Merge #9790 - Use piston_image instead of stb_image for decoding JPEGs (from kaksmet:piston-jpeg); r=metajack
The main reason stb_image was used for decoding JPEGs was the lack of progressive support in piston_image.
With version 0.7, piston_image gained support for decoding progressive JPEGs through use of the [jpeg-decoder](https://crates.io/crates/jpeg-decoder) crate.

This PR removes the dependency on stb_image and instead uses piston_image 0.7 for decoding JPEGs.

Source-Repo: https://github.com/servo/servo
Source-Revision: a8c321a7e0402bcfc8d8da10cc94a5b287d29ffc
2016-03-02 13:48:50 +05:01
Martin Robinson 36406cdba8 servo: Merge #9756 - Flatten display list structure (from mrobinson:flat-display-lists-webrender); r=pcwalton
Instead of producing a tree of stacking contexts, display list
generation now produces a flat list of display items and a tree of
stacking contexts. This will eventually allow display list construction
to produce and modify WebRender vertex buffers directly, removing the
overhead of display list conversion.  This change also moves
layerization of the display list to the paint thread, since it isn't
currently useful for WebRender.

To accomplish this, display list generation now takes three passes of
the flow tree:

        1. Calculation of absolute positions.
        2. Collection of a tree of stacking contexts.
        3. Creation of a list of display items.

After collection of display items, they are sorted based upon the index
of their parent stacking contexts and their position in CSS 2.1
Appendeix E stacking order.

This is a big change, but it actually simplifies display list generation.

Source-Repo: https://github.com/servo/servo
Source-Revision: 62814f7cb486bc267a796b7ce58c51d59240fad0
2016-03-02 05:52:08 +05:01
Glenn Watson 6492a07d84 servo: Merge #9827 - Update webrender_traits, webrender, num (from glennw:update-wr); r=KiChjang
Source-Repo: https://github.com/servo/servo
Source-Revision: 70941e3806786d4bc4da3165e234e70249316de0
2016-03-02 04:57:29 +05:01
Gregory Malecha 15ee192c95 servo: Merge #9823 - updating the CanvasRenderingContext2D to match the spec (from gmalecha:canvas-rendering-context-2d-update-idl); r=jdm
- fixes #9443

Source-Repo: https://github.com/servo/servo
Source-Revision: f895f871971bcdcdb4631a0566660340399b7bed
2016-03-02 04:03:26 +05:01
Matt Brubeck 67e9ce9f24 servo: Merge #9826 - Table border-collapse fixes (from mbrubeck:table-row-iter); r=pcwalton
Two related fixes for border-collapse:

* Fix border collapsing across table-row-group flows

  This fixes the border-end calculation for table rows whose borders are collapsed with rows in different rowgroups.  The border collapsing code now uses an iterator that yields all the rows as a flat sequence, regardless of how they are grouped in rowgroups.  It gets rid of `TableRowGroupFlow::preliminary_collapsed_borders` which was never correct.  (It was read but never written.)

  This may fix #8120 but I'm not 100% certain. (I haven't managed to reproduce the intermittent failure locally, and my reduced test case still fails but in a different way.)

* Fix confusing `push_or_mutate` API

  This fixes a bug when recalculating border collapsing for an existing table row. The bug was caused by using `push_or_mutate` which has no effect if there is already a value at the specified index.

  The fix switches incorrect `push_or_mutate` calls to use `push_or_set` instead. It also renames `push_or_mutate` to `get_mut_or_push` which I think is a less-confusing name for this method.

r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 1d6aece589410e13d9773d702f4426d3e197155c
2016-03-02 03:09:12 +05:01
Nikki 509851641c servo: Merge #9753 - Make Fetch Protocol Asynchronous (from nikkisquared:async_fetch); r=jdm
I'm working on making it possible to run Fetch Asynchronously, as required for some steps, such as Main Fetch. It looks like somebody has already laid some groundwork for that, with a AsyncFetchListener trait and two async fetch functions defined, which I'm building on top of.

So far, as a sort of proof of concept, I've written a test to asynchronously retrieve a fetch response, which uses a simple function to check if the fetch response is complete or not. I'd like to be checked if I'm on the right path, to see if I need to rework anything so far, and what my next step can be.

Source-Repo: https://github.com/servo/servo
Source-Revision: 22ce878edc22360af7391694efc9e5668116d3fb
2016-03-02 01:20:29 +05:01
Ms2ger 8f0aadfb0d servo: Merge #9817 - Stop generating a parser.out file in the source (from Ms2ger:yacc-log); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: b355c0dbcbbbb5155170b4db971e012659081843
2016-03-02 00:26:02 +05:01