Commit graph

7319 commits

Author SHA1 Message Date
bors-servo
e6e73b8da7 auto merge of #4063 : mttr/servo/test_wpt_from_relpath, r=mbrubeck
Fixes #4055 

This PR allows `./mach test-wpt` to be run  (from /path/to/servo) with a single relative path to some wpt test.

For example:
```
./mach test-wpt tests/wpt/web-platform-tests/dom/sometest.html
```
The argument `tests/wpt/web-platform-tests/dom/sometest.html` is passed on as `--include dom/sometest.html`.
2014-11-21 20:24:30 -07:00
bors-servo
2bba42ad19 auto merge of #4049 : zmike/servo/embedding-callbacks, r=jdm
begin implementing CEF COM, add more types (stupid rust-bindgen taking forever to figure out...)

@jdm @larsbergstrom
2014-11-21 20:00:36 -07:00
Mike Blumenkrantz
d4ddfaa623 embedding: redo browser creation, split after_created COM to separate function
this causes the callback to run at the expected time for applications that may depend on the browser loop having started or somesuch
2014-11-21 21:54:09 -05:00
Mike Blumenkrantz
8aceb59824 embedding: redo browser creation and message loop code to be more CEF-like
big thanks to @alexcrichton for his help with this
2014-11-21 21:54:09 -05:00
Mike Blumenkrantz
0341444ce9 util::opts::default_opts() is now pub 2014-11-21 21:52:56 -05:00
Mike Blumenkrantz
0ddbd430a3 embedding: add cef_window_info_t decl 2014-11-21 21:52:56 -05:00
Mike Blumenkrantz
cd0bcbd777 embedding: add cef_client_t decl 2014-11-21 21:52:56 -05:00
Mike Blumenkrantz
8f34fcb530 embedding: add cef_life_span_handler_t decl 2014-11-21 21:52:56 -05:00
Mike Blumenkrantz
1704838d7d embedding: add cef_display_handler_t decl 2014-11-21 21:52:56 -05:00
Mike Blumenkrantz
cb77e79522 embedding: fix type decls 2014-11-21 21:52:56 -05:00
Matthew Rasmus
655dd453bd Run a single WPT test from a relative path
Fixes #4055
2014-11-21 13:52:18 -08:00
bors-servo
b4c3aec383 auto merge of #4052 : glennw/servo/update-glutin, r=larsbergstrom
- Update glutin, and update rust-cocoa to use the servo fork now that upstream is up to date.
- Some events and resizing are still not working correctly on mac yet.
2014-11-21 08:51:31 -07:00
bors-servo
4c1ca2fb96 auto merge of #4056 : brunoabinader/servo/css-updates, r=SimonSapin
TSIA
2014-11-21 08:06:31 -07:00
Bruno de Oliveira Abinader
6f2af793e8 Arc::make_unique is now stable 2014-11-21 10:45:35 -04:00
Bruno de Oliveira Abinader
b9f974ab33 No longer need for local variable in PropertyDeclaration::parse 2014-11-21 10:40:21 -04:00
bors-servo
dfa9e1aa4a auto merge of #4053 : mttr/servo/reftests_with_relative_dir, r=SimonSapin
Fixes #3521
2014-11-21 05:06:31 -07:00
Matthew Rasmus
3149eae7f6 Allow reftests to be run directly w/ relative path
Fixes #3521
2014-11-20 23:21:10 -08:00
bors-servo
c23bfdf1c5 auto merge of #4050 : mttr/servo/implement_attr_nodevalue, r=Ms2ger
Fixes #4047, and updates to expect tests that are now passing because of it.
2014-11-20 17:18:29 -07:00
bors-servo
32d765fb04 auto merge of #4051 : glennw/servo/remove-exit-load, r=mbrubeck
This simplifies some upcoming changes to how event handling works.
2014-11-20 16:54:31 -07:00
Glenn Watson
4efa13d240 Make glutin work on mac.
- Update glutin, and update rust-cocoa to use the servo fork now that upstream is up to date.
- Many events and resizing are still not working correctly on mac yet.
2014-11-21 09:25:56 +10:00
Glenn Watson
898c1ecc8f Remove unused exit after load option.
This simplifies some upcoming changes to how event handling works.
2014-11-21 09:15:02 +10:00
Matthew Rasmus
a87391169d Updated to expect tests that are now passing 2014-11-20 13:40:26 -08:00
Matthew Rasmus
73721cd189 Implement Attr#nodeValue
Fixes #4047
2014-11-20 13:18:10 -08:00
bors-servo
133b523d2b auto merge of #4044 : zmike/servo/embedding-process, r=jdm
Fixes #4023 

@SimonSapin @jdm
2014-11-20 13:06:32 -07:00
bors-servo
9a139dac34 auto merge of #4045 : mttr/servo/mach_update, r=jdm
Example usage:

``` sh
$ ./mach update-cargo -p rust-xml
.
    Updating git repository `https://github.com/netvl/rust-xml`
ports/cef
    Updating git repository `https://github.com/netvl/rust-xml`
ports/android/glut_app
    Updating git repository `https://github.com/netvl/rust-xml`
