Commit graph

628 commits

Author SHA1 Message Date
Glenn Watson
899ab226de Updates for changes in rust-geom and rust-layers 2015-06-11 07:19:58 +10:00
Patrick Walton
e42011cd53 Revert "Updates for changes in rust-geom and rust-layers" 2015-06-10 14:14:51 -07:00
Patrick Walton
053296e131 Merge pull request #6329 from glennw/remove-generic
Updates for changes in rust-geom and rust-layers
2015-06-10 14:14:24 -07:00
Glenn Watson
8fb29c91e6 Updates for changes in rust-geom and rust-layers 2015-06-11 07:05:56 +10:00
Simon Sapin
ac3d78c309 Pick up memory safety fix in rust-smallvec 2015-06-10 17:21:07 +02:00
bors-servo
35000a9b85 Auto merge of #6317 - frewsxcv:rm-util-crate-reexports, r=Ms2ger
The util component specified fnv and smallvec as dependencies and publicly
reexported both of them. Several other components utilized these reexports,
presumably because fnv and smallvec used to live in the tree so reexporting
made the transition easier.

These indirect dependencies through the util component are unnecessary.

This commit removes the fnv & smallvec crate reexports in the util component.
It exchange, it adds fnv & smallvec as dependencies to non-util components
wherever needed. Finally, it removes the fnv dependency from util as it is not
utilized anywhere in the util component.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6317)
<!-- Reviewable:end -->
2015-06-10 08:23:11 -06:00
Corey Farwell
4f47b41fa7 Remove fnv & smallvec crate reexports from util
The util component specified fnv and smallvec as dependencies and publicly
reexported both of them. Several other components utilized these reexports,
presumably because fnv and smallvec used to live in the tree so reexporting
made the transition easier.

These indirect dependencies through the util component are unnecessary.

This commit removes the fnv & smallvec crate reexports in the util component.
It exchange, it adds fnv & smallvec as dependencies to non-util components
wherever needed. Finally, it removes the fnv dependency from util as it is not
utilized anywhere in the util component.
2015-06-10 07:14:55 -07:00
Mátyás Mustoha
53427f43ab Add ARM build support. 2015-06-10 14:24:57 +02:00
Anthony Ramine
2fc4b9d4cd Update gleam to 98f889861aa1c8dee088ac751ab03ca639715bbe 2015-06-08 19:36:07 +02:00
Jack Moffitt
b5ebbaefe3 Clean up dependencies. 2015-06-07 12:14:38 -06:00
Eduard Burtescu
00e8e5f77d Use the correct log crate and setup env_logger in main. 2015-06-06 23:20:40 +03:00
Matt Brubeck
bd5747cc1d Update expat-sys 2015-06-03 15:18:50 -07:00
bors-servo
b0f3417cff Auto merge of #6219 - zmike:favicons_and_stringlOWWW-MY-HEAD, r=pcwalton
Getting these down to the embedding API level required that I redo the bindings generator again, so this is more commits than anticipated.

@mbrubeck @Manishearth @pcwalton but NOT @larsbergstrom so don't even look at this.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6219)
<!-- Reviewable:end -->
2015-06-03 00:27:41 -05:00
Mike Blumenkrantz
3316dd6798 update glutin 2015-06-02 22:41:04 -04:00
Mike Blumenkrantz
a1fda4af52 move cef favicon change callback to head_parsed callback to be faster 2015-06-02 22:16:29 -04:00
Mike Blumenkrantz
ffa2093012 add window method for notifying when the <head> tag has been parsed 2015-06-02 22:16:28 -04:00
Mike Blumenkrantz
612cefa02d update all cef interfaces to use borrows for string_list params
it was somewhat impossible to make this work with allocated string_lists
due to constant leakage from box allocations going out of scope, so this should
simplify it ane be more manageable in the future
2015-06-02 22:16:27 -04:00
Mike Blumenkrantz
e8e300a6fd move cef string_list type to actually be Vec<String>
previously this was a complicated rust wrapper because I didn't understand rust.
now I understand rust, so I'll make it a different kind of complicated wrapper
2015-06-02 22:16:26 -04:00
Mike Blumenkrantz
5d99933ddc implement cef_display_handler::on_favicon_urlchange
also fixes #6166 but with more fix than last fix
2015-06-02 22:16:26 -04:00
Mike Blumenkrantz
12f20f1ecc add handling for favicon link elements
fixes #6166
2015-06-02 22:16:25 -04:00
bors-servo
20f63459ef Auto merge of #6254 - servo:rustup_20150601, r=SimonSapin
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6254)
<!-- Reviewable:end -->
2015-06-02 12:53:37 -05:00
Manish Goregaokar
f80f99fe1e Move to latest hyper everywhere 2015-06-02 20:12:14 +05:30
James Graham
2b396b2485 Allow Window implementations to indicate that they don't support a clipboard.
This is important for the SERVO_HEADLESS configuration, because
creating a clipboard on linux creates an X context which then causes
reftest instability.
2015-06-02 08:57:09 +01:00
James Graham
49f1b13ad9 Add support for switching frames with the webdriver API.
This moves webdriver_traits into msg to avoid a circular dependency.
2015-06-01 23:18:55 +01:00
bors-servo
83a0b78221 Auto merge of #6243 - servo:rustup_20150601, r=nox
cc @nox

