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

862 Коммитов

Автор SHA1 Сообщение Дата
Josh Matthews 647c5be7dd servo: Merge #8190 - Implemementing context-based MIME type sniffing (from jdm:4138); r=eefriedman
This is a rebase of #7842 that also adds a test.
Fixes #4183.

@Yoric, how's this look to you?

Source-Repo: https://github.com/servo/servo
Source-Revision: af1690f3036bc329101bbd6f4e877672d58ca5e0
2015-12-31 20:44:10 +05:01
Bobby Holley a5868c1c28 servo: Merge #9051 - Split layout wrappers into style+layout and layout-only functionality (from bholley:split_style_and_layout_wrappers); r=SimonSapin
This is a step towards removing the dependency of stylo on layout/.

This PR depends on #9004.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0f5c614609fd8867a9e7c27b8a398ea7d877c714
2015-12-30 09:35:14 +05:01
Anthony Ramine ef99a3f214 servo: Merge #8506 - Properly propagate changes when range or trees are mutated (from nox:finish-ranges); r=dzbarsky
Does the same thing as #6817, but storing Range instances directly in their start and end containers.

Cc @dzbarsky

Source-Repo: https://github.com/servo/servo
Source-Revision: 89ab368258eb827b0dcc8d6e6deecd3ed3c1de71
2015-12-26 03:39:15 +05:01
Abhishek Kumar 38115cb5bb servo: Merge #8845 - M1502: Expand HTTP request response monitoring-2 (from akumar21NCSU:master); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: a8783ad184ab6167803af44f4abf16754c410c2a
2015-12-21 20:48:25 +05:01
Mathieu Agopian 2ee894fb9d servo: Merge #9019 - Use Url.join instead of UrlParser.base_url(...).parse (#9002) (from magopian:9002-use-url.join); r=SimonSapin
Fix issue #9002

Source-Repo: https://github.com/servo/servo
Source-Revision: f9141ef2db693518fef676740f25abee3b938cac
2015-12-19 01:29:56 +05:01
GauriGNaik 5be1a03fb2 servo: Merge #8971 - Add pipeline information to CSS error reporting (from jdm:expose-css-errors-1); r=jdm
Rebase of #8838.

Source-Repo: https://github.com/servo/servo
Source-Revision: d11f96e27074b0130760a02d39d2da4e003c820e
2015-12-14 21:22:41 +05:01
Simon Sapin d4a1557a4b servo: Merge #8757 - Use skia and deps from crates.io (from servo:skia); r=mbrubeck
This makes the initial download for skia go from a 300 MB git repository to a 5 MB tarball. This should help with issues like #6132 and #7687.

Fix https://github.com/servo/skia/issues/70

