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

2877 Коммитов

Автор SHA1 Сообщение Дата
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
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
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
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
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
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
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
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
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
Guillaume Gomez fe3e62b8a4 servo: Merge #9792 - Remove util::vec::Comparator (from GuillaumeGomez:remove_comparator); r=nox
r? @nox

Fixes #9696

Source-Repo: https://github.com/servo/servo
Source-Revision: 40c52d55e2037a8dc154718f43260bd347739260
2016-03-01 18:41:45 +05:01
Dominik Menzi 8b0d499bf2 servo: Merge #9763 - Implement value for DOMTokenList (from Tangresh:i9725); r=nox
Fixes #9725

Source-Repo: https://github.com/servo/servo
Source-Revision: 00628704ca5f3318a4b97b7586cd17b31eabf5f6
2016-03-01 08:05:21 +05:01
Olaf Buddenhagen d18896a0b6 servo: Merge #9815 - Update ipc-channel again for working deadlock fix (from antrik:update-ipc_channel-2); r=KiChjang
Pull in ce7c296a3717b054060889b780f8638eb66ce970 , fixing concurrent
large transfers on Linux.

Source-Repo: https://github.com/servo/servo
Source-Revision: cd274a4a11ade6b0f17b96eb425472238698e12b
2016-03-01 07:11:26 +05:01
Glenn Watson 85c56fc373 servo: Merge #9813 - With WebRender, only send resize events when window size is valid (from glennw:iframe-sizing); r=pcwalton
Fixes WR 112.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4035f7ae2c4925675263f514884ec702ac3d5460
2016-03-01 06:17:01 +05:01
Glenn Watson 477cf70ac7 servo: Merge #9814 - Update gleam to get UBO bindings (from glennw:update-gleam); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: eba9f4b629a0705f4889628d35ae1416dc068018
2016-03-01 05:19:26 +05:01
Rizky Luthfianto 2e6459eeb6 servo: Merge #8932 - Implement Document#elementFromPoint (from rilut:add-elementfrompoint); r=nox
Related to #8666. I haven't implemented elementsFromPoint, because from my past discussion with jdm, [it's not good yet](dbfa25214b (commitcomment-14668959)) to implement elementsFromPoint because it may cause GC hazards.

By the way, I also have to include the test for this, right? I've found this [1]. So, is all I have to do is just to put this into `tests/wpt/web-platform-tests/cssom-view/elementFromPoint.html`?

[1] http://test.csswg.org/suites/cssom-view-1_dev/nightly-unstable/html/elementFromPosition.htm

Source-Repo: https://github.com/servo/servo
Source-Revision: 4bcdbe6d56d4d4e2a679ad7e0e27f2caf71f4d22
2016-03-01 02:32:50 +05:01
Anthony Ramine 2efa577741 servo: Merge #9787 - Refactor dispatch_event according to the spec (fixes #9178) (from nox:event-invoke); r=Ms2ger
Two new functions invoke and invoke_inner are introduced and some invariants documented.

Source-Repo: https://github.com/servo/servo
Source-Revision: 7d4276b393fe3df1a04ade010bc345388ac390cd
2016-02-29 19:44:11 +05:01
Anthony Ramine 9c9ecfeffe servo: Merge #9799 - Fix step 14.2 of Range::ExtractContents (from nox:range-extractcontents); r=KiChjang
We need the last inclusive ancestor of start node that is not an inclusive ancestor
of end node, not the first that is an inclusive ancestor of it.

Source-Repo: https://github.com/servo/servo
Source-Revision: dfdeabf57df02cf4b8a878b3b9933a08d156082d
2016-02-29 04:42:28 +05:01
Anthony Ramine 68cac04d75 servo: Merge #9797 - Fix step 1 of Range::InsertNode (from nox:range-insertnode); r=KiChjang
The method needs to throw when trying to insert start node into range.

Source-Repo: https://github.com/servo/servo
Source-Revision: b3964a89585539082982160f5f4fb4bd05ddac2f
2016-02-29 03:49:06 +05:01
Emilio Cobos Álvarez 333988b913 servo: Merge #9795 - script: Fix remaining bugs from Range.deleteContents (from emilio:other-range-bugs); r=nox
This makes all the `Range.deleteContents` tests pass.

I changed some `try!()`s for `unwraps()` because those calls are actually infallible.

r? @nox

Source-Repo: https://github.com/servo/servo
Source-Revision: 492e3241715e125df3587c8454ce52c925377152
2016-02-28 23:29:41 +05:01