Commit graph

17259 commits

Author SHA1 Message Date
Keith Yeung
e1091128cd Add tests for submit entity body 2016-04-30 21:42:59 -04:00
Keith Yeung
16361086d9 Add planned navigation to submit as entity body (fixes #9829) 2016-04-30 21:42:57 -04:00
Prabhjyot Singh Sodhi
cfde40e225 Support form submission of multipart/form-data 2016-04-30 21:42:50 -04:00
bors-servo
8db0367301 Auto merge of #10944 - mbrubeck:bitflags-0.6, r=frewsxcv
Upgrade a bunch of dependencies

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10944)
<!-- Reviewable:end -->
2016-04-30 15:21:22 -07:00
Matt Brubeck
8d540d1f9e Upgrade bincode, pkg-config, regex, cmake, fnv 2016-04-30 15:19:38 -07:00
Matt Brubeck
1e23d90631 Upgrade to bitflags 0.6.0 and selectors 0.5.6
Types generated by `bitflags!` are now private by default.  This PR marks them
`pub` where necessary.
2016-04-30 10:14:03 -07:00
bors-servo
b5a23a16be Auto merge of #10941 - samlh:patch-2, r=mbrubeck
Remove dead code left over from #10085

cc @pcwalton

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10941)
<!-- Reviewable:end -->
2016-04-30 09:44:25 -07:00
bors-servo
d3f55fbf60 Auto merge of #10917 - askeing:fix_10909, r=aneeshusa
The manifest_changed.sh doesn't need binary to update the manifests

fix #10909

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10917)
<!-- Reviewable:end -->
2016-04-30 08:37:27 -07:00
bors-servo
d9dc6dd03c Auto merge of #10931 - asajeffrey:send-panic-backtrace-to-mozbrowser, r=jdm
Send the panic reason and backtrace in mozbrowsererror.

Closes #10334.  Glues together PRs #10837 and #10824.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10931)
<!-- Reviewable:end -->
2016-04-30 07:30:38 -07:00
bors-servo
ca291927ed Auto merge of #10929 - mbrubeck:version-inflation, r=frewsxcv
Update libc, log, and image dependencies

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10929)
<!-- Reviewable:end -->
2016-04-30 06:23:20 -07:00
bors-servo
0f1a921ba6 Auto merge of #10928 - servo:warnings, r=mbrubeck
Fix some warnings

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10928)
<!-- Reviewable:end -->
2016-04-30 05:16:46 -07:00
bors-servo
491b5ff47e Auto merge of #10923 - askeing:fix_10922, r=jdm
Remove dir by shutil.rmtree, remove file by os.remove

fix #10922

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10923)
<!-- Reviewable:end -->
2016-04-30 03:42:18 -07:00
bors-servo
a98a53925f Auto merge of #10901 - askeing:fix_10882, r=jdm
Handle HTTP specific errors then other errors when downloading rustc

fix #10882

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10901)
<!-- Reviewable:end -->
2016-04-30 01:54:44 -07:00
bors-servo
fbf98214c9 Auto merge of #10896 - vramana:basic_fetch_file, r=KiChjang
Implement fetching file URL's

closes #10166

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10896)
<!-- Reviewable:end -->
2016-04-29 22:54:20 -07:00
askeing
d41180ef08 The manifest_changed.sh doesn't need binary to update the manifests 2016-04-30 13:05:28 +09:00
askeing
3103cd4b34 Handle HTTP specific errors then other errors when downloading rustc 2016-04-30 12:45:32 +09:00
bors-servo
f6a5ecb4a9 Auto merge of #10935 - frewsxcv:activation-policy, r=larsbergstrom
Change OSX 'activiation policy' when running headless mode.

...or also when outputting a file.

Fixes servo#10836.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10935)
<!-- Reviewable:end -->
2016-04-29 20:43:29 -07:00
Corey Farwell
71af66a349 Change OSX 'activation policy' when running headless mode.
...or also when outputting a file.

Fixes https://github.com/servo/servo/issues/10836.
2016-04-29 23:42:48 -04:00
Samuel Harrington
4691dc0c6e Remove dead code from block.rs 2016-04-29 20:13:42 -07:00
Samuel Harrington
b2cd35da47 Delete dead code from flow.rs 2016-04-29 20:12:22 -07:00
bors-servo
f75fa5283e Auto merge of #10902 - asajeffrey:remove-explicit-panic-from-compositor, r=aneeshusa
Remove panic! from the compositor

Fixes #10864, and adds a check to `/etc/ci/check_no_unwrap.sh`.