r? @Ms2ger @kmcallister @larsbergstrom

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6243)
<!-- Reviewable:end -->
2015-06-01 11:45:42 -05:00
Manish Goregaokar
f94eced1f5 Upgrade to rustc 1.2.0-dev (474c6e0ae 2015-05-30) 2015-06-01 22:03:27 +05:30
bors-servo
e6c4ca4960 Auto merge of #6220 - metajack:task-info-build-cleanup, r=nox
This is the first bit of build cleanup on my quest to make Cargo faster.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6220)
<!-- Reviewable:end -->
2015-06-01 11:04:23 -05:00
bors-servo
0de09b936e Auto merge of #6183 - ecoal95:webglcontextattributes, r=nox
r? @jdm

I couldn't add the `getContextAttributes` method since `CodegenRust`
doesn't know how to return a dictionary value, I'll take a look at it ASAP.

I think the helper functions can return directly the renderer, since they're used just for that, but I wanted to hear your opinions about this.

By the way I'm interested in adding more serious tests for WebGL, and I think the [khronos conformance suit](https://github.com/KhronosGroup/WebGL/tree/master/conformance-suites/1.0.3) should be the best option.

Should I try to integrate it in wpt, or making a `tests/webgl` directory (or similar) inside the servo tree? (Maybe this question should be for @Ms2ger)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6183)
<!-- Reviewable:end -->
2015-06-01 08:37:48 -05:00
ecoal95
b3ac346749 Add WebGLContextAttributes support
This commit also:
* Allows to return non-rootable dictionaries from
Codegen.
* Merges the two context types in an enum type.
2015-06-01 15:29:38 +02:00
Tony Baker
262e0efbe1 Update libfontconfig 2015-05-31 17:02:07 -04:00
Jack Moffitt
29fcdce5e0 Switch task_info to use modern Cargo tools. 2015-05-29 17:40:15 -06:00
Tony Baker
2ab1051bd9 Update dependencies for js, fontconfig-sys and mozjs_sys 2015-05-29 17:44:00 -04:00
bors-servo
09f2977cc9 Auto merge of #6209 - zmike:rendersizing, r=mbrubeck
ensure that the output render size matches the desired size

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6209)
<!-- Reviewable:end -->
2015-05-28 15:41:44 -05:00
Mike Blumenkrantz
2a55a91b9a force cef browser resize check on initial load
ensure that the output render size matches the desired size
2015-05-28 16:04:06 -04:00
bors-servo
c97c0a9f94 Auto merge of #6065 - mmatyas:canvas_antialias, r=jdm
This patch turns on antialiasing for the canvas, and updates the painting code to use the updated Azure DrawOptions defined in servo/rust-azure#158.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6065)
<!-- Reviewable:end -->
2015-05-28 14:59:36 -05:00
Ms2ger
ee65647ee1 Avoid a build warning in the glutin port without the window feature enabled. 2015-05-28 19:35:42 +02:00
Mátyás Mustoha
f4c0bd3b80 Turn off default antialiasing for most DrawOptions. 2015-05-28 18:42:16 +02:00
Mátyás Mustoha
322fd5ad9d Add disable-canvas-aa option to test runner. 2015-05-28 11:10:58 +02:00
bors-servo
af81db5479 Auto merge of #6198 - Jinwoo-Song:freetype, r=metajack
It is recommended to use FT_Done_Library with FT_New_Library
from freetype document.

Fixes #6191.

r? @jdm @nnethercote 
cc @yichoi

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6198)
<!-- Reviewable:end -->
2015-05-27 21:06:12 -05:00
Jinwoo Song
557bb11bde Use FT_Done_Library instead of FT_Done_Freetype
It is recommended to use FT_Done_Library with FT_New_Library
from freetype document.

Fixes #6191.
2015-05-28 10:17:06 +09:00
bors-servo
b1a773a15b Auto merge of #6196 - mbrubeck:metadata, r=SimonSapin
#6088. r? @SimonSapin

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6196)
<!-- Reviewable:end -->
2015-05-27 14:57:41 -05:00
Mike Blumenkrantz
8c278d30a6 fix glutin headless compile errors 2015-05-27 14:45:59 -04:00
Mike Blumenkrantz
ca1f49aaa3 spawn a task for cef async browser creation to kick the main loop awake
without this, the initial url loading message will never be sent to the
constellation, preventing the engine from ever doing anything
2015-05-27 14:45:59 -04:00
Mike Blumenkrantz
81eb426b04 when creating a cef browser, setup the url to load but don't load it
cef apps will expect to enter their main loops before this happens due to
various callbacks being hit, so it's necessary to punt this loading off until
a later time
2015-05-27 14:45:58 -04:00
Mike Blumenkrantz
b1ae5e7523 make Opts.url an Option<> type, only emit initial url load if url exists
this is a necessary change for embedded apps to prevent an initial about:blank
page load from overwriting whatever the app was actually trying to load
2015-05-27 14:45:57 -04:00
Mike Blumenkrantz
45116dca71 break out cef app wakeup code into separate pub function 2015-05-27 14:45:55 -04:00
Mike Blumenkrantz
aef3218169 Revert "temp re-set default url for cef while I figure out wtf is going on"
This reverts commit 8330eabac1.
2015-05-27 14:45:54 -04:00
Mike Blumenkrantz
90169e8f3b force resize after sending cef_browser::on_after_created() callback
this fixes rendering of the first frame to be at the size of the browser
instead of the size of the initial window_info
2015-05-27 14:45:53 -04:00
Mike Blumenkrantz
14a6390f03 add embedding method for load_handler::on_load_error
still needs error text messages I guess
2015-05-27 14:45:52 -04:00
Mike Blumenkrantz
8e78febaac make cef_errorcode_t a typedef for net::NetError 2015-05-27 14:45:51 -04:00