```
2014-11-20 10:45:31 -07:00
bors-servo
df471245c3 auto merge of #4042 : mttr/servo/debian_requirements_update, r=SimonSapin
Encountered this when building for the first time today:

```
note: /usr/bin/ld: cannot find -lbz2
collect2: error: ld returned 1 exit status

error: aborting due to previous error
Could not compile `servo`.
```

Installing the libbz2-dev packaged fixed it. Added to the list of packages to install on Debian based linuxes in README.md
2014-11-20 10:00:58 -07:00
Mike Blumenkrantz
c8da9e1a54 embedding: cef_string_ascii_to_wide() 2014-11-20 11:53:47 -05:00
Mike Blumenkrantz
0d21a68ee7 embedding: cef_string_ascii_to_utf16() 2014-11-20 11:53:47 -05:00
Mike Blumenkrantz
bd5419418e embedding: cef_string_wide_to_utf8() 2014-11-20 11:53:47 -05:00
Mike Blumenkrantz
8b5f4cff3d embedding: cef_string_utf8_to_wide() 2014-11-20 11:53:47 -05:00
Mike Blumenkrantz
031963c91e embedding: cef_string_wide_cmp() 2014-11-20 11:53:44 -05:00
Mike Blumenkrantz
b0a65f4918 embedding: implement cef_execute_process() stub
this is missing signal handler functionality in rust and we currently have no use case for actual execution of secondary processes
2014-11-20 11:53:41 -05:00
Mike Blumenkrantz
37583ea8f5 embedding: add some commonly used string constants from chromium 2014-11-20 11:53:37 -05:00
Ms2ger
7ccb09b34d Update web-platform-tests. 2014-11-20 11:52:31 -05:00
Matthew Rasmus
3b40b51a81 Added bzip to Fedora and Arch prereqs 2014-11-20 08:46:18 -08:00
Matthew Rasmus
3a43abfa35 Added a mach command for cargo update
As proposed in #3736

Example usage:

``` sh
$ ./mach update-cargo -p rust-xml
.
    Updating git repository `https://github.com/netvl/rust-xml`
ports/cef
    Updating git repository `https://github.com/netvl/rust-xml`
ports/android/glut_app
    Updating git repository `https://github.com/netvl/rust-xml`
```
2014-11-19 20:55:04 -08:00
Matthew Rasmus
70ad932450 Added libbz2-dev to Debian based prerequisites
Encountered this when building for the first time today:

```
note: /usr/bin/ld: cannot find -lbz2
collect2: error: ld returned 1 exit status

error: aborting due to previous error
Could not compile `servo`.
```

Installing the libbz2-dev packaged fixed it.
2014-11-19 15:35:30 -08:00
bors-servo
7eeec45a4e auto merge of #4039 : Ms2ger/servo/wpt_20141119, r=jdm 2014-11-19 13:51:29 -07:00
bors-servo
ce6ea55acd auto merge of #4040 : pcwalton/servo/librustc-linkage, r=metajack
r? @zmike
2014-11-19 13:18:29 -07:00
Patrick Walton
10cc07e137 cef: Don't link against librustc in the final build artifact 2014-11-19 12:12:04 -08:00
Ms2ger
b7da201ebf Update web-platform-tests. 2014-11-19 18:29:01 +01:00
bors-servo
9da7f10c3c auto merge of #3964 : mrobinson/servo/code-duplication, r=larsbergstrom
It is possible to share the code which creates root layers.
2014-11-19 09:00:47 -07:00
bors-servo
554f696db8 auto merge of #4035 : glennw/servo/remove-rust-alert, r=pcwalton 2014-11-18 21:30:27 -07:00
Glenn Watson
c39852a3f4 Remove rust-alert as it's broken on mac, and unimplemented on other platforms. 2014-11-19 14:19:40 +10:00
bors-servo
a07401ca4e auto merge of #3904 : pcwalton/servo/maze-solver-float-placement, r=cgaebel
r? @glennw @cgaebel
2014-11-18 16:39:25 -07:00
Patrick Walton
55da2c97d5 layout: Incrementalize reflow of block formatting contexts impacted by
floats, and make float placement idempotent.

This moves float placement outside sequential block size computation.

Improves the maze solver.
2014-11-18 15:36:04 -08:00
Patrick Walton
be36fcd3b1 layout: Eliminate the virtual is_float() in favor of the flow flags 2014-11-18 15:36:04 -08:00
bors-servo
f5c6146de0 auto merge of #4028 : glennw/servo/glutin, r=larsbergstrom
Default build uses glfw, but glutin can be enabled via:

./mach cargo build --no-default-features --features=glutin

Remaining work:
 * Mac
 * Android
 * hi-dpi
 * nested event loop

This PR also enables true headless (without X) rendering on Linux by specifying the rendering API as Mesa.
2014-11-18 15:48:29 -07:00
Glenn Watson
0278920343 Add glutin port (supported on Linux only currently).
Default build uses glfw, but glutin can be enabled via:

./mach cargo build --no-default-features --features=glutin
2014-11-19 08:31:34 +10:00
bors-servo
71d49a5b8e auto merge of #4025 : zmike/servo/embedding-string_multimap, r=jdm
@jdm @larsbergstrom
2014-11-18 14:39:31 -07:00