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

6233 Коммитов

Автор SHA1 Сообщение Дата
askeing 9d3b92895f servo: Merge #10901 - Handle HTTP specific errors then other errors when downloading rustc (from askeing:fix_10882); r=jdm
fix #10882

Source-Repo: https://github.com/servo/servo
Source-Revision: a98a53925f09a1b1d65c4680ca7990f9ac3ee1bc
2016-04-30 01:54:44 -07:00
Ramana Venkata 3b1084584e servo: Merge #10896 - Implement fetching file URL's (from vramana:basic_fetch_file); r=KiChjang
closes #10166

Source-Repo: https://github.com/servo/servo
Source-Revision: fbf98214c91ce3bb52c32ec4a5e121023843f1eb
2016-04-29 22:54:20 -07:00
Corey Farwell cc70fcb9a3 servo: Merge #10935 - Change OSX 'activiation policy' when running headless mode (from frewsxcv:activation-policy); r=larsbergstrom
...or also when outputting a file.

Fixes servo#10836.

Source-Repo: https://github.com/servo/servo
Source-Revision: f6a5ecb4a992e35f1673673df4f680154f217d2d
2016-04-29 20:43:29 -07:00
Alan Jeffrey 7e1062d6b5 servo: Merge #10902 - Remove panic! from the compositor (from asajeffrey:remove-explicit-panic-from-compositor); r=aneeshusa
Fixes #10864, and adds a check to `/etc/ci/check_no_unwrap.sh`.

r? @aneeshusa

Source-Repo: https://github.com/servo/servo
Source-Revision: f75fa5283e54aeca291fe865cd589e37b86cd8fe
2016-04-29 17:25:17 -07:00
Alan Jeffrey 775a20c691 servo: Merge #10899 - Added /etc/ci/chaos_monkey_test.py (from asajeffrey:chaos-monkey-ci); r=aneeshusa
Add a test to `/etc/ci` which runs a subset of `test-wpt` with `--random-pipeline-failure-probability=0.2`, and checks to make sure that there's no `CRASH` reports, so the constellation survived the experience, even if a lot of tests failed.

IRC conversation at http://logs.glob.uno/?c=mozilla%23servo&s=27+Apr+2016&e=27+Apr+2016#c416510

Fixes #10568.

r? @aneeshusa

Source-Repo: https://github.com/servo/servo
Source-Revision: a7a8eba13e799b707495a851b786009aa9652fea
2016-04-29 16:01:45 -07:00
Emilio Cobos Álvarez 18f790ca50 servo: Merge #10815 - style: Support anonymous box pseudo-elements (from emilio:anonbox-gcs); r=SimonSapin,bholley
This is a work-in-progress that:

 * Adds support for some pseudo-elements to skip the cascade entirely, in an analogous way to Gecko's anonymous box pseudo-elements.
 * Takes rid of `StylistWrapper`, and uses `Arc::get_mut` instead.
 * Uses the first bullet to precompute the `-servo-details-content` pseudo's style.

I'd like @bholley to take a look before following, do you think that the aproach is the correct?
Also, @SimonSapin could want to put some eyes on it.

Depends on https://github.com/servo/rust-selectors/pull/81

Source-Repo: https://github.com/servo/servo
Source-Revision: 407f991c8aba5dcf5312bb2c34a3dd4fe12e5471
2016-04-29 14:27:16 -07:00
Per Lundberg 523c131839 servo: Merge #10863 - Extracted shorthands to separate files (from perlun:improve-mako-file-structure-v4); r=SimonSapin
Following up on #10813, here is a similar extraction of the shorthand stuff as well.

I've deliberately tried to keep things similarly structured as in the longhand files. I.e. if a given property is in e.g. longhand/box.mako.rs, the shorthand stuff that relates to the same property is in shorthand/box.mako.rs and so forth.

----

The file is now down from ~7000 LoC to ~1750. A big improvement in my eyes, but there's still room for improving more. However, that shouldn't be done until we've had a bit of discussion about it. What we've done so far has been more-or-less obvious (after resolving the underlying Python/Mako issues with how to get things to properly communicate when things got split into multiple files etc). The remaining stuff is basically a plethora of anything from enums to structs to impls to... you name it.

