Commit graph

5916 commits

Author SHA1 Message Date
Tetsuharu OHZEKI
7267163f49 Fix warnings: use clone_from_slice instead of copy_memory 2015-12-11 10:20:24 -05:00
Tetsuharu OHZEKI
bccb46c70a Fix warning: needless 'iter_cmp' flags 2015-12-11 10:03:45 -05:00
Tetsuharu OHZEKI
7df8dc6177 Fix warning: unused_imports in constellation_msg.rs. 2015-12-11 09:58:43 -05:00
Ms2ger
14acf1616e Avoid some rooting in parsing. 2015-12-11 09:40:17 -05:00
bors-servo
4e73a30b00 Auto merge of #8898 - vwvww:compositor_msg_refactor, r=Ms2ger
Moved CompositorMsg enum into compositing crate.

moved CompositorMsg enum into compositing crate.
moved from components/msg/constellation_msg.rs
            to components/compositing/lib.rs
fixes #8832

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8898)
<!-- Reviewable:end -->
2015-12-11 12:02:52 +05:30
bors-servo
e71ec40462 Auto merge of #8918 - Ms2ger:trace, r=nox
Initialize the slots of global objects before a possible GC.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8918)
<!-- Reviewable:end -->
2015-12-11 11:21:55 +05:30
Corey Farwell
4accaf50b2 Pass around event types as Atoms instead of Strings
`Event` internally stores the `type` as an `Atom`, and we're `String`s
everywhere, which can cause unnecessary allocations to occur since
they'll end up as `Atom`s anyways.
2015-12-10 23:47:25 -05:00
Beomjin Kim
729812f383 Moved CompositorMsg enum into compositing crate.
moved from components/msg/constellation_msg.rs
      to components/compositing/lib.rs

dependencies on compositing crate added in ports/cef/Cargo.lock
2015-12-11 13:42:14 +09:00
bors-servo
99b9901ca2 Auto merge of #8923 - saneyuki:warning2, r=nox
Fix warning: Use iterator.min_by_key instead of iterator.min_by

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8923)
<!-- Reviewable:end -->
2015-12-11 09:08:14 +05:30
bors-servo
0abddae49d Auto merge of #8926 - frewsxcv:no-map, r=SimonSapin
Prefer 'if let' over 'map() with side effects'

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8926)
<!-- Reviewable:end -->
2015-12-11 06:53:36 +05:30
Corey Farwell
6952d256d4 Prefer 'if let' over 'map() with side effects' 2015-12-10 19:23:07 -05:00
bors-servo
d01233a7b4 Auto merge of #8922 - saneyuki:warning, r=mbrubeck
Fix warnings: Use Vec.extend_from_slice instead of Vec.push_all

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8922)
<!-- Reviewable:end -->
2015-12-11 04:57:58 +05:30
Tetsuharu OHZEKI
e8c12c1c6d Fix warnings: Use Vec.extend_from_slice instead of Vec.push_all 2015-12-10 16:49:29 -05:00
Tetsuharu OHZEKI
eff54f304e Fix warning: Use iterator.min_by_key instead of iterator.min_by 2015-12-10 16:31:02 -05:00
Roman Klauke
f1efe9a043 remove the "core" feature from canvas
The core feature is marked as stable. This commit removes the usage
of this feature.
2015-12-10 20:21:10 +01:00
Ms2ger
b353d70f44 Initialize the slots of global objects before a possible GC. 2015-12-10 12:08:42 -05:00
Alex Gaynor
d57ac454d5 Removed use of a #![feature] that is now stable 2015-12-10 07:16:53 -05:00
bors-servo
100595190b Auto merge of #8911 - alex:patch-1, r=frewsxcv
Remove two "#![feature]" that are now stable

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8911)
<!-- Reviewable:end -->
2015-12-10 12:12:07 +05:30
bors-servo
7438bc0425 Auto merge of #8909 - cnaj:msg_refactoring, r=jdm
Move ScriptMsg to script_traits crate, Fixes #8833

Review of documentation that was missing needed.

Fixes #8833.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8909)
<!-- Reviewable:end -->
2015-12-10 11:24:44 +05:30
bors-servo
bd8af8e234 Auto merge of #8828 - Ronak6892:docResp, r=eefriedman
M1503/M1504 : Support for missing XMLHttpRequestAPIs and Document response handling

Hi,
This is for NCSU Fall 15 project M1503 and M1504:
M1503: Integrate XML Parser (Step 3 of 4): Support for Document response handling and calling the appropriate parser.
M1504: Support for missing XMLHttpRequest APIs
https://github.com/servo/servo/wiki/Integrate-xml5ever
It includes changes to handle document response for XMLHttpRequest.
Kindly review.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8828)
<!-- Reviewable:end -->
2015-12-10 09:00:19 +05:30
Alex Gaynor
fa694f5f4b Remove two "#![feature]" that are now stable 2015-12-09 19:25:04 -05:00
Jitendra Jain
88e6504e0a Implement responseXML API and document response type for XHR 2015-12-09 17:48:04 -05:00
Corey Farwell
c7e62689e5 Upgrade dependency: shared_library
8c6d2433f0...391e74ae02
2015-12-09 17:08:00 -05:00
Corey Farwell
0919f81a7a Upgrade dependency: malloc_buf
bab724c8ad...a7811e5f4c
2015-12-09 17:07:59 -05:00
Corey Farwell
389d5b4eed Upgrade dependency: gaol
71865ff8...e1349d8d
2015-12-09 17:05:26 -05:00
Corey Farwell
0316f0bb2b Upgrade dependency: ipc-channel
8306cdf0...6900611d
2015-12-09 16:38:13 -05:00
Tomas Cernaj
5507be2653 Move ScriptMsg from msg crate into script_traits 2015-12-09 20:50:11 +01:00
bors-servo
ec5ef5020d Auto merge of #8901 - vwvww:servo_lib_doc_comment, r=Wafflespeanut
Changes on comments in servo/lib.rs