This builds, but the at the moment causes a number of tidy errors for duplicated crates.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8b95d7b8d860ec4c0834192083361a9fb78ddbeb
2015-12-03 12:29:29 +05:01
Sam Gibson 8846f71259 servo: Merge #7323 - Adds support for input element's maxlength attr (from samfoo:input-maxlength); r=jdm
This implements maxlength [as described by whatwg](https://html.spec.whatwg.org/multipage/forms.html#dom-input-maxlength) for input elements.

Remaining work:
* WPT test - I have no idea how to write a WPT for simulating user input. Webdriver? Open to suggestions here.
* Support for textarea (should be trivial, probably worth filing another issue)

servo/servo#7320
servo/servo#7004

Source-Repo: https://github.com/servo/servo
Source-Revision: fc3e950052b6cc580dc32fc03d978fad97b49ba8
2015-12-03 09:59:24 +05:01
Manish Goregaokar 9d66fcc7fd servo: Merge #8752 - Make `path_matches` match the spec (fixes cookies) (from Manishearth:om-nom); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: 595bda478ebd54b8be878980852b38c61a2cef2c
2015-11-30 22:49:39 +05:01
Guillaume Gomez 732bf0a03c servo: Merge #8692 - Ensure crate are alphabetically sorted (from GuillaumeGomez:patch-1); r=Wafflespeanut
cc @nox

Source-Repo: https://github.com/servo/servo
Source-Revision: dbff1ab33636bc7d60a4c97b63f39b59985726ce
2015-11-28 19:05:11 +05:01
Manish Goregaokar 693578b06a servo: Merge #8446 - Rust upgrade to rustc 1.6.0-nightly (5b4986fa5 2015-11-08) (from servo:rustup_20151110); r=SimonSapin+Ms2ger+jdm+Manishearth
<s>DO NOT r+ or try+ this</s>

<s>It causes an OOM (https://github.com/rust-lang/rust/issues/29740) and can crash the OS. Probably will set our CI on fire. </s>

Source-Repo: https://github.com/servo/servo
Source-Revision: f13c72d68e1e7f49e241938bfd6e8a588c68e86b
2015-11-27 10:18:00 +05:01
GauriGNaik 5b0ca679ad servo: Merge #8682 - Defined new trait ParseErrorReporter and added error_reporter member … (from jdm:css-error-reporter); r=jdm
…to ParserContext.

Rebase of #8210.

Source-Repo: https://github.com/servo/servo
Source-Revision: f5ef2f4f75cd58a3c6f1f123e413dc9d3a24f841
2015-11-27 03:27:08 +05:01
Alan Jeffrey f4ab2bfdb5 servo: Merge #8667 - Update string cache (from asajeffrey:update-string-cache); r=SimonSapin
Updated string_cache to 0.2, and updated the dependencies that depend on string_cache.
Removed references to string_cache_plugin.
Import atom! and ns! from string_cache.
Replaced ns!("") by ns!().
Replaced ns!(XML) and co by ns!(xml) and co.
Replaced Atom::from_slice by Atom::from.
Replaced atom.as_slice() by &*atom.

r? @SimonSapin

Source-Repo: https://github.com/servo/servo
Source-Revision: 188fa9378c103093f1f8dac24bff0d9d237fd2bc
2015-11-25 23:41:39 +05:01
Patrick Walton a2c55b5db1 servo: Merge #8660 - Update `ipc-channel` to pick up the improved error reporting (from pcwalton:ipc-channel-errors); r=larsbergstrom
Intended to help diagnose intermittent failures.

r? @jdm or @larsbergstrom (or whoever)

Source-Repo: https://github.com/servo/servo
Source-Revision: 13a96fcaf78c299beb2021d3ae9dae8d9e916762
2015-11-25 07:02:15 +05:01
Simon Sapin e11fa44aa2 servo: Merge #8653 - Remove dependency on regex_macros (from servo:no-regex-macros); r=Ms2ger
This reduces the amount of code using unstable features that we depend on.
The hand-written IP address parser is probably just as fast.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6f35b867c9c3bb7a345e2ac34e5970b93a1d3ea1
2015-11-25 02:36:10 +05:01
Corey Farwell 142c7b7efe servo: Merge #8622 - Implement 'url!(..)' macro (from frewsxcv:url-plugin); r=SimonSapin
https://github.com/servo/rust-url/issues/136

https://github.com/servo/rust-url/pull/137

Source-Repo: https://github.com/servo/servo
Source-Revision: ea690a2dff64d1cb4eb668473d62f1bbcb19f7c8
2015-11-21 20:41:52 +05:01
Aleksandr Likhanov a4e688b2a0 servo: Merge #8589 - Reduce node.unique_id size (from vegayours:8360_reduce_node_unique_id_size); r=eefriedman
Source-Repo: https://github.com/servo/servo
Source-Revision: e5c9b4859870ab7dcb6a5137ac5106088ccc3872
2015-11-20 01:15:19 +05:01
David Raifaizen f84e0e094b servo: Merge #8503 - Adding method to detect if image formats should be supported by servo (from craftytrickster:8406/limit-suppported-format); r=mbrubeck
https://github.com/servo/servo/issues/8406

Please let me know if I need to make any changes.

Source-Repo: https://github.com/servo/servo
Source-Revision: f17f89059a3681b7bd2da0a04259353ca21c8122

--HG--
rename : servo/tests/unit/gfx/lib.rs => servo/tests/unit/net_traits/lib.rs
2015-11-17 06:45:25 +05:01
Corey Farwell 933234be87 servo: Merge #8526 - Fix parse_length 0 values, implement <hr> 'width' (from frewsxcv:parse-length); r=eefriedman
Follow-up to https://github.com/servo/servo/issues/8424

Source-Repo: https://github.com/servo/servo
Source-Revision: 3ef0a9a79dffcde41cdd6081ef79a0f0593b5104
2015-11-15 03:01:46 +05:01
Ravi Shankar 463343d888 servo: Merge #8523 - Listen for cancellation message during loads and redirects (from Wafflespeanut:redirects); r=jdm
fixes #8495

Source-Repo: https://github.com/servo/servo
Source-Revision: bda46179b6d349eae1b88e2b08a065905236e02d
2015-11-14 18:56:33 +05:01
Alan Jeffrey f8093754b7 servo: Merge #8477 - Opaque DOMString (from asajeffrey:opaque-domstring); r=asajeffrey
This patch makes DOMString an opaque wrapper round String (currently it's a transparent wrapper).

The changes are:

* Replacing DOMString(foo) by DOMString::from(foo).
* Replacing foo.0 by String::from(foo).
* Adding functions clear, push_str and extend for in-place mutation of DOMStrings.
* Replacing DOMString by String in other threads (devtools, storage and filereader).
* Making DOMString implement !Send.
* Removing the pub attribute from the contents of DOMString.

This enables experimenting with other string representations in the DOM.

Source-Repo: https://github.com/servo/servo
Source-Revision: 62acdd303b78951885c2c90747b31f318907d6c9
2015-11-13 06:48:30 +05:01
João Oliveira 61a9b441d7 servo: Merge #7646 - Write unit tests for cookie isolation (from jxs:master); r=jdm
closes #7624

Source-Repo: https://github.com/servo/servo
Source-Revision: e394c0d85968677216da0ab923761b21cbe029a7
2015-11-12 19:51:32 +05:01
Ravi Shankar 5145b0d710 servo: Merge #7844 - Cancelable network requests! (from Wafflespeanut:requests); r=jdm
fixes #4974

Source-Repo: https://github.com/servo/servo
Source-Revision: 4848e37e2e0da2f83b1d7f0d231d59047012ff95
2015-11-12 18:30:58 +05:01
Alan Jeffrey 5b61974f7a servo: Merge #8227 - Versioned dom (from asajeffrey:versioned_dom); r=eefriedman
This PR adds versioning to the DOM. There are now node.get_version and node.get_descendent_version methods that return a counter that is bumped when the node is dirtied. This is used to implement cache invalidation for caching HTMLCollection state. Caching HTMCollections gets a 1000x speedup in the Dromaeo DOM query tests.

Addresses https://github.com/servo/servo/issues/6901, https://github.com/servo/servo/issues/3381 and https://github.com/servo/servo/issues/1916.

Replaces PR https://github.com/servo/servo/pull/6927.

Source-Repo: https://github.com/servo/servo
Source-Revision: f39faaf99471f5419710e1a3d434e5d5fab0d221
2015-11-10 00:42:23 +05:01
Till Schneidereit 6b102412c1 servo: Merge #8039 - Move Stylesheet loading and ownership from the layout task into HTML elements (from tschneidereit:script-owns-stylesheets); r=jdm
Stylesheets for `HTMLLinkElement`s are now loaded by the resource task, triggered by the element in question. Stylesheets are owned by the elements they're associated with, which can be `HTMLStyleElement`, `HTMLLinkElement`, and `HTMLMetaElement` (for `<meta name="viewport">).

Additionally, the quirks mode stylesheet (just as the user and user agent stylesheets a couple of commits ago), is implemented as a lazy static, loaded once per process and shared between all documents.

This all has various nice consequences:
 - Stylesheet loading becomes a non-blocking operation.
 - Stylesheets are removed when the element they're associated with is removed from the document.
 - It'll be possible to implement the CSSOM APIs that require direct access to the stylesheets (i.e., ~ all of them).
 - Various subtle correctness issues are fixed.

One piece of interesting follow-up work would be to move parsing of external stylesheets to the resource task, too. Right now, it happens in the link element once loading is complete, so blocks the script task. Moving it to the resource task would probably be fairly straight-forward as it doesn't require access to any external state.

Depends on #7979 because without that loading stylesheets asynchronously breaks lots of content.

Source-Repo: https://github.com/servo/servo
Source-Revision: 7ff3a17524e0e703e3ac279441729c185444be24
2015-11-08 00:42:54 +05:01
Simon Sapin 003146d5d2 servo: Merge #8343 - Fix some custom properties bugs (from servo:custom-properties); r=mbrubeck
Fix #7767.

Source-Repo: https://github.com/servo/servo
Source-Revision: faf2f34772fe06396a7b8542b00f0566832bc7ef
2015-11-07 05:33:36 +05:01
Abhishek Kumar 698fc67b8e servo: Merge #8216 - M1502: Improve HTTP monitoring devtool support (from akumar21NCSU:master); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 45f07ec320b77ef8fa6511c9dc12598bc5d0f5e0
2015-11-05 22:32:48 +05:01
Ms2ger 7cb2a13f43 servo: Merge #8312 - Make DOMString a newtype around String, rather than a typedef (from Ms2ger:DOMString); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: abfd1fb1bf071961bc8a581927eaa96a2d3e2cba
2015-11-04 16:18:41 +05:01
nxnfufunezn 72d5e9f8e2 servo: Merge #8192 - Accept Brotli-compressed HTTP responses #8156 (from nxnfufunezn:brotli-decompressor); r=jdm
r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 2e4454a42356c0ea9edf67f96922ac96e4d52900
2015-11-01 22:44:21 +05:01
Eli Friedman b5beb9c8b0 servo: Merge #8037 - Consistently use content-type sniffing with all protocols (from eefriedman:net-send-sniff); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 4cf49d4d0917a5784a54f2a26b138516dfcdc2bc
2015-11-01 03:21:29 +05:01
Bobby Holley 5db6816cd0 servo: Merge #8162 - Centralize event states in rust-selectors (from bholley:centralize_event_states); r=pcwalton
This still needs a rev bump on rust-selectors once https://github.com/servo/rust-selectors/pull/55 gets merged.

Source-Repo: https://github.com/servo/servo
Source-Revision: 521a87180a85709f8f704df33537f79bd131bf71
2015-10-31 09:36:45 +05:01
Manish Goregaokar 0869f53e87 servo: Merge #8241 - Update euclid to 0.3 (from Manishearth:euclid_up); r=mbrubeck
Source-Repo: https://github.com/servo/servo
Source-Revision: 0d699a2b4419632e31b35352c518e2ef5ffcc9a3
2015-10-28 21:32:15 +05:01
Florian Merz 74d3b7be24 servo: Merge #7761 - display input caret for textarea. fixes #7758 (from fiji-flo:input_caret); r=pcwalton
This adds the input caret for textareas. Although, it does not handle multiline textareas correctly. The caret gets displayed for each line.

I'll look into that but that will take more time. Some feedback on this small patch would be appreciated though.

Source-Repo: https://github.com/servo/servo
Source-Revision: af6a64e176ec66a9c066e9e7bf40b6ce3ac77b2e
2015-10-21 15:23:52 -06:00
Bobby Holley ad33b14737 servo: Merge #7935 - Move event state from Node to Element (from bholley:eventstate_element); r=nox
Just getting my feet wet with Rust here. Please feel free to nit the hell out of it stylistically and idiomatically. :-)

Source-Repo: https://github.com/servo/servo
Source-Revision: ff2151b8bbc62fa29c90a429b7a4f12520420b6e
2015-10-19 02:47:21 -06:00
Eli Friedman 136cdea614 servo: Merge #7967 - MIMEClassifier::classify always succeeds; fix the type to reflect this (from eefriedman:mime-handling); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 7308d0dd0d2f41e140434d5f992c5aa7ecc0ef71
2015-10-14 08:46:32 -06:00
Louis Chan 87d5049829 servo: Merge #7939 - Use typed headers API instead of set_raw (from iawaknahc:issue-7924); r=Manishearth
fix https://github.com/servo/servo/issues/7924

Source-Repo: https://github.com/servo/servo
Source-Revision: 48887acff194047677f03d2be6cf151ecab3e2e3
2015-10-09 15:01:22 -06:00
Antonio de Luna d53caeab1e servo: Merge #7938 - removed clone from respond_with_headers fixes #7922 (from A-deLuna:remove-clone-from-respond_with_headers-fixes-#7922); r=Ms2ger
fixes #7922

Source-Repo: https://github.com/servo/servo
Source-Revision: ec10b1708ee4579886006b3248fdff7b21df4d0b
2015-10-09 11:40:33 -06:00
Prabhjyot Singh Sodhi 11dabd9912 servo: Merge #7773 - renaming AssertRequstMustHaveHeaders to AssertRequestMustIncludeHeaders (from psdh:assertReq7647); r=jdm
Fixes #7647

Source-Repo: https://github.com/servo/servo
Source-Revision: 04f42271f88a2730ae9ecfe17952580c5885978b
2015-10-07 11:35:51 -06:00
Manish Goregaokar 484e56a8a6 servo: Merge #7884 - Update openssl and re-enable the resource task tests (from Manishearth:fx-openssl); r=Ms2ger
https://github.com/sfackler/rust-openssl/issues/281 landed

r? @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: 5730a8bdd137006bbbf8f33bcc3b8828c70d3a73
2015-10-06 10:43:41 -06:00
Lars Bergstrom 8f1cc7b90f servo: Merge #7837 - Rust upgrade to nightly 20151002 (from larsbergstrom:rustup_20151002); r=Manishearth
r? @Manishearth

Source-Repo: https://github.com/servo/servo
Source-Revision: 375382a2e813ee28405f6cec439330e238c4d2e5
2015-10-05 10:23:44 -06:00
minimus 6cbdf9ce34 servo: Merge #7836 - interpret empty data URI as plain text (from 6112:master); r=mbrubeck
Fixes #7803. As @eefriedman pointed out, RFC 2397 says:

> If &lt;mediatype&gt; is omitted, it defaults to text/plain;charset=US-ASCII.  As a shorthand, "text/plain" can be omitted but the charset parameter supplied.

Source-Repo: https://github.com/servo/servo
Source-Revision: f30f40b12d2910f52e2274659e3762d9cd991649
2015-10-03 12:23:57 -06:00
James Gilbertson 1cfb1baefb servo: Merge #6185 - Implement <meta name=viewport> handling (from luniv:viewport-meta); r=mbrubeck
Translate <meta name=viewport> as according to [CSS Device Adaption § 9](http://dev.w3.org/csswg/css-device-adapt/#viewport-meta)

Note: as the PR currently stands, handling `<meta name=viewport>` elements always occurs. This is probably not desired for some contexts (e.g. desktop), but I'm unsure of how to conditionally handle elements based on that.

Source-Repo: https://github.com/servo/servo
Source-Revision: a7743052cad0387733c90940fa91733ede32772c
2015-09-30 22:49:41 -06:00
Glenn Watson ad94e13b24 servo: Merge #7811 - Update servo to use published app units crate (from glennw:use-crates-au); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 0860be4c28ebaee36a0df4de3510d917b0e08cb7
2015-09-30 22:21:36 -06:00
Corey Farwell d70fcd88f5 servo: Merge #7806 - Make util::str::str_join consistent with SliceConcatExt::join (from frewsxcv:consistent-str-join); r=mbrubeck
Prior to this commit, `str_join` would skip empty items at the start of
the `Iterator` until it found a non-empty item. This contradicts
`SliceConcatExt::join` which doesn't skip anything.

Brought up in:

https://github.com/servo/servo/pull/7776#issuecomment-144317281

Source-Repo: https://github.com/servo/servo
Source-Revision: 520c907742afbb94085c6b5e62156a5457530010
2015-09-30 19:34:44 -06:00
Glenn Watson 40d2827806 servo: Merge #7795 - Split Au type into separate crate, with minimal dependencies (from glennw:app-units-crate); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: 35888e5a1d48511ec54ddf8c58f1c7b0c47c5d3c
2015-09-30 15:19:33 -06:00
Prabhjyot Singh Sodhi a6dad05d64 servo: Merge #7497 - tests for devtools integration with network requests/responses (from psdh:devtest7473); r=jdm
Fixes #7473

Source-Repo: https://github.com/servo/servo
Source-Revision: 8027777e2409705b1d45cdd4c781e499fd5a7f0d
2015-09-25 11:35:57 -06:00
James Graham c18b23949d servo: Merge #7651 - Implement resettable and String-valued prefs (from jgraham:prefs_reset); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: e04c2c78ee43ad81f2794d908a13744b6b976443
2015-09-25 08:18:06 -06:00
Manish Goregaokar a0f53e1f0e servo: Merge #7697 - Rust upgrade to rustc 1.5.0-dev (6217b002b 2015-09-21) (from servo:rustup_20150921); r=Ms2ger
Snapshot doesn't exist yet. Rust master+ should work.

Also https://github.com/serde-rs/aster/pull/33 hasn't merged yet.

r? @Ms2ger @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: f7f16870bebdc9359661544054259b37780f1331
2015-09-23 06:45:18 -06:00
Ali Sabil a77bcca98e servo: Merge #7611 - Cache the `id` attribute on Element (from nox:cache-element-id); r=frewsxcv
Thanks to @asabil for the original work, I only rebased it.

Fixes #6359 and #7040.

Source-Repo: https://github.com/servo/servo
Source-Revision: d1269294e6c602c91012397c7584e3c2077e21ac
2015-09-20 09:23:20 -06:00
Brandon Fairchild f7fb1e4b4a servo: Merge #7662 - Check for multiple import blocks separated by whitespace (from nerith:import); r=frewsxcv
Fixes #7381.

Source-Repo: https://github.com/servo/servo
Source-Revision: a0d3c9223f09757124b1520c4f17e94fa8bbe249
2015-09-19 13:34:51 -06:00
Sam Gibson cbd0551cde servo: Merge #7654 - Move HSTS/CookieStorage to Arc<RwLock> from Ipc (from samfoo:hsts-cookie-arc); r=jdm
servo/servo#7421

Source-Repo: https://github.com/servo/servo
Source-Revision: 7f2d81933a6158926ff6d03acbc05f191cd5adb3
2015-09-19 02:01:06 -06:00
Mathieu Rheaume 3db547ce58 servo: Merge #7447 - Issue #7382 Use descriptive enums instead of booleans for MIMEClassifier::classifer (from ddrmanxbxfr:master); r=jdm
Hi guys i've done a small pass of refactor in the MIMEClassifier implementation. (See issue #7382 )
   - Moved the predicates to separate functions
   - Added a mimetype enum so we can compare them easily after calling MIMEClassifier::get_media_type

I hope it follows rust good pratices (care it's my first time doing rust).

Improvements and tips are welcome :).

Thanks for looking at it.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8a8204ffc8fa287dde2321c40d12b191b51960da
2015-09-18 07:22:59 -06:00
Jinwoo Song 2a438e5141 servo: Merge #7605 - Implement "transform: skew()" (from nox:skew); r=mbrubeck
Thanks to @Jinwoo-Song for the original commit, which I just rebased and cleaned up. Fixes #6237.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6a12f00d6d392651bae10365b4c806f36d704b21
2015-09-16 06:31:48 -06:00
João Oliveira d054140b6d servo: Merge #7549 - Move setting UserAgent header into http_loader::load, (from jxs:master); r=jdm
closes #7541

Source-Repo: https://github.com/servo/servo
Source-Revision: 35c30ab70df6821992769ff7a2b057cfe2f2673c
2015-09-14 08:57:42 -06:00
Anthony Ramine 6953aa403a servo: Merge #7606 - Move the type_id fields to DOMClass (from nox:move-typeid); r=jdm
Cc @michaelwu.

Source-Repo: https://github.com/servo/servo
Source-Revision: d5ee58caf269779e86b2efc50ddf37d3e4eba9b9
2015-09-13 11:53:42 -06:00
Simon Sapin 4aaf262e20 servo: Merge #7610 - Replace reftest with a problematic file name with a unit test (from servo:filename-parsing); r=saneyuki
Fix #7609, "error: unable to create file tests/ref/hello_a?foo#bar.html (Invalid argument)" during git checkout on Windows.

Behavior change: passing an nonexistent file name on the command line now shows a blank page (like network errors) rather than exit with an error message.

Source-Repo: https://github.com/servo/servo
Source-Revision: 815e981c69f6fe09bcbf3c1937ed817f2cd38813
2015-09-12 09:10:37 -06:00
João Oliveira 360ac1d5bf servo: Merge #7508 - Add style_traits crate to improve crate separation, (from jxs:master); r=SimonSapin
closes #7353

Source-Repo: https://github.com/servo/servo
Source-Revision: cc1eb3f741554b3f1711cd1938d1c16b6b7d2879
2015-09-04 06:46:11 -06:00
Simon Sapin 1b93452113 servo: Merge #7518 - Initial support for CSS Custom Properties (from servo:custom-properties); r=pcwalton
https://drafts.csswg.org/css-variables/

Missing:

* `var()` in shorthand property declarations.
* Correct handling of EOF in custom property declarations.

r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 05deb3dcc8be9a0a623536467628aa68ae754918
2015-09-03 16:09:02 -06:00
Simon Sapin ea7357b400 servo: Merge #7509 - Upgrade to rustc 1.4.0-dev (cb9323ec0 2015-09-01) (from servo:rustup_2015-09-01); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: f49615ca7b5d98ee603cf42f705073fbe4d414fb
2015-09-02 01:31:23 -06:00
Simon Martin b1a37d6095 servo: Merge #7449 - Issue #7393: Properly sniff mislabeled feeds (from simartin:issue_7393); r=metajack
Hi,

This patch is an attempt to fix https://github.com/servo/servo/issues/7393, where the code detecting mislabeled feeds (see https://mimesniff.spec.whatwg.org/#sniffing-a-mislabeled-feed) had spurious space in the URLs we need to match.

Note that my testing (in particular rdf_rss_ko_2.xml) highlighted a flaw in "matches", that failed to check that there were more bytes in the string being checked than in the string we're checking against, which completely broke the whole step 5.2.7.

Thanks in advance for your review.

Cheers,
  Simon

Source-Repo: https://github.com/servo/servo
Source-Revision: 9f85370885c84ebb58cd7f4a72a6e78948f468dc
2015-09-01 11:22:52 -06:00
Hugo Thiessard 9d89ba65ed servo: Merge #7459 - Issue #7365 : test cursor position after clearing selection (from Mylainos:Issue-#7365); r=jdm
In textinput test if the cursor is at the correct position when clearing a selection by press an arrow key.

edit_point is always at the end of the selection, should I test when it's at the beginning ?

Source-Repo: https://github.com/servo/servo
Source-Revision: 4404809e6d591ca7903e43deb693745300560d13
2015-09-01 09:23:12 -06:00
erneyja c4747f6c7e servo: Merge #7468 - Making test-tidy check that = have space after them (from JoshTheGoldfish:Issue7460); r=jdm
For issue #7460. Need to ensure compatibility with #7390.

Source-Repo: https://github.com/servo/servo
Source-Revision: 15de679f115f06a8ce33625d77e820b049730d4b
2015-09-01 08:33:02 -06:00
wilmoz 29f74a2734 servo: Merge #7475 - Make test-tidy check that braces have spaces before or after them (from wilcus:checkBracesSpaces); r=jdm
https://github.com/servo/servo/issues/7413
Posible future/past bug fixed in components/script/timers.rs

Source-Repo: https://github.com/servo/servo
Source-Revision: 60c72f601c4dd7cfbc8a4a983099a4b323f1516a
2015-08-31 13:18:23 -06:00
Sam Gibson b05493adbc servo: Merge #7139 - Testable net load (from samfoo:testable-net-load); r=jdm
*The goal of this PR is to get early feedback on this before I go too far down the rabbit hole. This new code path is working, and there's several tests I've written as a proof of concept. There are still some regressions that I'll be fixing in the coming days.*

I've abstracted out the request/response cycle so that it's no longer dependent on the Hyper request/response structs. Since request/response @ hyper are structs, not traits, it made mocking them for tests impossible.

Current issues/concerns:

* This relies on boxing the `HttpResponse` that gets returned from the `HttpRequester` because `HttpResponse` is unsized. I don't know if there's a more idiomatic rust-y way of doing this?
* This relies on boxing the `Read` that is now returned from `load` for the same reason.
* The devtools and resource manager channels are still passed into `load`. It might be easier to inject these as trait dependencies instead of chans as well?
* Needs more tests.

🎩

#6727

Source-Repo: https://github.com/servo/servo
Source-Revision: 7dda183022f9bee8b4bdffe8b4cf31e09b885d94
2015-08-30 20:07:40 -06:00
Josh Matthews b308b8b05e servo: Merge #7391 - Replace catch-all experimental flag with fine-grained boolean prefere… (from jdm:prefs); r=Ms2ger
…nces initialized from a JSON document.

Source-Repo: https://github.com/servo/servo
Source-Revision: 72125f070d7faa0f3a927cf8150fabfb382648e7
2015-08-28 10:08:32 -06:00
Simon Sapin 7352f8e6d0 servo: Merge #6854 - Remove usage of slice_chars in script (from servo:slice_chars); r=jdm+Ms2ger
It’s deprecated in the #6850 rustup.

The first commit changes some behavior which was previously incorrect: the spec says indices in DOM strings are UTF-16 code units, not `char` code points.

The second commit should not change behavior, unless I made a mistake.

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 2ca48ca4047e83e69abf1fad6978de46ef11c3a7
2015-08-28 05:16:03 -06:00
David Rajchenbach-Teller d82b2d3407 servo: Merge #7032 - Issue 7031 (from Yoric:issue-7031); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 98d9203d1c768fb5b6cda436d760c97cae35840f
2015-08-26 09:34:42 -06:00
Johann Tuffe 5c3a5a67f5 servo: Merge #7265 - Add alphabetical order check for use statements (from tafia:tidy-use); r=Ms2ger
close #7112

Source-Repo: https://github.com/servo/servo
Source-Revision: a5fbb2f2a6fa79755f975feff2435abb6a5dd0e9
2015-08-20 07:43:56 -06:00
Glenn Watson d58f2c501d servo: Merge #7246 - Add a simple method to emulate a platform UA (e.g. pretend a desktop build is an android UA) (from glennw:platform-ua); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: f340900c38768122ee8647eb3dc3f7cd0e2a6254
2015-08-17 22:44:38 -06:00
João Oliveira ee51120556 servo: Merge #7245 - replace len() !=0 with !is_empty() (from jxs:master); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: d90907cb5f7399196b76b3117e19ff4d1b775a96
2015-08-17 02:33:28 -06:00
Josh Matthews 6a81d499fc servo: Merge #7203 - Add automated style nit checks to test-tidy (from jdm:style); r=Ms2ger
Expands on the work by @wilmoz and cleans up the existing errors. Closes #7180. Closes #7111.

Source-Repo: https://github.com/servo/servo
Source-Revision: e74825f9fde8e222f4ba9bb24b2c2a3864c73e5f
2015-08-16 08:37:40 -06:00
James Graham a77654c4c2 servo: Merge #6416 - Use hosts-replaced URL only when loading resources (from jgraham:hosts_replaced); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 8602d01af2b2081ea1e9d600abdb1ea609a65038
2015-08-05 08:01:03 -06:00
Patrick Walton 3b92de7a22 servo: Merge #6586 - script: Make the resource task communication use IPC channels (from pcwalton:resource-task-ipc); r=jdm
This change makes Servo use serialized messages over IPC channels for resource loading. The goal is to make it easier to make Servo multiprocess in the future. This patch does not make Servo multiprocess now; there are many other channels that need to be changed to IPC before that can happen. It does introduce a dependency on https://github.com/serde-rs/serde and https://github.com/pcwalton/ipc-channel for the first time.

At the moment, `ipc-channel` uses JSON for serialization. This is because serde does not yet have official support for bincode. When serde gains support for bincode, I'll switch to that. For now, however, the JSON encoding and decoding will constitute a significant performance regression in resource loading.

To avoid having to send boxed `AsyncResponseTarget` trait objects across process boundaries, this series of commits changes `AsyncResponseTarget` to wrap a sender only. It is then the client's responsibility to spawn a thread to proxy calls from that sender to the consumer of the resource data. This only had to be done in a few places. In the future, we may want to collapse those threads into one per process to reduce overhead. (It is impossible to continue to use `AsyncResponseTarget` as a boxed trait object across processes, regardless of how much work is done on `ipc-channel`. Vtables are fundamentally incompatible with IPC across mutually untrusting processes.)

In general, I was pretty pleased with how this turned out. The main changes are adding serialization functionality to various objects that `serde` does not know how to serialize natively—the most complicated being Hyper objects—and reworking `AsyncResponseTarget`. The overall structure of the code is unchanged, and other than `AsyncResponseTarget` no functionality was lost in moving to serialization and IPC.

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 2eb122f394651232abd683fc576a5c4288bf277f
2015-07-31 16:06:36 -06:00
Simon Sapin 72eb9c272a servo: Merge #6850 - Upgrade to rustc 1.3.0-dev (87055a68c 2015-07-30) (from servo:rustup_2015-07-30); r=SimonSapin
This builds and passes unit tests.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4837dd9a1c172a55bfad0a7ae67dc3b64753be9a
2015-07-30 14:46:13 -06:00
Avi Weinstock 6a5f0dd49d servo: Merge #6654 - Add copy-to-clipboard feature under x11 (from aweinstock314:add-x11-copy-to-clipboard); r=jdm
The main work is in the the rust-clipboard library, this PR updates Cargo.lock and adds plumbing.

0337e48b3f

Source-Repo: https://github.com/servo/servo
Source-Revision: 28e163d6c44f1d85fbaea7f236da40972b6a63b1
2015-07-29 11:26:00 -06:00
Michael Howell 65722dd9bc servo: Merge #6793 - Add basic unit test for `preload_hsts_domains` (from notriddle:hsts-preload); r=jdm
Closes #6789.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2df88ee4b97fbc347dc99869b6989605760b662e
2015-07-28 19:01:39 -06:00
Sam Gibson 69f6c7e1ca servo: Merge #6490 - Implement HSTS (preload-only) (from samfoo:hsts-preload); r=jdm
Implement HSTS (preload-only) servo/servo#6105

* Downloads the HSTS preload list from the chromium repo (same as gecko), then convert it to a list appropriate for servo.
* Reads the preload list when creating a resource task, and implements STS for those domains.

Still todo:

* Read Strict-Transport-Security headers from servers and add details to the in-memory HSTS list. (note: this requires hyper or servo to implement an STS header struct. Hyper seems like the appropriate location, so I will create an issue/PR there soon). The work for this is nearly done with the exception of adding a new ControlMsg and the new header.
* Persist HSTS list to disk with known hosts (perhaps a different issue should be raised for this?)

Source-Repo: https://github.com/servo/servo
Source-Revision: ab3d6c472d409c1602c873dcdcb495a7fec9d4b0
2015-07-22 10:23:05 -06:00
Bogdan Cuza 5e266ea18c servo: Merge #6648 - Make tidy check for "*" in toml files (from boghison:tidytoml); r=jdm
This checks every .toml file for an asterisk and prints an error if found.

Source-Repo: https://github.com/servo/servo
Source-Revision: 58e9bc6583b6ebbeb27e3b28a6b271ee48cd695a
2015-07-20 14:43:05 -06:00
Martin Robinson f7a684b3a0 servo: Merge #6591 - Upgrade to rustc 1.3.0-dev (fddfd089b 2015-07-10) (from servo:rustup_2015-07-10); r=larsbergstrom
Depends on https://github.com/jgraham/webdriver-rust/pull/12.

Fixes #6020.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9af229b83095f2f8cfe7b61003b85ddf781f4ea7
2015-07-14 13:40:22 -06:00
Michael Wu fac8c79199 servo: Merge #6546 - Remove LayoutChan from LayoutDataWrapper (from michaelwu:slim-layoutdatawrapper); r=Ms2ger
Saves 32 bytes in Node.

Source-Repo: https://github.com/servo/servo
Source-Revision: cc73aad447f0455606a5a6005d31aa55334668a8
2015-07-05 21:39:12 -06:00
Corey Farwell 7a0abba150 servo: Merge #6553 - Unit test for util::str::split_html_space_chars (from frewsxcv:split-html-test); r=Ms2ger
I was concerned for a little bit that passing just whitespace to the
split_html_space_chars function would result in len > 0, so I wrote this
small unit test to make sure it does the right thing. Even though it
does do the right thing, I think there's still value in committing the
unit test.

Source-Repo: https://github.com/servo/servo
Source-Revision: d3d4976d8ed7cd7e92a1246513e125d1a6093d2a
2015-07-04 19:59:32 -06:00
Ms2ger 5e8dd39d0e servo: Merge #6470 - Enable experimental features in the multiple_stylesheets_cascading test (fixes #6466) (from Ms2ger:6466-viewport); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: 995985b9854823b013107381ca8431c0af238a2b
2015-06-26 13:35:11 -06:00
Ms2ger 18fd8097a2 servo: Merge #6459 - Update to rustc 2d0cbf3e3e25e092bd9e4c94d08e446b680869f0 (from servo:rustup_20150625); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: 21b48fc44d0b32627918b4778fed16203eecdba5
2015-06-25 12:03:15 -06:00
ecoal95 b32a9cd993 servo: Merge #6423 - Use euclid from crates.io (from emilio:euclid); r=glennw
Sorry for not doing it yesterday, I couldn't.

cc @metajack @SimonSapin

Source-Repo: https://github.com/servo/servo
Source-Revision: 4ebb95ccd8e034007eacb447a054919ef4af2bf7
2015-06-18 20:50:22 -06:00
Simon Sapin 1fe2355ac7 servo: Merge #6396 - Use html5ever and string-cache from crates.io (from SimonSapin:crates.io-html5ever); r=Ms2ger
r? @metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: 4435e6f42a1b57a3e6a0cfbb1033525fef5db174
2015-06-16 00:42:36 -06:00
Corey Farwell 711c6ca962 servo: Merge #6349 - rust-geom API changes (from frewsxcv:geom-api-changes); r=pcwalton
Shouldn't be merged until these have merged:

https://github.com/servo/rust-geom/pull/81

https://github.com/ecoal95/rust-offscreen-rendering-context/pull/13

https://github.com/servo/rust-layers/pull/178

~~I'll also need to update the Cargo lock files once they merge~~

Source-Repo: https://github.com/servo/servo
Source-Revision: cfcd8589d06935f83b903f76477ea03e4d4652d0
2015-06-13 13:52:07 -06:00
Nicholas Nethercote 8ef165e5c2 servo: Merge #6346 - Improve unit testing of util::mem (from nnethercote:improve-mem-unit-testing); r=Manishearth
r? @Manishearth

Source-Repo: https://github.com/servo/servo
Source-Revision: b9d53a2950e41ec9291d3d4fe5efa7eeb57a5253
2015-06-12 04:08:53 -06:00
Manish Goregaokar 96973b6240 servo: Merge #6188 - Add plugin for autoderiving HeapSize (from Manishearth:sizeof); r=nnethercote
Fixes #5914

r? @nnethercote for the gfx changes

r? @kmcallister or @jdm for the plugin

Source-Repo: https://github.com/servo/servo
Source-Revision: 2ca606aaba432741ce4e8274835f26db3a3581fc
2015-06-02 23:48:03 -05:00
Manish Goregaokar def53ee6c3 servo: Merge #6254 - Move to latest hyper everywhere, more package updates (from servo:rustup_20150601); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: 20f63459ef198bf96679cbb72355917e7a774265
2015-06-02 12:53:37 -05:00
Corey Farwell 333cc6c59d servo: Merge #6174 - Reduce max line length from 150 to 120 characters (from frewsxcv:cleanup-long-lines); r=SimonSapin
Part of https://github.com/servo/servo/issues/6041

Source-Repo: https://github.com/servo/servo
Source-Revision: 542519ebfd073662bc9421ac5fa0aa01ebc0d6fe
2015-05-24 18:27:26 -05:00
Jinwoo Song 945dab74f2 servo: Merge #6067 - Implement 'background-clip' property in CSS3 Background (from Jinwoo-Song:backgroundclip); r=pcwalton
This property determines the background painting area, which determines the area
within which the background is painted.

Spec: http://dev.w3.org/csswg/css-backgrounds-3/#background-clip

Fixes #6066.

r? @pcwalton
cc @yichoi

Source-Repo: https://github.com/servo/servo
Source-Revision: 9f2079f6baafd5f111fbe7b6542f98c2672fa317
2015-05-15 22:05:05 -05:00
Jinwoo Song ee17e1171b servo: Merge #6046 - Implement 'background-origin' property in CSS3 Background (from Jinwoo-Song:background_origin); r=pcwalton
This property determines the background positioning area, that is the position of
the origin of an image specified using the 'background-image' CSS property.

'background-origin' is ignored when background-attachment is fixed.

Spec: http://dev.w3.org/csswg/css-backgrounds-3/#background-origin

Fixes #6045.

r? @pcwalton
cc @yichoi

Source-Repo: https://github.com/servo/servo
Source-Revision: 8c402728247c73268df9389948ee9a9d9e4063b2
2015-05-14 20:53:02 -05:00
Ms2ger a13d7d197e servo: Merge #6044 - Various cleanup (from Ms2ger:cleanup); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 7bda431e61d06113306c3f12d9f4240a58a7d34d
2015-05-14 07:16:42 -05:00
Simon Sapin e50563524e servo: Merge #6021 - Upgrade to Hyper 0.4.0 (from SimonSapin:hyperup); r=Manishearth
r? @Manishearth

Source-Repo: https://github.com/servo/servo
Source-Revision: 8cacf20a075b3747509897599c37662721d18d1c
2015-05-12 12:42:49 -05:00
Avi Weinstock 462677c157 servo: Merge #5800 - Made the clipboard-related functionality in TextInput more testable. Add (from aweinstock314:x11-clipboard); r=jdm
...ed test_clipboard_paste to the "test-unit" suite.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5cb1356e9e3dbde9fd841c9aa2d21ea39c5eda18
2015-05-06 16:09:37 -05:00
James Gilbertson 157566c480 servo: Merge #5361 - Implement CSS Device Adaption Level 1 (from luniv:css-device-adapt); r=mbrubeck
Spec: http://dev.w3.org/csswg/css-device-adapt/

Currently, the actual viewport is used by the layout task as part of the reflow, and the compositor uses the zoom constraints. I'm not sure if anywhere else currently needs access to the constraints (i.e. there's no CSSOM as far as I can tell).

I did not implement sections 9 (viewport <META>) or 10 (handling 'auto' for 'zoom').

Source-Repo: https://github.com/servo/servo
Source-Revision: ccf1e6b9a701cf4ff010fa1f1b4ba9d656d962af
2015-05-06 12:41:09 -05:00
Himaja f9351542b0 servo: Merge #5947 - Extend the developer tools support (from jdm:devtools); r=jdm
Implement HTTP request/response notifications per https://github.com/servo/servo/wiki/More-developer-tools-student-project .

Rebased from #5920.

Source-Repo: https://github.com/servo/servo
Source-Revision: ab589da1f464ed00b0105bc4531690da0118ea5b
2015-05-05 11:52:44 -05:00
Simon Sapin 95c8716656 servo: Merge #5935 - Upgrade Rust (from servo:rustup_2015-04-25); r=Ms2ger
r? everybody

Source-Repo: https://github.com/servo/servo
Source-Revision: 49aed6555dbc008c1a378c5cbb303f5467232b6b
2015-05-05 09:11:30 -05:00
Nicholas Nethercote f6d34641fc servo: Merge #5912 - Add a `profile_traits` crate to reduce compile times (from nnethercote:profile_traits); r=Manishearth
A rebuild after touching components/profile/mem.rs now takes 48 seconds (and
only rebuilds `profile` and `servo`) which is much lower than it used to be.
In comparison, a rebuild after touching components/profile_traits/mem.rs takes
294 seconds and rebuilds many more crates.

This change also removes some unnecessary crate dependencies in `net` and
`net_traits`.

Source-Repo: https://github.com/servo/servo
Source-Revision: 77f653da2c4120ea7ac1a946d97fc70059d513d4

--HG--
rename : servo/tests/unit/gfx/lib.rs => servo/components/profile_traits/lib.rs
2015-04-30 20:02:33 -05:00
Glenn Watson 835b3be20c servo: Merge #5767 - Refactored image cache task - details below (from glennw:image-cache); r=larsbergstrom,jdm
* Simpler image cache API for clients to use.
 * Significantly fewer threads.
   * One thread for image cache task (multiplexes commands, decoder threads and async resource requests).
   * 4 threads for decoder worker tasks.
 * Removed ReflowEvent hacks in script and layout tasks.
   * Image elements pass a Trusted<T> to image cache, which is used to dirty nodes via script task. Previous use of Untrusted addresses was unsafe.
   * Image requests such as background-image on layout / paint threads trigger repaint only rather than full reflow.
 * Add reflow batching for when multiple images load quickly.
   * Reduces the number of paints loading wikipedia from ~95 to ~35.
 * Reasonably simple to add proper prefetch support in a follow up PR.
 * Async loaded images always construct Image fragments now, instead of generic.
   * Image fragments support the image not being present.
 * Simpler implementation of synchronous image loading for reftests.
 * Removed image holder.
 * image.onload support.
 * image NaturalWidth and NaturalHeight support.
 * Updated WPT expectations.

Source-Repo: https://github.com/servo/servo
Source-Revision: ac0645c2363b5a6ea3930b0857b3a27f1b6d033f
2015-04-22 19:16:46 -05:00
Avi Weinstock b5e3a5f83c servo: Merge #5547 - X11 clipboard support (from aweinstock314:x11-clipboard); r=jdm
Manual re-opening of #5479 (since it seems that GitHub disables re-opening with the same number after a rebase).

Source-Repo: https://github.com/servo/servo
Source-Revision: 9974ebb2f969d2de8959fe74844b7410a5acd54e
2015-04-21 14:41:32 -05:00
Simon Sapin d117879670 servo: Merge #5776 - Split the unit tests crate (from servo:split-unit-tests); r=mbrubeck
Closes #5707. (Includes a rebase of it.)
Fixes #5688.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: f795440ee3be976d9819b011d4add7ceee3ade1e

--HG--
rename : servo/tests/unit/gfx/mod.rs => servo/tests/unit/gfx/lib.rs
2015-04-21 14:06:22 -05:00
Marcus Klaas fe4dcc74dd servo: Merge #5742 - Replace usage of ResponseSenders by LoadConsumer (from marcusklaas:issue-5718); r=jdm
This closes issue https://github.com/servo/servo/issues/5718.

Source-Repo: https://github.com/servo/servo
Source-Revision: f164cc253eb876d82ab7c52268751db250ef8f8f
2015-04-19 10:10:57 -05:00
Marcus Klaas 11d32d61f7 servo: Merge #5734 - Fix compiler warnings in net unit tests (from marcusklaas:issue-5709); r=jdm
This closes issue https://github.com/servo/servo/issues/5709.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2b3acd1f5d3bcbbb796b3552a17e64cdc756a0d0
2015-04-17 09:52:46 -05:00
Josh Matthews 901eb35f52 servo: Merge #5156 - Support opt-in async network events (from jdm:asyncnet); r=pcwalton,Manishearth
This implements a framework for opting in to receiving network events asynchronously. It also converts XMLHttpRequest to use them, and paves the way for better support for synchronous XHR using on-demand, targeted event loops instead of spinning the global event loop. This gives us complete feature parity with the existing XHR implementation, using fewer threads than before in the async case.

Source-Repo: https://github.com/servo/servo
Source-Revision: 3151497d498b001b4a783dce0595615c6fc40936
2015-04-16 11:33:06 -05:00
Ms2ger 1bfe92c6ae servo: Merge #5710 - Retire content tests (from Ms2ger:content); r=saneyuki
Source-Repo: https://github.com/servo/servo
Source-Revision: 53d2432c90ab9ef171dfbef8e22ed3f58fcef8f0

--HG--
rename : servo/tests/content/parsable_mime/application/font-woff/test.wof => servo/tests/unit/net/parsable_mime/application/font-woff/test.wof
rename : servo/tests/content/parsable_mime/application/ogg/small.ogg => servo/tests/unit/net/parsable_mime/application/ogg/small.ogg
rename : servo/tests/content/parsable_mime/application/pdf/test.pdf => servo/tests/unit/net/parsable_mime/application/pdf/test.pdf
rename : servo/tests/content/parsable_mime/application/postscript/test.ps => servo/tests/unit/net/parsable_mime/application/postscript/test.ps
rename : servo/tests/content/parsable_mime/application/vnd.ms-fontobject/vnd.ms-fontobject => servo/tests/unit/net/parsable_mime/application/vnd.ms-fontobject/vnd.ms-fontobject
rename : servo/tests/content/parsable_mime/application/x-gzip/test.gz => servo/tests/unit/net/parsable_mime/application/x-gzip/test.gz
rename : servo/tests/content/parsable_mime/application/x-rar-compressed/test.rar => servo/tests/unit/net/parsable_mime/application/x-rar-compressed/test.rar
rename : servo/tests/content/parsable_mime/application/zip/test.zip => servo/tests/unit/net/parsable_mime/application/zip/test.zip
rename : servo/tests/content/parsable_mime/audio/aiff/test.aif => servo/tests/unit/net/parsable_mime/audio/aiff/test.aif
rename : servo/tests/content/parsable_mime/audio/basic/test.au => servo/tests/unit/net/parsable_mime/audio/basic/test.au
rename : servo/tests/content/parsable_mime/audio/midi/test.mid => servo/tests/unit/net/parsable_mime/audio/midi/test.mid
rename : servo/tests/content/parsable_mime/audio/mpeg/test.mp3 => servo/tests/unit/net/parsable_mime/audio/mpeg/test.mp3
rename : servo/tests/content/parsable_mime/audio/wave/test.wav => servo/tests/unit/net/parsable_mime/audio/wave/test.wav
rename : servo/tests/content/parsable_mime/image/bmp/test.bmp => servo/tests/unit/net/parsable_mime/image/bmp/test.bmp
rename : servo/tests/content/parsable_mime/image/gif/test87a => servo/tests/unit/net/parsable_mime/image/gif/test87a
rename : servo/tests/content/parsable_mime/image/gif/test89a.gif => servo/tests/unit/net/parsable_mime/image/gif/test89a.gif
rename : servo/tests/content/parsable_mime/image/jpeg/test.jpg => servo/tests/unit/net/parsable_mime/image/jpeg/test.jpg
rename : servo/tests/content/parsable_mime/image/png/test.png => servo/tests/unit/net/parsable_mime/image/png/test.png
rename : servo/tests/content/parsable_mime/image/webp/test.webp => servo/tests/unit/net/parsable_mime/image/webp/test.webp
rename : servo/tests/content/parsable_mime/image/x-icon/test.ico => servo/tests/unit/net/parsable_mime/image/x-icon/test.ico
rename : servo/tests/content/parsable_mime/image/x-icon/test_cursor.ico => servo/tests/unit/net/parsable_mime/image/x-icon/test_cursor.ico
rename : servo/tests/content/parsable_mime/text/html/text_html_a_20.html => servo/tests/unit/net/parsable_mime/text/html/text_html_a_20.html
rename : servo/tests/content/parsable_mime/text/html/text_html_a_20_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_a_20_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_a_3e.html => servo/tests/unit/net/parsable_mime/text/html/text_html_a_3e.html
rename : servo/tests/content/parsable_mime/text/html/text_html_a_3e_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_a_3e_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_b_20.html => servo/tests/unit/net/parsable_mime/text/html/text_html_b_20.html
rename : servo/tests/content/parsable_mime/text/html/text_html_b_20_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_b_20_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_b_3e.html => servo/tests/unit/net/parsable_mime/text/html/text_html_b_3e.html
rename : servo/tests/content/parsable_mime/text/html/text_html_b_3e_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_b_3e_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_body_20.html => servo/tests/unit/net/parsable_mime/text/html/text_html_body_20.html
rename : servo/tests/content/parsable_mime/text/html/text_html_body_20_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_body_20_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_body_3e.html => servo/tests/unit/net/parsable_mime/text/html/text_html_body_3e.html
rename : servo/tests/content/parsable_mime/text/html/text_html_body_3e_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_body_3e_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_br_20.html => servo/tests/unit/net/parsable_mime/text/html/text_html_br_20.html
rename : servo/tests/content/parsable_mime/text/html/text_html_br_20_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_br_20_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_br_3e.html => servo/tests/unit/net/parsable_mime/text/html/text_html_br_3e.html
rename : servo/tests/content/parsable_mime/text/html/text_html_br_3e_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_br_3e_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_comment_20.html => servo/tests/unit/net/parsable_mime/text/html/text_html_comment_20.html
rename : servo/tests/content/parsable_mime/text/html/text_html_comment_20_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_comment_20_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_comment_3e.html => servo/tests/unit/net/parsable_mime/text/html/text_html_comment_3e.html
rename : servo/tests/content/parsable_mime/text/html/text_html_comment_3e_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_comment_3e_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_div_20.html => servo/tests/unit/net/parsable_mime/text/html/text_html_div_20.html
rename : servo/tests/content/parsable_mime/text/html/text_html_div_20_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_div_20_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_div_3e.html => servo/tests/unit/net/parsable_mime/text/html/text_html_div_3e.html
rename : servo/tests/content/parsable_mime/text/html/text_html_div_3e_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_div_3e_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_doctype_20.html => servo/tests/unit/net/parsable_mime/text/html/text_html_doctype_20.html
rename : servo/tests/content/parsable_mime/text/html/text_html_doctype_20_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_doctype_20_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_doctype_3e.html => servo/tests/unit/net/parsable_mime/text/html/text_html_doctype_3e.html
rename : servo/tests/content/parsable_mime/text/html/text_html_doctype_3e_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_doctype_3e_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_font_20.html => servo/tests/unit/net/parsable_mime/text/html/text_html_font_20.html
rename : servo/tests/content/parsable_mime/text/html/text_html_font_20_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_font_20_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_font_3e.html => servo/tests/unit/net/parsable_mime/text/html/text_html_font_3e.html
rename : servo/tests/content/parsable_mime/text/html/text_html_font_3e_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_font_3e_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_h1_20.html => servo/tests/unit/net/parsable_mime/text/html/text_html_h1_20.html
rename : servo/tests/content/parsable_mime/text/html/text_html_h1_20_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_h1_20_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_h1_3e.html => servo/tests/unit/net/parsable_mime/text/html/text_html_h1_3e.html
rename : servo/tests/content/parsable_mime/text/html/text_html_h1_3e_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_h1_3e_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_head_20.html => servo/tests/unit/net/parsable_mime/text/html/text_html_head_20.html
rename : servo/tests/content/parsable_mime/text/html/text_html_head_20_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_head_20_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_head_3e.html => servo/tests/unit/net/parsable_mime/text/html/text_html_head_3e.html
rename : servo/tests/content/parsable_mime/text/html/text_html_head_3e_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_head_3e_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_iframe_20.html => servo/tests/unit/net/parsable_mime/text/html/text_html_iframe_20.html
rename : servo/tests/content/parsable_mime/text/html/text_html_iframe_20_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_iframe_20_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_iframe_3e.html => servo/tests/unit/net/parsable_mime/text/html/text_html_iframe_3e.html
rename : servo/tests/content/parsable_mime/text/html/text_html_iframe_3e_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_iframe_3e_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_p_20.html => servo/tests/unit/net/parsable_mime/text/html/text_html_p_20.html
rename : servo/tests/content/parsable_mime/text/html/text_html_p_20_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_p_20_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_p_3e.html => servo/tests/unit/net/parsable_mime/text/html/text_html_p_3e.html
rename : servo/tests/content/parsable_mime/text/html/text_html_p_3e_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_p_3e_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_page_20.html => servo/tests/unit/net/parsable_mime/text/html/text_html_page_20.html
rename : servo/tests/content/parsable_mime/text/html/text_html_page_20_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_page_20_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_page_3e.html => servo/tests/unit/net/parsable_mime/text/html/text_html_page_3e.html
rename : servo/tests/content/parsable_mime/text/html/text_html_page_3e_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_page_3e_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_script_20.html => servo/tests/unit/net/parsable_mime/text/html/text_html_script_20.html
rename : servo/tests/content/parsable_mime/text/html/text_html_script_20_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_script_20_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_script_3e.html => servo/tests/unit/net/parsable_mime/text/html/text_html_script_3e.html
rename : servo/tests/content/parsable_mime/text/html/text_html_script_3e_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_script_3e_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_style_20.html => servo/tests/unit/net/parsable_mime/text/html/text_html_style_20.html
rename : servo/tests/content/parsable_mime/text/html/text_html_style_20_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_style_20_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_style_3e.html => servo/tests/unit/net/parsable_mime/text/html/text_html_style_3e.html
rename : servo/tests/content/parsable_mime/text/html/text_html_style_3e_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_style_3e_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_table_20.html => servo/tests/unit/net/parsable_mime/text/html/text_html_table_20.html
rename : servo/tests/content/parsable_mime/text/html/text_html_table_20_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_table_20_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_table_3e.html => servo/tests/unit/net/parsable_mime/text/html/text_html_table_3e.html
rename : servo/tests/content/parsable_mime/text/html/text_html_table_3e_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_table_3e_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_title_20.html => servo/tests/unit/net/parsable_mime/text/html/text_html_title_20.html
rename : servo/tests/content/parsable_mime/text/html/text_html_title_20_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_title_20_u.html
rename : servo/tests/content/parsable_mime/text/html/text_html_title_3e.html => servo/tests/unit/net/parsable_mime/text/html/text_html_title_3e.html
rename : servo/tests/content/parsable_mime/text/html/text_html_title_3e_u.html => servo/tests/unit/net/parsable_mime/text/html/text_html_title_3e_u.html
rename : servo/tests/content/parsable_mime/text/plain/utf16bebom.txt => servo/tests/unit/net/parsable_mime/text/plain/utf16bebom.txt
rename : servo/tests/content/parsable_mime/text/plain/utf16lebom.txt => servo/tests/unit/net/parsable_mime/text/plain/utf16lebom.txt
rename : servo/tests/content/parsable_mime/text/plain/utf8bom.txt => servo/tests/unit/net/parsable_mime/text/plain/utf8bom.txt
rename : servo/tests/content/parsable_mime/text/xml/feed.atom => servo/tests/unit/net/parsable_mime/text/xml/feed.atom
rename : servo/tests/content/parsable_mime/text/xml/feed.rss => servo/tests/unit/net/parsable_mime/text/xml/feed.rss
rename : servo/tests/content/parsable_mime/text/xml/test.xml => servo/tests/unit/net/parsable_mime/text/xml/test.xml
rename : servo/tests/content/parsable_mime/unknown/open_type => servo/tests/unit/net/parsable_mime/unknown/open_type
rename : servo/tests/content/parsable_mime/unknown/true_type.ttf => servo/tests/unit/net/parsable_mime/unknown/true_type.ttf
rename : servo/tests/content/parsable_mime/unknown/true_type_collection.ttc => servo/tests/unit/net/parsable_mime/unknown/true_type_collection.ttc
rename : servo/tests/content/parsable_mime/video/avi/test.avi => servo/tests/unit/net/parsable_mime/video/avi/test.avi
rename : servo/tests/content/parsable_mime/video/mp4/test.mp4 => servo/tests/unit/net/parsable_mime/video/mp4/test.mp4
rename : servo/tests/content/parsable_mime/video/webm/test.webm => servo/tests/unit/net/parsable_mime/video/webm/test.webm
2015-04-16 05:41:56 -05:00
Bogdan Cuza fdcc40c14c servo: Merge #5544 - Make Metadata use ContentType (from boghison:master); r=jdm
Fixes #5538

Source-Repo: https://github.com/servo/servo
Source-Revision: 7f422e2076e7ebc9949e9fb2ffc3f09c653130c0
2015-04-14 15:11:20 -05:00
Edward Cho a22551161c servo: Merge #5671 - move mime classifier unit tests into unit test crate (from zerokarmaleft:move_mime_classifier_tests); r=SimonSapin
Closes #5667.

Source-Repo: https://github.com/servo/servo
Source-Revision: f67749fc7d9eab13086fbea32b684f3a8eff6688
2015-04-13 16:11:10 -05:00
James Gilbertson 93c6536687 servo: Merge #5553 - Use iterators for iterating through CSS rules (from luniv:css-rule-iterators); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: 22e570a06e92bbc449eb01058e243443b536f467
2015-04-10 19:17:49 -05:00
Aneesh Agrawal bc2c7bd5e1 servo: Merge #5558 - Remove compositor dependency on net crate (from aneeshusa:remove-compositor-dependency-on-net); r=jdm
Move the ImageCacheTaskClient trait and impl to net_traits. Fixes #5551.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6903955b9835b7cfdff6378e4a547cdad1589443
2015-04-10 07:41:54 -05:00
Patrick Walton 6146e9b4fd servo: Merge #5493 - layout: Simplify and improve the correctness of whitespace stripping in text layout, and unify the inline layout paths for pre- and normally-formatted text (from pcwalton:jumpiness); r=mbrubeck
This fixes a lot of "jumpiness" and removes the `new_line_pos` stuff.

Closes #2260.

r? @mbrubeck
cc @metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: d3478954fd8e3a8374104984efb91a918b5dbb7e
2015-04-08 17:13:36 -05:00
Simon Sapin 5b41ccfb98 servo: Merge #5574 - Move unit tests to their own crates, cut time by 96% (from servo:unit-tests); r=jack
On my laptop, running `./mach test-unit` goes from about 11 minutes to 22 seconds, when run after `./mach build`.

Fix #5291.

Source-Repo: https://github.com/servo/servo
Source-Revision: 017d1053617f6769d7f355e4a97d52ae67e53d1c

--HG--
rename : servo/components/net/test.jpeg => servo/tests/unit/net/test.jpeg
rename : servo/components/script/tests.rs => servo/tests/unit/script/size_of.rs
2015-04-07 21:16:49 -05:00