One way to try and sort this out is to continue abusing Mako %include:s for this. I'm not sure it's the right way, but it would be a reasonably _easy_ way to do it. Another way would be to use Rust modules/crates etc. for sorting it out. I feel like too much of a novice on the Rust side of stuff yet to have any sensible opinions on how to get that done, so here I'd very much like suggestions from other people in the project.

(This is more of an entry point for discussion, and we could very well move that to a separate issue if you like. I think the more important short-term point is to try and get this merged. 😊 Please let me know if you feel it is OK, and if not, feel free to suggest adjustments.)

Source-Repo: https://github.com/servo/servo
Source-Revision: 160a44c286a6120a9c7e73864992da9d3237e3c0
2016-04-29 10:57:21 -07:00
Alan Jeffrey 9954aa2db9 servo: Merge #10837 - Add detail to mozbrowsererror events (from asajeffrey:add-mozbrowsererror-details); r=Manishearth
Part of #10334. Once #10824 lands, we can include the panic reason and backtrace in the error report.

Source-Repo: https://github.com/servo/servo
Source-Revision: 990dd72da7d69ffa98a5d1b266f48d14d24852aa
2016-04-29 09:18:39 -07:00
Yoav Alon 45ed58f663 servo: Merge #10834 - added support for :read-only and :read-write pseudo-classes (from yoava333:master); r=SimonSapin
partial fix for https://github.com/servo/servo/issues/10732

It's not a full fix because:
1. there's a bug in wpt-test https://github.com/w3c/web-platform-tests/issues/2889#issuecomment-214144420
2. we don't fully support all input types (namely image, color, hidden and range), which are defaulted to input text. this means that :read-write which is applicable to input text is mis-handled in those cases.
3. we don't support contenteditable, which is also possibly :read-write

Source-Repo: https://github.com/servo/servo
Source-Revision: ac8406f4aebe1e8571319a1d56fc627ea5782e60
2016-04-29 08:12:18 -07:00
Ms2ger fc7055d9f4 servo: Merge #10918 - Avoid some clones (from Ms2ger:clones); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: 9770e3c1e37a29c4b01ebfc243db2c7be58ec006
2016-04-29 06:33:34 -07:00
Cameron McCormack e19590ff39 servo: Merge #10889 - Add Servo_InsertStyleSheetBefore (from heycam:insert-sheet); r=bholley
r? @bholley
Will be used by https://bugzilla.mozilla.org/show_bug.cgi?id=1268390.

Source-Repo: https://github.com/servo/servo
Source-Revision: 78ae9a5da0f8f3dc67c2d0a76507a54bd08b9fba
2016-04-28 22:37:40 -07:00
cjkenned f245db90ec servo: Merge #10830 - DOMImplementation::createDocument should set content type based on namespace (from cjkenn:10743); r=Ms2ger
Set document content type based on the namespace.
Standard: https://dom.spec.whatwg.org/#dom-domimplementation-createdocument
Fixes #10743.

Source-Repo: https://github.com/servo/servo
Source-Revision: 408f9abb7a3588edaf1443273508bdb2220fa486
2016-04-28 21:31:30 -07:00
Matt Brubeck 22979e08c6 servo: Merge #10895 - Use byte indices instead of char indices for text runs (from mbrubeck:byteindex); r=pcwalton
Replace character indices with UTF-8 byte offsets throughout all code dealing with text runs.  This eliminates a lot of complexity when converting from one to the other, and interoperates better with the rest of the Rust ecosystem.

For most code this is just a simple replacement of char indices with byte indices.  In a few places like glyph storage and text fragment scanning, it also lets us get rid of code that existed only to map between bytes and chars.

Also includes some related fixes to text shaping, discovered while working on this conversion.  See the commit messages for details.

