Commit graph

4503 commits

Author SHA1 Message Date
Matt Brubeck
9d05f7c141 Add debug_assert_unit_is_safe_to_copy helper function 2016-05-16 15:13:26 -07:00
Nazım Can Altınova
1f5641cd51 Remove num-traits from compositing 2016-05-17 00:41:46 +03:00
Matt Brubeck
36699c5748 Support vertical-align in geckolib 2016-05-16 11:34:02 -07:00
Matt Brubeck
f998a6113e Add some safe setters for nsStyleCoord 2016-05-16 11:33:58 -07:00
Paul Rouget
911a67b400 Make quit-on-escape optional 2016-05-16 17:39:25 +02:00
Patrick Walton
981ad2d89c glutin: On desktop, use the same app icon we use on Android.
This makes the app easier to pick out in Instruments.app and so forth.
2016-05-16 15:27:49 +02:00
Anthony Ramine
d0b7a9f533 Update servo-glutin to 0.4.17 2016-05-16 15:14:31 +02:00
Anthony Ramine
27b00c62d9 Update cocoa to 0.3.3 2016-05-16 15:14:07 +02:00
Anthony Ramine
78e3b1a326 Update to Rust 1.10.0-nightly (2b79e05a0 2016-05-13) 2016-05-14 21:16:48 +02:00
Matt Brubeck
b37bb45919 Support z-index in geckolib 2016-05-13 11:53:57 -07:00
Connor Imes
88ea598211 Update hbs sys dependencies 2016-05-13 10:52:15 -05:00
Ms2ger
735480c184 Stop using JSAutoRequest. 2016-05-13 15:34:38 +02:00
bors-servo
c2beb55c0f Auto merge of #11160 - bholley:zero_gecko_struct, r=mbrubeck
Only use zeroed memory for gecko style structs, not the wrapper servo struct.

So that we don't clobber the drop flags.

This is a regression from #11121.

<!-- 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/11160)
<!-- Reviewable:end -->
2016-05-12 11:36:42 -07:00
bors-servo
e927057478 Auto merge of #11157 - mbrubeck:cef-warnings, r=metajack
Fix unused extern crate warnings in build-cef

<!-- 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/11157)
<!-- Reviewable:end -->
2016-05-12 10:53:10 -07:00
Bobby Holley
f68cdd3679 Only use zeroed memory for gecko style structs, not the wrapper servo struct, so that we don't clobber the drop flags.
This is a regression from #11121.
2016-05-12 10:35:49 -07:00
Matt Brubeck
83a4658cb4 Fix unused extern crate warnings in build-cef 2016-05-12 09:03:52 -07:00
Lars Bergstrom
e5f42776a7 Remove codegen-units from cef 2016-05-12 09:44:09 -05:00
bors-servo
9eb7162b8a Auto merge of #11146 - mbrubeck:always-be-updating, r=metajack
Update image, hyper, gleam, flate2, threadpool, string_cache, num_cpus

<!-- 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/11146)
<!-- Reviewable:end -->
2016-05-12 05:28:12 -07:00
bors-servo
f12869d2a7 Auto merge of #11127 - heycam:text-align, r=bholley
Support text-align in geckolib.

We don't yet support the 'unsafe' keyword, which isn't in a spec yet, and which would require slightly more complex parsing.

<!-- 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/11127)
<!-- Reviewable:end -->
2016-05-11 22:53:56 -07:00
Matt Brubeck
d54f489c33 Update image, hyper, gleam, flate2, threadpool, string_cache, num_cpus 2016-05-11 20:37:27 -07:00
bors-servo
f8b7e1c6ae Auto merge of #11143 - metajack:ccache-skia-azure, r=mbrubeck
Update skia and azure to get ccache support

Thank you for contributing to Servo! Please add an `X` inside each `[ ]` when the step is complete, and replace `__` with appropriate data:
- [x] `./mach build` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

Either:
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because they change only compilation

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

<!-- 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/11143)
<!-- Reviewable:end -->
2016-05-11 18:22:46 -07:00
Cameron McCormack
b3a1f5f071 Support text-align in geckolib.
We don't yet support the 'unsafe' keyword, which isn't in a spec yet, and which
would require slightly more complex parsing.
2016-05-12 09:17:27 +10:00
Jack Moffitt
0a7bd57d7b Update skia and azure to get ccache support 2016-05-11 16:10:18 -06:00
bors-servo
49fd06089d Auto merge of #11121 - bholley:hoist_bindings, r=mbrubeck
Hoist gecko bindings into their own crate

This will be helpful for leveraging the bindings with our nsIAtom-backed
string_cache replacement.

<!-- 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/11121)
<!-- Reviewable:end -->
2016-05-11 14:59:04 -07:00
Bobby Holley
d6a6f2c7e0 Hoist gecko bindings into their own crate.
This will be helpful for leveraging the bindings with our nsIAtom-backed
string_cache replacement.
2016-05-11 14:32:26 -07:00
bors-servo
a85db48623 Auto merge of #11134 - mbrubeck:style-rerun-if-changed, r=metajack
Explicitly list inputs to the style crate's build script

This avoids unncessary build script runs caused by changes to unrelated files.

Note: Adds a dependency on https://crates.io/crates/walkdir which is MIT licensed and maintained by BurntSushi.

r? @metajack

<!-- 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/11134)
<!-- Reviewable:end -->
2016-05-11 13:22:39 -07:00
bors-servo
7f76e3ba74 Auto merge of #11122 - mbrubeck:unify-builds, r=larsbergstrom
Use the same build environment and features for CEF, Servo, Gonk, Geckolib

