Commit graph

10779 commits

Author SHA1 Message Date
bors-servo
2ce7b78907 Auto merge of #6197 - jgraham:css_expected_update, r=larsbergstrom
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6197)
<!-- Reviewable:end -->
2015-05-27 17:59:58 -05:00
James Graham
1f25a2972a Update CSS tests expected data to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab 2015-05-27 22:42:17 +01: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
bors-servo
94ebfe81e4 Auto merge of #6175 - zmike:embedding-REVENGE_OF_CARGO, r=larsbergstrom
Adds a bunch more embedding interfaces/callbacks/functionality

@larsbergstrom

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6175)
<!-- Reviewable:end -->
2015-05-27 14:17:32 -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
fcf449517d handle case of deleted pipeline when preparing to send load_end constellation msg 2015-05-27 14:45:56 -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
64ff2c4a54 handle early LoadURL messages without panicking by sending initial url load
fixes #6126
2015-05-27 14:45:54 -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
92d44fb36e send ChangeUrl message from constellation on init 2015-05-27 14:45:41 -04:00
Mike Blumenkrantz
cf388cd909 call compositor.window.set_page_url() on WindowEvent::LoadUrl 2015-05-27 14:45:41 -04:00
Mike Blumenkrantz
caa8172560 implement cef browser title setting callback 2015-05-27 14:45:40 -04:00
Mike Blumenkrantz
af1dce5a2e add new browser process interface method for main loop integration
regular CEF requires the user to either run the cef main loop or
poll on a function to drain events. now the engine will trigger a callback
in some application thread which will notify it that there is work
to be done by the browser
2015-05-27 14:45:39 -04:00
Mike Blumenkrantz
83e605d2fb add no_mangle to servo_test() embedding function 2015-05-27 14:45:38 -04:00
Mike Blumenkrantz
d7ad5d6ea2 add cef method for notifying the main loop of work available 2015-05-27 14:45:37 -04:00
Matt Brubeck
0fd9953802 Update azure and its dependencies
Part of #6088
2015-05-27 11:22:45 -07:00
bors-servo
d87af8ac52 Auto merge of #6192 - nox:cleanup-urlsearchparams, r=Manishearth
It now uses rust-url for its serializer.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6192)
<!-- Reviewable:end -->
2015-05-27 05:21:05 -05:00
Anthony Ramine
6802bafc39 Cleanup URLSearchParams
It now uses rust-url for its serializer.
2015-05-27 12:19:16 +02:00
Jinwoo Song
cb2bdf1977 Implement nextNode(), previousNode() and detach() in NodeIterator
First patch to resolve #1235. We need more implementation for handling node removals,
and I'll implement in next patch.
2015-05-27 16:37:30 +09:00
Jinwoo Song
4e8005cd5b Implement Document.createNodeIterator and rebase patch 2015-05-27 16:37:30 +09:00
Jinwoo Song
0e4c792dc5 Implement more NodeIterator attribute and methods
Just implement the skelectons
 - referenceNode attribute
 - nextNode() and previousNode()
2015-05-27 16:37:30 +09:00
Jinwoo Song
2701c264ab Implement NodeIterator's attributes
- root, whatToShow, and filter
2015-05-27 16:37:29 +09:00
bors-servo
df2f8d0636 Auto merge of #6187 - tamird:cleanup-validate-and-extract, r=mbrubeck
Also `debug_assert!`s that `splitn` was called with the
correct `count` argument.

Adaptation of #5778.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6187)
<!-- Reviewable:end -->
2015-05-26 16:29:42 -05:00
bors-servo
54afa01dd6 Auto merge of #6186 - SimonSapin:harfbuzz-crates.io, r=Manishearth
https://github.com/servo/rust-harfbuzz/issues/39
https://www.mail-archive.com/dev-servo@lists.mozilla.org/msg01289.html

r? @Manishearth

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6186)
<!-- Reviewable:end -->
2015-05-26 15:16:40 -05:00
bors-servo
e604b663f4 Auto merge of #6028 - pcwalton:reflow-timer, r=jdm
It would be nice if HTML parsing didn't have to hog the event loop, so I didn't have to do this polling in `content_changed()`, but maybe the way we do it is unavoidable.

r? @jdm

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6028)
<!-- Reviewable:end -->
2015-05-26 13:18:26 -05:00
Patrick Walton
05bf2ffd02 script: Address review comments 2015-05-26 11:03:47 -07:00
Patrick Walton
9e34e82aec script: Reflow 200 milliseconds after the <body> is parsed, like Gecko
does.
2015-05-26 10:38:47 -07:00
Tamir Duberstein
a3d463093e Avoid extra O(n) scan in validate_and_extract
Also `debug_assert!`s that `splitn` was called with the
correct `count` argument.
2015-05-26 13:26:26 -04:00
bors-servo
8759d42559 Auto merge of #6168 - tamird:get-cached-messages, r=jdm
Rebase of #4175, closes #4175. r? @jdm

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6168)
<!-- Reviewable:end -->
2015-05-26 10:34:03 -05:00
Tamir Duberstein
b5f74eb54c Implemented GetCachedMessages 2015-05-26 10:04:31 -04:00
Peter
7239d67353 fixes #5963 2015-05-26 10:01:03 -04:00
bors-servo
7d0409b842 Auto merge of #6140 - nox:cleanup-rootedvec, r=Manishearth
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6140)
<!-- Reviewable:end -->
2015-05-26 08:36:29 -05:00
Anthony Ramine
178f696df3 Optimise use of RootedVec in ScriptTask::handle_event() 2015-05-26 15:35:19 +02:00
Anthony Ramine
22931145ab Remove use of RootedVec in DOMRectList 2015-05-26 15:35:17 +02:00