r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: cf121ad8dff90b8fa55558ca9bdcbfe29512a617
2016-04-28 20:22:09 -07:00
Cameron McCormack 72863f17c8 servo: Merge #10891 - Specialize text node style resolution so geckolib can avoid inheriting non-inherited structs (from heycam:text-style); r=bholley
r? @bholley

Source-Repo: https://github.com/servo/servo
Source-Revision: 1177ef5869e02b5129ebde6fa9780c93d362e16c
2016-04-28 18:00:48 -07:00
CorcovadoMing 1e505b370b servo: Merge #10892 - Pass --no-patch by default to update_css (from CorcovadoMing:patch-1); r=Wafflespeanut
fix #10884 according to #9666

Source-Repo: https://github.com/servo/servo
Source-Revision: f932db34c85dcd65a46ddde3ce0d8f6c92c28b7b
2016-04-28 16:19:35 -07:00
Cameron McCormack e92750ab6b servo: Merge #10888 - Make Servo_GetComputedValues take a node rather than an element (from heycam:computed-node); r=bholley
r? @bholley
https://bugzilla.mozilla.org/show_bug.cgi?id=1268392 is the Gecko side

Source-Repo: https://github.com/servo/servo
Source-Revision: 0b2c24804208069c22ca7edb9b63ff74e8383fbe
2016-04-28 15:25:00 -07:00
askeing 9e612d5993 servo: Merge #10887 - Dispatch error event when link elements get invalid response (from askeing:fix_10374); r=KiChjang
fix #10374

Source-Repo: https://github.com/servo/servo
Source-Revision: 210803b4b2f5bd8e4710c610d6950431137a9f7f
2016-04-28 14:30:04 -07:00
Daniel Robertson 2650d582c6 servo: Merge #10867 - Fix logic for cors cache match (from danlrobertson:sandbox); r=KiChjang
The current logic for a cors cache match does not consider "credentials is false and request's credentials mode is not "include" or credentials is true."

I could have missed something, but `CacheRequestDetails::credentials` is set to true if credentials mode is "include", and false otherwise. So `(!cors_cache.credentials && !cors_req.credentials) || cors_cache.credentials` would be directly following the spec, but unless I'm mistaken `cors_cache.credentials || !cors_req.credentials` is logically the same.

Fixes: #10525
Source-Repo: https://github.com/servo/servo
Source-Revision: 3d38a60cee8a2e19ae8f04df7c2374fc9d97999c
2016-04-28 13:36:05 -07:00
Patrick Walton bc4a42f15e servo: Merge #10159 - script: Make iframes know their pipeline IDs at all times, even after navigation (from pcwalton:iframes-know-their-pipelines); r=jdm
Since WebRender uses the pipeline ID stored in the iframe element to
determine which pipeline to display, it had better be kept up to date!

Closes #9919.

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 3836c2c4cba1f49ea5ce3ce802b0bd604213c2a2
2016-04-28 12:44:39 -07:00
Patrick Walton 40dea43a70 servo: Merge #10623 - layout: Reset values appropriately for floats flowing out of blocks with nonzero inline margins (from pcwalton:reddit-float-fix); r=mbrubeck
These two commits correctly position the hamburger menu icons on http://reddit.com/r/rust.

Source-Repo: https://github.com/servo/servo
Source-Revision: fcb1352e97ece3574eb9bfe6e08d3b97d39e1eba
2016-04-28 10:24:38 -07:00
Simon Sapin 294083b11e servo: Merge #10855 - Make css-properties.json checking a proper unit test (from servo:unit); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 55d14ffe001189a648c79512753fb9260a4b4c5d
2016-04-28 07:16:57 -07:00
Matt Brubeck 6885947f82 servo: Merge #10880 - Code cleanup in gfx::text (from mbrubeck:char-at); r=nox
* Fix deprecation warnings by replacing `str::char_at` and related functions with iterators.
* Replace some uses of `range::Range` with `std::ops::Range`.