r? @aneeshusa

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10902)
<!-- Reviewable:end -->
2016-04-29 17:25:17 -07:00
bors-servo
a7a8eba13e Auto merge of #10899 - asajeffrey:chaos-monkey-ci, r=aneeshusa
Added /etc/ci/chaos_monkey_test.py.

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

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10899)
<!-- Reviewable:end -->
2016-04-29 16:01:45 -07:00
bors-servo
407f991c8a Auto merge of #10815 - emilio:anonbox-gcs, r=SimonSapin,bholley
style: Support anonymous box pseudo-elements

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

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10815)
<!-- Reviewable:end -->
2016-04-29 14:27:16 -07:00
Emilio Cobos Álvarez
15a32fa8eb
geckolib: Remove unneeded unsafe. 2016-04-29 22:54:58 +02:00
Emilio Cobos Álvarez
41f3b1c2ba
style: Remove unneeded lifetime 2016-04-29 22:54:57 +02:00
Emilio Cobos Álvarez
f12e4b826f
style: Add doc-comment about is_eagerly_cascaded_pseudo_element 2016-04-29 22:54:56 +02:00
Emilio Cobos Álvarez
2dbd17040a
geckolib: Refactor atom-to-pseudo logic and use ArcHelpers when
appropiate
2016-04-29 22:54:55 +02:00
Emilio Cobos Álvarez
02da1bb050
geckolib: Regen bindings, implement anon-box computed values, and pass
correct origin to StyleSheet::from_raw
2016-04-29 22:54:54 +02:00
Emilio Cobos Álvarez
9038b3a8c1
geckolib: Parse anon-box pseudo-elements just on UA stylesheets 2016-04-29 22:54:54 +02:00
Emilio Cobos Álvarez
227e39d558
style: Reset the per-pseudo-element maps when update() is called
This was causing panics in stylo.
2016-04-29 22:54:53 +02:00
Emilio Cobos Álvarez
9c44062836
layout: be clearer about resolved_style 2016-04-29 22:54:52 +02:00
Emilio Cobos Álvarez
1a0175fdbb
geckolib: Fix geckolib build after style and layout changes 2016-04-29 22:54:51 +02:00
Emilio Cobos Álvarez
5577a083ec
layout: Simplify ThreadSafeLayout::text_content 2016-04-29 22:54:50 +02:00
Emilio Cobos Álvarez
2e05190e68
layout: Add test for size of ServoThreadSafeLayoutNode 2016-04-29 22:54:50 +02:00
Emilio Cobos Álvarez
cf5c090576
layout: Don't force to overwrite display for pseudo-elements. 2016-04-29 22:54:49 +02:00
Emilio Cobos Álvarez
2a499d5a0b
layout: Stop storing PrecomputedStyleData in LayoutNode
Use the SharedStyleContext instead.
2016-04-29 22:54:48 +02:00
Emilio Cobos Álvarez
979c3a54b9
layout: Tidy a bit style pseudo-elements stuff 2016-04-29 22:54:47 +02:00
Emilio Cobos Álvarez
5a43c7e3cd
style: Allow inheritance when computing anonymous box styles
This is used a lot by Gecko, not still for servo though.
2016-04-29 22:54:46 +02:00
Emilio Cobos Álvarez
3563ecb770
style: Use precomputation for the -servo-details-content pseudo-element 2016-04-29 22:54:45 +02:00
Emilio Cobos Álvarez
b6402a81d0
style: Add infrastructure for non-eagerly-cascaded pseudo-elements
This commit also removes StylistWrapper and uses Arc::get_mut instead.
2016-04-29 22:54:45 +02:00
Emilio Cobos Álvarez
2dacbc6fb3
cargo: Bump selectors and string_cache 2016-04-29 22:54:44 +02:00
Alan Jeffrey
bd09f3148e Send the panic reason and backtrace in mozbrowsererror. 2016-04-29 13:22:48 -05:00
bors-servo
160a44c286 Auto merge of #10863 - perlun:improve-mako-file-structure-v4, r=SimonSapin
Extracted shorthands to separate files.

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.)

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10863)
<!-- Reviewable:end -->
2016-04-29 10:57:21 -07:00
Matt Brubeck
bf815cf0e3 Update libc, log, and image dependencies 2016-04-29 10:55:41 -07:00
Simon Sapin
756a34e93d Fix some warnings 2016-04-29 19:14:46 +02:00
bors-servo
990dd72da7 Auto merge of #10837 - asajeffrey:add-mozbrowsererror-details, r=Manishearth
Add detail to mozbrowsererror events.

Part of #10334. Once #10824 lands, we can include the panic reason and backtrace in the error report.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10837)
<!-- Reviewable:end -->
2016-04-29 09:18:39 -07:00
Alan Jeffrey
5db92870ff Remove panic! from the compositor 2016-04-29 11:10:33 -05:00
bors-servo
ac8406f4ae Auto merge of #10834 - yoava333:master, r=SimonSapin
added support for :read-only and :read-write pseudo-classes

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

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10834)
<!-- Reviewable:end -->
2016-04-29 08:12:18 -07:00
Alan Jeffrey
ac037280e1 Added /etc/ci/chaos_monkey_test.py. 2016-04-29 09:54:20 -05:00
askeing
c4b0e20bc5 Remove dir by shutil.rmtree, remove file by os.remove 2016-04-29 23:18:28 +09:00