1. converted the first comments in servo/lib.rs into doc comments.
2. moved doc comment of impl Browser to pub struct Browser.
resolves #8872

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8901)
<!-- Reviewable:end -->
2015-12-10 01:08:20 +05:30
Keith Yeung
2ee446de5d Fix build errors after rebasing and address review comments 2015-12-09 10:56:21 -08:00
Ms2ger
cfa18bc2e6 Update rustc to the 2015-12-09 nightly. 2015-12-09 13:53:06 -05:00
Arnaud Marant
8cdafe8ffc remove Option because it is never used as None 2015-12-09 02:10:40 -08:00
Arnaud Marant
239f1ae1a7 fix for Layout memory reporter uses pre-redirect url #6872 2015-12-09 01:58:11 -08:00
Beomjin Kim
4d3a6de029 Modified doc command into module-level doc comment. 2015-12-09 16:23:52 +09:00
Beomjin Kim
a2d0e251a0 Removed space between doc comment and the actual code of pub struct Browser 2015-12-09 16:17:50 +09:00
Beomjin Kim
fd7c895094 1. converted the first comments in servo/lib.rs into doc comments.
2. moved doc comment of impl Browser to pub struct Browser.
2015-12-09 16:08:44 +09:00
bors-servo
f4aa5b42ea Auto merge of #8893 - Ms2ger:byteorder, r=frewsxcv
Update bincode.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8893)
<!-- Reviewable:end -->
2015-12-09 01:36:35 +05:30
Ms2ger
07d837bd03 Update bincode. 2015-12-08 14:49:38 -05:00
bors-servo
d01d20d50c Auto merge of #8889 - Ms2ger:energymon, r=metajack
Update energymon crates.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8889)
<!-- Reviewable:end -->
2015-12-09 00:43:18 +05:30
Ms2ger
dee479e3ad Update energymon crates. 2015-12-08 13:07:14 -05:00
bors-servo
5cfba0cb6e Auto merge of #8887 - mbrubeck:glue-up, r=Ms2ger
Upgrade to android_glue 0.1.3

Fixes scrolling on Android (tomaka/android-rs-glue#70). r? @glennw

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8887)
<!-- Reviewable:end -->
2015-12-08 22:03:32 +05:30
Matt Brubeck
6560a8ad9e Upgrade to android_glue 0.1.3 2015-12-08 07:13:35 -08:00
bors-servo
951ab565d1 Auto merge of #8867 - nfallen:6638-websocket_loader, r=jdm
Move websocket creation to resource task

This is a pull request for part of https://github.com/servo/servo/issues/6638

It includes the following changes:
-The websocket networking code (ie. making a connection, receiving data, and sending data) has been extracted out of components/script/dom/websocket.rs and into the new file components/net/websocket_loader.rs.
-websocket.rs now communicates with the resource task (components/net/resource_task.rs) to instruct it to initiate a new websocket connection
- websocket_loader.rs now provides an API sent over an IPCChannel that allows websocket.rs to receive feedback about this process and to subsequently send and receive data

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8867)
<!-- Reviewable:end -->
2015-12-08 20:40:50 +05:30
bors-servo
fdef1db395 Auto merge of #8885 - Ms2ger:update-js, r=jdm
Update mozjs.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8885)
<!-- Reviewable:end -->
2015-12-08 13:49:51 +05:30
Nova Fallen
e8c8277f34 move websocket creation to resource task 2015-12-08 02:04:40 -05:00
bors-servo
59029325c0 Auto merge of #8827 - jdm:debugmozjscrash, r=Ms2ger
Avoid a null-dereference using debug mozjs builds. This matches the e…

…quivalent code upstream in Gecko.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8827)
<!-- Reviewable:end -->
2015-12-08 12:11:53 +05:30
Ms2ger
f724493738 Update mozjs and gcc. 2015-12-07 23:59:01 -05:00
Paul Rouget
2a86f9d165 Browser API: implement iframe.reload() 2015-12-08 04:40:16 +01:00
bors-servo
9cccd34bc4 Auto merge of #8876 - ecoal95:webgl-nits, r=jdm
WebGL nits

This improves support for running our triangle test (see: https://github.com/servo/servo/pull/8831), and adds missing error in `BufferSubData`

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8876)
<!-- Reviewable:end -->
2015-12-08 03:56:52 +05:30
Josh Matthews
30d1ff6abc Avoid a null-dereference using debug mozjs builds. This matches the equivalent code upstream in Gecko. 2015-12-07 14:58:00 -05:00
bors-servo
02f4be9c9f Auto merge of #8862 - fstr:move_workerid, r=Ms2ger
Moved WorkerId type to devtools_traits

Fixes #8846.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8862)
<!-- Reviewable:end -->
2015-12-08 00:53:40 +05:30