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
Mike Blumenkrantz
68fc51205f
add error enum for chromium net errors, create window method for error propagation
2015-05-27 14:45:50 -04:00
Mike Blumenkrantz
3f8d8a3cc9
add back/forward/loading members to ServoCefBrowser with related browser methods
2015-05-27 14:45:49 -04:00
Mike Blumenkrantz
0d46a3b89a
add navigation state data to LoadComplete messages, finish cef load state cbs
2015-05-27 14:45:48 -04:00
Mike Blumenkrantz
3481c752cd
add CompositorMsg::LoadStart, implement cef_load_handler::on_loading_state_change()
...
only adds the loading:true callback this time...
2015-05-27 14:45:47 -04:00
Mike Blumenkrantz
cd9dab7b5b
implement cef_load_handler::on_load_start()
2015-05-27 14:45:46 -04:00
Mike Blumenkrantz
1e4ceb0a1f
more accurately handle key modifiers in cef
2015-05-27 14:45:46 -04:00
Mike Blumenkrantz
28aed52a4b
improve cef keyboard handling
...
this is a rough approximation of the handling of various keycodes/syms
within chromium. it needs work, but for my system it works okay
2015-05-27 14:45:45 -04:00
Mike Blumenkrantz
efc75ef40e
ignore KEYEVENT_RAWKEYDOWN in cef browser events
...
I'm not sure exactly what this is supposed to do and there are no docs.
from what I've observed, nothing happens on this event
2015-05-27 14:45:44 -04:00
Mike Blumenkrantz
a809d6b911
remove unused cef imports
2015-05-27 14:45:43 -04:00
Mike Blumenkrantz
02606fada4
implement on_address_change handler for cef port
2015-05-27 14:45:42 -04:00
Mike Blumenkrantz
caa8172560
implement cef browser title setting callback
2015-05-27 14:45:40 -04:00