Source-Repo: https://github.com/servo/servo
Source-Revision: 224bcd7057c9b5aeb8f0064de9e1d0551b75a01b
2016-04-28 05:01:24 -07:00
Nick Fitzgerald 82b359a568 servo: Merge #10694 - Add a method for dumping profiles as self-contained HTML w/ timeline visualization (from fitzgen:profile-traces-to-file); r=SimonSapin
This commit adds the `--profiler-trace-path` flag. When combined with `-p` to
enable profiling, it dumps a profile as a self-contained HTML file to the given
path. The profile visualizes the traced operations as a Gantt-chart style
timeline.

Example output HTML file: http://media.fitzgeraldnick.com/dumping-grounds/trace-reddit.html

Mostly I made this because I wanted to see what kind of data the profiler has, and thought that this might be useful for others as well. I'm happy to add tests if we can figure out how to integrate them into CI, but I'm not sure how that would work.

Thoughts?

Source-Repo: https://github.com/servo/servo
Source-Revision: b8e2fa58d61a4d77b67efa09a437ba6beb68e30e
2016-04-28 02:47:35 -07:00
Keith Yeung 4afedbf0a7 servo: Merge #10890 - Remove extraneous script_chan parameter from Trusted::new (from servo:trusted); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 78e23f4c9b54c51012c672839545682b38455d67
2016-04-28 01:57:52 -07:00
Shing Lyu c8a4e15a7f servo: Merge #10849 - Move buildbot step to yaml (from shinglyu:yaml); r=aneeshusa
This is a step of https://github.com/servo/saltfs/issues/316

After this patch lands, we'll PR the saltfs code to read from this yaml file, and dynamically generate test steps at runtime.

cc @aneeshusa @edunham

Source-Repo: https://github.com/servo/servo
Source-Revision: fbc575407d68a516a2b15a0d1c74150a9011aa9c
2016-04-27 21:23:04 -07:00
Daosheng Mu 2ebd1ffdc6 servo: Merge #10871 - Fix issue #10755 Canvas without contexts (from daoshengmu:canvasWithoutContexts); r=jdm
While canvas without contexts, we just need to return the function without drawing any pixel.

Fixes #10755.

Source-Repo: https://github.com/servo/servo
Source-Revision: 14de06aef077e57ca7fdccaae72551919b7748c4
2016-04-27 16:40:43 -07:00
SunyDays 3be282a328 servo: Merge #10816 - Implement the errorevent argument to Document::createEvent (from SunyDays:errorevent_argument); r=frewsxcv
new_uninitialized function on ErrorEvent has already been in components/script/dom/errorevent.rs

close #10738

Source-Repo: https://github.com/servo/servo
Source-Revision: 311dd0f930b9e8e90d08151f1956e2da25737d8a
2016-04-27 10:52:41 -07:00
Connor Brewster a169b8b4a6 servo: Merge #10647 - Finish hooking up XML parser (from cbrewster:parse_xml); r=jdm
This is a work in progress PR for #10581. I just want to make sure I am headed in the right direction.

cc @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: daa1a2a0a82d336205dae340d705ea6c0bed4ed2
2016-04-27 07:50:54 -07:00
Corey Farwell 56bef9c48f servo: Merge #10869 - DRY out `StreamedResponse::from_http_response` (from frewsxcv:dry); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 88020e9151d3cdb6a2e01b62ac0c093b8f693123
2016-04-27 04:23:34 -07:00
Martin Broesamle 92bb89e398 servo: Merge #10866 - Move abstract parser infrastructure from servohtmlparser.rs to parse (from broesamle:issue10856-a); r=Ms2ger
Fixes #10856

Source-Repo: https://github.com/servo/servo
Source-Revision: 5fd93de7be21220ec309969e7795061d835b0e84
2016-04-27 03:29:50 -07:00
Cameron McCormack 55fc6c831d servo: Merge #10848 - Add Servo_GetStyleFoo functions to get style structs from GeckoComputedValues (from heycam:struct-accessor); r=bholley
r?@bholley