* Remove unnecessary dependencies and features from top-level Cargo.tomls.  The features for each crate will be computed based on the union of features specified in the dependency graph.  Specifying the same ones again just adds more ways for them to get out of sync.
* Move all cargo build environment variables into CommandBase

Fixes #11112. r? @metajack

(Not included: CI test to make sure #11112 doesn't regress again.)

<!-- 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/11122)
<!-- Reviewable:end -->
2016-05-11 12:35:32 -07:00
Matt Brubeck
65e6938291 Explicitly list inputs to the style crate's build script
This avoids unncessary build script runs caused by changes to unrelated files.
2016-05-11 10:46:33 -07:00
Matt Brubeck
b2e874e151 Remove unnecessary dependencies and features from top-level Cargo.tomls
The features for each crate will be computed based on the union of features
specified in the dependency graph.  Specifying the same ones again just adds
more ways for them to get out of sync.
2016-05-11 08:46:55 -07:00
bors-servo
b61ad4190f Auto merge of #11029 - izgzhen:filemanager_thread, r=Manishearth
Add FileManagerThread

This is intended to support the File API implementation. Basically an event loop with three kinds of messages:

+ Select a file
+ Read a file with ID
+ Delete the ID from manager-owned map

The design decision in this PR is not the final (or best I think) version, welcome reviews :)

TODOs:

- [x] Add multiple file selection

<!-- 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/11029)
<!-- Reviewable:end -->
2016-05-11 04:28:58 -07:00
Zhen Zhang
c618ee21d0 add filemanager_thread 2016-05-11 15:14:03 +08:00
Cameron McCormack
0c92350479 Support outline-width in geckolib. 2016-05-11 12:58:10 +10:00
Cameron McCormack
4c249968d9 Round border-*-width values to pixels in geckolib. 2016-05-11 12:55:46 +10:00
bors-servo
a834bc1ec7 Auto merge of #11086 - heycam:radius, r=bholley
Support border/outline-radius properties in geckolib.

<s>Because of the way Gecko stores outline-width in nsStyleOutline::mOutlineWidth (i.e., as its specified value for keywords) we need separate property implementations for servo/gecko products.</s>

The -moz-outline-radius parsing is a bit of a hack; I was just avoiding the effort of factoring out the parsing into a separate method. Let me know if I should do that.

<s>Gecko-side changes are https://bugzilla.mozilla.org/show_bug.cgi?id=1271168.</s>

<!-- 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/11086)
<!-- Reviewable:end -->
2016-05-10 19:00:09 -07:00
Cameron McCormack
a12493f5fe Support -moz-outline-radius-* in geckolib. 2016-05-11 11:10:41 +10:00
Cameron McCormack
3491e16f06 Support border-*-radius in geckolib. 2016-05-11 11:10:40 +10:00
bors-servo
40be84df26 Auto merge of #11115 - mbrubeck:openssl-verify, r=jdm
Use openssl-verify to check certificate + hostname

Fixes #4954.  r? @jdm

This is based on hyperium/hyper#472, though it doesn't re-use that code directly because Servo configures its own OpenSSL context.

<!-- 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/11115)
<!-- Reviewable:end -->
2016-05-10 15:00:48 -07:00
Matt Brubeck
5695da0c38 Use openssl-verify to check certificate + hostname
Fixes #4954.
2016-05-10 11:30:11 -07:00
Fabrice Desré
c56b30b218 Cargo updates to build with armv7-unknown-linux-gnueabihf target 2016-05-09 10:01:17 -07:00
Connor Brewster
dec047eabe update xml5ever to 0.1.3 2016-05-09 07:25:41 -06:00
bors-servo
aa62a1466e Auto merge of #11058 - bholley:minor_wikipedia_fixes, r=mbrubeck,bholley
Geckolib: minor robustness fixes

<!-- 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/11058)
<!-- Reviewable:end -->
2016-05-07 04:25:31 -07:00
Bobby Holley
50b2490d38 Match both <pair> and <utility>, since apparently the results vary by system. 2016-05-06 16:48:58 -07:00
Bobby Holley
ceb7dcb605 Match "utility" rather than "pair" when generating style struct bindings. 2016-05-06 16:36:25 -07:00
Bobby Holley
a778b03f36 Tweak the bindgen setup scripts. 2016-05-06 14:40:01 -07:00
Bobby Holley
286da1bbe4 Regenerate bindings after cached margin and padding removal. 2016-05-06 14:40:00 -07:00
Bobby Holley
38a6b58a0a Hackily return default computed values for unstyled nodes. 2016-05-06 14:39:59 -07:00
Matt Brubeck
9b680ad58a Update hyper, openssl, wayland, threadpool, offscreen_gl_context
Gets rid of duplicate versions of bitflags and xml-rs!
2016-05-06 08:42:00 -07:00
bors-servo
d7fa1d8eed Auto merge of #11050 - mskrzypkows:css_issue, r=Ms2ger
Update cssparser to fix CSS.escape test failures

Fixes #10685

<!-- 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/11050)
<!-- Reviewable:end -->
2016-05-06 06:39:18 -07:00
Maciej Skrzypkowski
43b72537dc Update cssparser to fix CSS.escape test failures
Fixed failing tests #10685
2016-05-06 13:54:26 +02:00
bors-servo
50f2349551 Auto merge of #11045 - heycam:non-element, r=bholley
Add Servo_GetComputedValuesForOtherNonElement.

<!-- 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/11045)
<!-- Reviewable:end -->
2016-05-06 04:30:47 -07:00