Glenn Watson
4f28c93f40
Restore exit after load command line flag.
...
Also updates glutin with a crash fix that was exposed by this patch.
2015-07-20 11:19:13 +10:00
bors-servo
93a0c29ad4
Auto merge of #6392 - jgraham:webdriver_get_url_refresh, r=jdm
...
Implement support for Get URL and Refresh in WebDriver server.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6392 )
<!-- Reviewable:end -->
2015-07-19 15:03:36 -06:00
James Graham
f44470ef52
Ensure we get the post-redirect url
2015-07-19 20:40:55 +01:00
James Graham
2a701cc339
Fixup rebase issues
2015-07-19 20:40:12 +01:00
Till Schneidereit
317d2ac547
Add display: none test
2015-07-19 18:59:54 +02:00
Till Schneidereit
162ecd0aac
Implement client{Top, Left, Height, Width} element properties
2015-07-19 15:04:50 +02:00
James Graham
512ba50315
Add some more WebDriver capabilities from the spec.
2015-07-19 13:01:09 +01:00
James Graham
f28219b8cb
Implement WebDriver Refresh command
2015-07-19 13:01:08 +01:00
James Graham
9eade19897
Add support for the Get URL WebDriver command.
2015-07-19 12:55:06 +01:00
bors-servo
2f4bdc6ad6
Auto merge of #6593 - pcwalton:constellation-ipc, r=jdm
...
compositing: Make the constellation messages serializable.
Same idea as before. This depends on:
* https://github.com/servo/euclid/pull/94
* https://github.com/hyperium/hyper/pull/603
r? @jdm
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6593 )
<!-- Reviewable:end -->
2015-07-18 07:43:24 -06:00
Patrick Walton
b6485a9eaf
compositing: Make the constellation messages serializable.
2015-07-18 12:43:08 -07:00
bors-servo
a0cf597946
Auto merge of #6625 - dzbarsky:range-clonecontents, r=Ms2ger
...
Implement Range#cloneContents
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6625 )
<!-- Reviewable:end -->
2015-07-18 02:42:29 -06:00
bors-servo
e6538c0f2d
Auto merge of #6650 - Ms2ger:layout-cleanup, r=jdm
...
Various layout cleanup.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6650 )
<!-- Reviewable:end -->
2015-07-17 09:17:41 -06:00
bors-servo
a24783df4b
Auto merge of #6655 - servo:rustdoc-private, r=Manishearth
...
Include private items in `./mach doc` and http://doc.servo.org/
See https://github.com/rust-lang/rust/issues/15347
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6655 )
<!-- Reviewable:end -->
2015-07-17 08:40:27 -06:00
Simon Sapin
c85bfe1350
Include private items in ./mach doc
and http://doc.servo.org/
...
See https://github.com/rust-lang/rust/issues/15347
2015-07-17 22:31:57 +02:00
Ms2ger
5d36fbca29
Reduce the amount of code in the unsafe block in ParallelPostorderFlowTraversal::run_parallel.
2015-07-17 14:52:00 +02:00
Ms2ger
46b36242a3
Use Ref::map to make ThreadSafeLayoutNode::style safe.
2015-07-17 14:51:58 +02:00
Ms2ger
bb444df679
Remove unused ThreadSafeLayoutNode::traverse_postorder_mut.
2015-07-17 13:26:23 +02:00
Ms2ger
c018863201
Stop using Option in ThreadSafeLayoutNodeChildrenIterator::parent_node.
2015-07-17 11:41:57 +02:00
Ms2ger
4b08cea663
Scope the allowed unsafe code in traversal.rs.
2015-07-17 11:41:06 +02:00
Ms2ger
3e2c44114c
Move the traversal traits into the traversal module.
2015-07-17 11:40:40 +02:00
David Zbarsky
207648f14d
Implement Range#cloneContents
2015-07-17 02:48:39 -04:00
Martin Robinson
5d93f9d5fa
Report layer tree memory usage
...
rust-layers can now deliver the memory usage of a layer tree, so include
that in the reports.
2015-07-16 16:24:59 -07:00
Martin Robinson
900337e3d1
Add memory profiling for the compositor task
...
Currently only the BufferMap is recorded, but a later change will also
measure the memory usage of the compositor tree.
2015-07-16 16:08:34 -07:00
bors-servo
acf47a02cf
Auto merge of #6568 - dzbarsky:delete_range, r=jdm
...
Implement Range#insertNode
Gecko doesn't really follow the spec but it seems to throw a HierarchyRequest error when parent is null.
Any ideas who I should talk to about fixing the spec to account for the null checks?
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6568 )
<!-- Reviewable:end -->
2015-07-16 10:56:17 -06:00
David Zbarsky
c2664e52dd
Implement Range#insertNode
2015-07-16 17:43:46 -04:00
bors-servo
9534e8143f
Auto merge of #6641 - michaelwu:direct-output, r=Ms2ger
...
Directly append children to output node in parse_html_fragment
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6641 )
<!-- Reviewable:end -->
2015-07-16 07:21:06 -06:00
bors-servo
2ef1fd342e
Auto merge of #6632 - Ms2ger:unused-mut, r=jdm
...
Initialize info directly in get_system_heap_allocated.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6632 )
<!-- Reviewable:end -->
2015-07-16 06:42:37 -06:00
bors-servo
7e91577d0a
Auto merge of #6647 - Ms2ger:ws-send-closing-closed, r=jdm
...
Don't try to send a message in WebSocket#close if the sender isn't present.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6647 )
<!-- Reviewable:end -->
2015-07-16 02:27:13 -06:00
Ms2ger
b467f3e9d6
Don't try to send a message in WebSocket#close if the sender isn't present.
2015-07-16 14:29:04 +02:00
Ms2ger
072fdf695b
Handle Send correctly if readyState is not Open.
2015-07-16 12:43:10 +02:00
Ms2ger
cd741e681d
Remove WebSocket::sendCloseFrame.
...
It is a field that is used a function argument. Given that the control flow
is not quite the same, and we can't add an argument to Send, I opted for a
separate function.
2015-07-16 12:43:08 +02:00
bors-servo
2b0bdbe1c1
Auto merge of #6572 - nnethercote:js-reporting, r=jdm
...
Wire up the JS engine's memory reporting.
SpiderMonkey provides an extremely fine-grained breakdown of memory
usage, but for Servo we aggregate the measurements into a small number
of coarse buckets, which seems appropriate for the current level of
detail provided by Servo's memory profiler. Sample output:
```
| 17.41 MiB -- url(file:///home/njn/moz/servo/../servo-static-suite/wikipedia/Guardians%20of%20the%20Galaxy%20(film)%20-%20Wikipedia,%20the%20free%20encyclopedia.html)
| 7.32 MiB -- js
| 3.07 MiB -- malloc-heap
| 3.00 MiB -- gc-heap
| 2.48 MiB -- used
| 0.34 MiB -- decommitted
| 0.09 MiB -- unused
| 0.09 MiB -- admin
| 1.25 MiB -- non-heap
```
Most of the changes are plumbing to get the script task communicating
with the memory profiler task.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6572 )
<!-- Reviewable:end -->
2015-07-15 17:37:30 -06:00
Nicholas Nethercote
7429b90e02
Wire up the JS engine's memory reporting.
...
SpiderMonkey provides an extremely fine-grained breakdown of memory
usage, but for Servo we aggregate the measurements into a small number
of coarse buckets, which seems appropriate for the current level of
detail provided by Servo's memory profiler. Sample output:
```
| 10.99 MiB -- pages
| 7.75 MiB -- url(http://html5demos.com/worker )
| 4.63 MiB -- js
| 2.00 MiB -- gc-heap
| 0.94 MiB -- decommitted
| 0.92 MiB -- used
| 0.09 MiB -- unused
| 0.05 MiB -- admin
| 1.44 MiB -- malloc-heap
| 1.19 MiB -- non-heap
| [...]
| 3.24 MiB -- url(http://html5demos.com/js/worker-cruncher.js )
| 3.24 MiB -- js
| 1.17 MiB -- malloc-heap
| 1.06 MiB -- non-heap
| 1.00 MiB -- gc-heap
| 0.69 MiB -- used
| 0.19 MiB -- decommitted
| 0.09 MiB -- unused
| 0.03 MiB -- admin
```
Most of the changes are plumbing to get the script and worker tasks
communicating with the memory profiler task.
2015-07-15 21:58:20 -07:00
bors-servo
10f3a89313
Auto merge of #6637 - notriddle:master, r=jdm
...
Don't crash when Firefox doesn't send autoMargins.
Firefox Developer Tools doesn't always send autoMargins, as seen in this message:
{"type":"getLayout","node":"node14","to":"pageStyle9"}
So don't use unwrap.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6637 )
<!-- Reviewable:end -->
2015-07-15 15:36:25 -06:00
Michael Wu
2752d3398e
Directly append children to output node in parse_html_fragment
2015-07-15 17:09:26 -04:00
bors-servo
ef9715203e
Auto merge of #6583 - pcwalton:serializable-display-list, r=metajack
...
gfx: Make display lists serializable using `serde`.
This commit introduces the `serde` dependency, which we will use to
serialize messages going between processes in multiprocess Servo.
This also adds a new debugging flag, `-Z print-display-list-json`,
allowing the output of display list serialization to be visualized.
This will be useful for our experiments with alternate rasterizers.
r? @metajack
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6583 )
<!-- Reviewable:end -->
2015-07-15 14:04:55 -06:00
Patrick Walton
6eacb0c995
gfx: Make display lists serializable using serde
.
...
This commit introduces the `serde` dependency, which we will use to
serialize messages going between processes in multiprocess Servo.
This also adds a new debugging flag, `-Z print-display-list-json`,
allowing the output of display list serialization to be visualized.
This will be useful for our experiments with alternate rasterizers.
2015-07-15 19:04:17 -07:00
Michael Howell
602c8bb415
Don't crash when Firefox doesn't send autoMargins.
2015-07-15 12:30:33 -07:00
bors-servo
b6b95085fb
Auto merge of #6628 - michaelwu:slim-domrectlist, r=jdm
...
Remove window field from domrectlist
Nothing uses this field AFAICT.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6628 )
<!-- Reviewable:end -->
2015-07-15 04:56:24 -06:00
Ms2ger
ba71eb21b0
Initialize info directly in get_system_heap_allocated.
2015-07-15 10:08:45 +02:00
bors-servo
8fa6e0abdc
Auto merge of #6634 - Ms2ger:ws-parse, r=metajack
...
Remove parse_web_socket_url in favour of functions in rust-websocket.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6634 )
<!-- Reviewable:end -->
2015-07-14 23:37:57 -06:00
Ms2ger
6a61a5dcf5
Remove parse_web_socket_url in favour of functions in rust-websocket.
2015-07-15 11:26:49 +02:00
Michael Wu
c90be8e1dc
Remove window field from domrectlist
2015-07-14 21:27:04 -04:00
bors-servo
da5f1abaa7
Auto merge of #6630 - mt2d2:remove_unused_mut, r=metajack
...
Remove unused mut.
rustc complains about unneeded mut; remove this instance.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6630 )
<!-- Reviewable:end -->
2015-07-14 17:37:43 -06:00
Michael Tremel
ff915ae86e
Remove unused mut.
2015-07-14 22:16:44 -07:00
bors-servo
9af229b830
Auto merge of #6591 - servo:rustup_2015-07-10, r=larsbergstrom
...
Upgrade to rustc 1.3.0-dev (fddfd089b 2015-07-10)
Depends on https://github.com/jgraham/webdriver-rust/pull/12 .
Fixes #6020 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6591 )
<!-- Reviewable:end -->
2015-07-14 13:40:22 -06:00
Martin Robinson
efdf2cd601
Update to latest rust-layers, azure, and skia
...
GLRasterizationContext is now responsible for doing GPU rasterization.
It can coexist with its target NativeSurface, so we don't have to
continually recreate NativeSurfaces when doing GPU rasterization.
2015-07-14 17:48:50 -07:00
Lars Bergstrom
96d8fee731
Remove double linking of static libs from task_info and azure
2015-07-15 00:51:48 +02:00
Simon Sapin
83d2a11d86
Upgrade to rustc 1.3.0-dev (fddfd089b 2015-07-10)
2015-07-15 00:46:43 +02:00