Source-Repo: https://github.com/servo/servo
Source-Revision: e079e01320cf4b0f80c7d6307cf6d53fe7703ec4
2016-04-27 02:20:17 -07:00
Corey Farwell 497a8b7fd3 servo: Merge #10868 - Add `NetworkError::LoadCancelled` variant (from frewsxcv:loadcancelled); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: ad77d40360f4ccb0a1249d86e5a48357f74295ea
2016-04-27 01:26:05 -07:00
bd339 d779623ef0 servo: Merge #10838 - Implement step 3 according to spec (from bd339:iss9551); r=KiChjang
Goes towards fixing #9551

Source-Repo: https://github.com/servo/servo
Source-Revision: 21c177311522f0ecf4a5ce4068c8ede58c7ce676
2016-04-27 00:16:08 -07:00
Akshit Khurana 1bdbd171aa servo: Merge #10870 - Return a Result<i64, ()> from do_parse_integer (from axitkhurana:do-parse-integer-return-value); r=KiChjang
Fixes #10860

Source-Repo: https://github.com/servo/servo
Source-Revision: 55ea0d1133f2ccd63cb44f9e7ce613c07bcf613f
2016-04-26 23:26:29 -07:00
Bobby Holley ce0dac1c89 servo: Merge #10865 - Remove the need for custom clang to generate stylo bindings, plus misc other fixes (from bholley:simplify_bindgen); r=emilio
Source-Repo: https://github.com/servo/servo
Source-Revision: 77553ab42cb4f49d38be030a3c6852550c9f2a1b
2016-04-26 19:51:13 -07:00
Alan Jeffrey 981e5bc87b servo: Merge #10862 - Don't kill the root pipeline when randomly killing pipelines (from asajeffrey:only-the-chrome-survives); r=SimonSapin
Useful for stress-testing the browser chrome, e.g. testing #10334.

Source-Repo: https://github.com/servo/servo
Source-Revision: 959dbac0e7ca457d3979ff122ed4686eee209e91
2016-04-26 18:40:21 -07:00
SunyDays 7058e90fa1 servo: Merge #10820 - Implement the "focusevent" argument to Document::createEvent (from SunyDays:focusevent_argument); r=Ms2ger
close #10739

Source-Repo: https://github.com/servo/servo
Source-Revision: aa078a0780465a4dbf3ce91494f8c55a57359fd3
2016-04-26 17:50:51 -07:00
Simon Sapin 2f882b0cfb servo: Merge #10857 - Simplify TOML syntax (from servo:toml); r=nox
* Sections like `[dependencies.foo]` can be entries in a `[dependencies]` section with the `{key = value}` syntax.
* Per-target dependencies can be expressed with more general `cfg(…)` conditions instead of exact target triples: https://github.com/rust-lang/cargo/pull/2328

Source-Repo: https://github.com/servo/servo
Source-Revision: 2729864af73d62719ea0fd55cef417c43bdd951e
2016-04-26 15:46:37 -07:00
Ms2ger 2e7b36df9b servo: Merge #10847 - Update rustc (from servo:rustup-20160424); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: caba731da15e468872e41da466b68ea5a327128a
2016-04-26 14:41:54 -07:00
Alan Jeffrey edc1efc288 servo: Merge #10824 - Communicate a backtrace to the constellation when panicking (from asajeffrey:communicate-backtrace-on-panic); r=Manishearth
Send a representation of the backtrace from a pipeline thread to the constellation in the case of panic. This is the next step in communicating the backtrace to the browser chrome (#10334).

Source-Repo: https://github.com/servo/servo
Source-Revision: f773dc182badef4a4afac240d0d6fcbf57b76452
2016-04-26 13:17:33 -07:00
Keith Yeung 2f28c7365d servo: Merge #10608 - Add parsing of double values in style attributes (from KiChjang:parse-double); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: ccba2d6841119aac82dfe5ae2f528fdb910a6abd
2016-04-26 11:59:25 -07:00
Michael Howell dba4e0e71d servo: Merge #10722 - layout: Add support for vertical alignment within table cells (from notriddle:table_cell_valign); r=SimonSapin
Fixes #10621

Source-Repo: https://github.com/servo/servo
Source-Revision: 31a440867db54f5387aca3bd8ce2f644de84c5e1
2016-04-26 11:04:41 -07:00
Martin Robinson 2b99437a80 servo: Merge #10810 - Merge DisplayListEntry into DisplayItem (from mrobinson:displayitem); r=pcwalton
We don't really need two levels of abstraction for every element in the
DisplayList. This simplifies the complexity of the data structure in
preparation for providing documentation and properly handling scrolling
roots.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1fee7185a77424915d517a64685d6f7be40fbd3c
2016-04-26 10:13:00 -07:00
Sagar Muchhal 736fef2862 servo: Merge #10767 - Added Store Command to ImageCache Task (from akhan7:command); r=jdm
Implemented last bullet of [Image conformance student project: Initial Steps](https://github.com/servo/servo/wiki/Image-load-conformance-student-project)

Source-Repo: https://github.com/servo/servo
Source-Revision: 47efbea666ed60e09804d57f42a8348c30815907
2016-04-26 07:40:18 -07:00
Per Lundberg 5538a1f8c1 servo: Merge #10813 - Moved the rest of the longhand structs to separate files (from perlun:improve-mako-file-structure-v3); r=SimonSapin
Sorry for the bulk size of this; I know already it's not going to be a fun thing to review. Nevertheless, it should be done so we finalize the split of this huge file into smaller, more maintable parts.

The content of stuff being moved to separate files is unchanged. Only some minor formatting changes have been made and similar, but nothing of particular interest. IMHO it should be safe to merge if all the tests are fine.

/cc @KiChjang - I know you will like this. 😄

Source-Repo: https://github.com/servo/servo
Source-Revision: a44ebd5024ddd438e90f50aa9a2718a21cb75833
2016-04-26 05:56:33 -07:00
Ramana Venkata 09a7281663 servo: Merge #10850 - Allow setting withCredentials in synchronous XMLHttpRequest (from vramana:issue_10839); r=Ms2ger
closes #10839

Source-Repo: https://github.com/servo/servo
Source-Revision: cb42be98279348981951933aeee4b1bfcf1517d1
2016-04-26 05:07:14 -07:00
askeing 629563a5d9 servo: Merge #10818 - Put each unexpected dynamic symbols on its own line (from askeing:fix_10797); r=nox
fix #10797

Source-Repo: https://github.com/servo/servo
Source-Revision: bc2a88ad8f41087356e4936829ee1095bd7fc951
2016-04-26 02:24:02 -07:00
Stephen (Ziyun) Li 0ee57a9156 servo: Merge #10844 - Implement the "progressevent" argument to Document::createEvent (from sliz1:10740); r=frewsxcv
Fixes https://github.com/servo/servo/issues/10740

Source-Repo: https://github.com/servo/servo
Source-Revision: 09b2efc7061337593d948c7fb11b9d80ba42df5a
2016-04-25 22:00:24 -07:00
Fabrice Desré 4bc5c7a97b servo: Merge #10842 - Webrender no nativewindow (from fabricedesre:webrender-no-nativewindow); r=Manishearth
@glennw this fixed the panic when using webrender and no native display is available.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5ef355cf439f410f249f0565623eb439afd59456
2016-04-25 19:11:15 -07:00
Daniel eebee42d38 servo: Merge #10800 - read cookie_jar, hsts_list, auth_cache, and local_data from file if profile_dir option is present (from DDEFISHER:read_profile_dir_from_file); r=frewsxcv
Last step in Persistent sessions student project

"check for the presence of the profile directory command-line option in the ResourceThread constructor and look for files that will contain serialized versions of the previous steps. If they exist, populate the appropriate fields with deserialized versions of the file contents."

Also populated local_data in StorageManager constructor

I am not sure if the handling of decoding and encoding the Option Tm type was done in the cleanest way here.

Source-Repo: https://github.com/servo/servo
Source-Revision: 7a582b4bf9bdaeff34c8c813a92f35226ced72f5
2016-04-25 18:10:40 -07:00