Commit graph

11773 commits

Author SHA1 Message Date
bors-servo
64751b8eef Auto merge of #6596 - pcwalton:layout-control-ipc, r=jdm
compositing: Make `ScriptListener` and `LayoutControlChan` messages go over IPC.

r? @jdm

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6596)
<!-- Reviewable:end -->
2015-07-14 08:46:07 -06:00
Patrick Walton
9ce65c08a5 layout: Make the LayoutControlChan use IPC. 2015-07-14 13:45:52 -07:00
Patrick Walton
e841065351 compositing: Move messages that go over the ScriptListener to go over
an IPC channel instead.

Because this used a boxed trait object to invoke messages across a
process boundary, and boxed trait objects are not supported across IPC,
we spawn a helper thread inside the compositor to perform the marshaling
for us.
2015-07-14 12:12:19 -07:00
bors-servo
7de4ba0f82 Auto merge of #6624 - dzbarsky:23338, r=jdm
Remove some more unnecessary let bindings



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6624)
<!-- Reviewable:end -->
2015-07-14 07:21:10 -06:00
David Zbarsky
bc1eb97671 Remove some more unnecessary let bindings 2015-07-14 14:48:16 -04:00
bors-servo
2947d78e4e Auto merge of #6584 - Ms2ger:wpt_20150709, r=jdm
Update web-platform-tests to revision 5e3ea8f49fee68c327388bfd1dd1375a8ce12a0e.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6584)
<!-- Reviewable:end -->
2015-07-14 05:33:35 -06:00
bors-servo
a2903091e4 Auto merge of #6622 - Ms2ger:send-invalid-state, r=metajack
Throw an InvalidStateError from WebSocket#send when it is called too early.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6622)
<!-- Reviewable:end -->
2015-07-14 03:34:47 -06:00
Ms2ger
48b94ec02b Throw an InvalidStateError from WebSocket#send when it is called too early. 2015-07-14 17:27:10 +02:00
bors-servo
556c0e1509 Auto merge of #6621 - Ms2ger:repeat, r=SimonSapin
Move away from the repeat().take().collect() pattern.

This was the preferred pattern between the deprecation of Vec::from_elem and
the addition of the count argument to the vec![] macro.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6621)
<!-- Reviewable:end -->
2015-07-14 02:42:26 -06:00
Ms2ger
ce4d442941 Move away from the repeat().take().collect() pattern.
This was the preferred pattern between the deprecation of Vec::from_elem and
the addition of the count argument to the vec![] macro.
2015-07-14 16:19:30 +02:00
Ms2ger
bfb96b9448 Update web-platform-tests to revision 5e3ea8f49fee68c327388bfd1dd1375a8ce12a0e. 2015-07-14 10:38:54 +02:00
bors-servo
d91a6f3834 Auto merge of #6620 - Ms2ger:ws-crash, r=jdm
Stop panicking while establishing a WebSocket connection.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6620)
<!-- Reviewable:end -->
2015-07-14 02:06:17 -06:00
Ms2ger
86e94786ae Stop panicking while establishing a WebSocket connection. 2015-07-14 16:01:59 +02:00
bors-servo
6a728712f9 Auto merge of #6617 - frewsxcv:fixme-ufcs, r=metajack
Complete FIXMEs related to UFCS



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6617)
<!-- Reviewable:end -->
2015-07-14 01:30:12 -06:00
bors-servo
0fb9f22ff7 Auto merge of #6611 - jdm:websocketorigin, r=jdm
Add Origin header to WebSocket connections.

Closes #6532.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6611)
<!-- Reviewable:end -->
2015-07-13 23:39:16 -06:00
bors-servo
c70d53c9fe Auto merge of #6588 - Ms2ger:has_children, r=pcwalton
Remove unused has_children method.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6588)
<!-- Reviewable:end -->
2015-07-13 23:01:54 -06:00
bors-servo
91ce002241 Auto merge of #6554 - dzbarsky:master, r=Ms2ger
Test namespace prefix for element equality



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6554)
<!-- Reviewable:end -->
2015-07-13 22:24:22 -06:00
bors-servo
db90d484ed Auto merge of #6614 - servo:replace-surrogates, r=Ms2ger
Add a `-Z replace-surrogates` command-line option.

See #6564.

r? @Ms2ger

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6614)
<!-- Reviewable:end -->
2015-07-13 21:49:04 -06:00
bors-servo
03232aca3e Auto merge of #6619 - servo:css, r=SimonSapin
Update the test-css expectations for the OSX update.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6619)
<!-- Reviewable:end -->
2015-07-13 21:11:46 -06:00
Ms2ger
365937160d Update the test-css expectations for the OSX update. 2015-07-14 11:08:36 +02:00
Corey Farwell
78d2fe6e9b Complete FIXMEs related to UFCS 2015-07-14 09:24:53 +09:00
Simon Sapin
a5b6cb6b43 Unpaired surrogates: Document the -Z flag in the panic message. 2015-07-13 20:58:21 +02:00
Simon Sapin
e4dc608c0a Use error! instead of warn! to get console output by default. 2015-07-13 20:52:21 +02:00
Simon Sapin
90dbd86ed7 Add a -Z replace-surrogates command-line option.
See #6564.
2015-07-13 20:41:57 +02:00
Josh Matthews
15102d9c53 Update web-platform-tests expected data 2015-07-13 12:23:54 -04:00
Bogdan Cuza
35d5328271 Fix #6379 2015-07-13 12:03:19 -04:00
bors-servo
12195a5c4a Auto merge of #6610 - Ms2ger:task-readystate, r=jdm
Replace WebSocketTask::Open by ConnectionEstablished.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6610)
<!-- Reviewable:end -->
2015-07-13 02:47:16 -06:00
Ms2ger
f93f49490f Replace WebSocketTask::Open by ConnectionEstablished. 2015-07-13 16:03:02 +02:00
Ms2ger
17bd7e5ec3 Remove some dead code from WebSockets. 2015-07-13 16:02:55 +02:00
bors-servo
c2dbc4587f Auto merge of #6609 - Ms2ger:ws-url, r=jdm
Return the parsed URL from WebSocket#url.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6609)
<!-- Reviewable:end -->
2015-07-13 00:24:35 -06:00
Ms2ger
4c0c60a4d6 Return the parsed URL from WebSocket#url. 2015-07-13 14:21:18 +02:00
bors-servo
c3fc943c66 Auto merge of #6606 - glennw:font-atoms, r=pcwalton
Use atoms for font template structures.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6606)
<!-- Reviewable:end -->
2015-07-12 10:29:33 -06:00
Glenn Watson
f8eeef0eb4 Use atoms for font template structures. 2015-07-13 08:23:02 +10:00
bors-servo
d7cf58d6f1 Auto merge of #6605 - Ms2ger:solve_constraints_parallel, r=SimonSapin
Pass the WorkQueue to LayoutTask::solve_constraints_parallel.

This removes the possibility of a panic by checking a constraint at compile
time rather than at run time.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6605)
<!-- Reviewable:end -->
2015-07-12 02:44:04 -06:00
Ms2ger
17888045bd Pass the WorkQueue to LayoutTask::solve_constraints_parallel.
This removes the possibility of a panic by checking a constraint at compile
time rather than at run time.
2015-07-12 14:14:15 +02:00
bors-servo
9e02ef9347 Auto merge of #6604 - Ms2ger:idmap-debug, r=jdm
Add debug logging to register_named_element and unregister_named_element.

I found them helpful; I imagine others might as well.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6604)
<!-- Reviewable:end -->
2015-07-11 14:27:49 -06:00
Ms2ger
da3c654f69 Add debug logging to register_named_element and unregister_named_element.
I found them helpful; I imagine others might as well.
2015-07-11 22:02:44 +02:00
bors-servo
3d4122e7c1 Auto merge of #6603 - wjh:remove-url-from-page-6589, r=jdm
Remove url field from Page

Resolves issue [#6589](https://github.com/servo/servo/issues/6589).

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6603)
<!-- Reviewable:end -->
2015-07-11 04:47:06 -06:00
Will Huxtable
58a31b07b4 Remove url field from Page 2015-07-11 17:06:12 +01:00
bors-servo
bd3380e0b6 Auto merge of #6600 - Ms2ger:top, r=Manishearth
Implement Window#top.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6600)
<!-- Reviewable:end -->
2015-07-11 04:01:33 -06:00
Ms2ger
8b45f9f51c Implement Window#top. 2015-07-11 18:00:59 +02:00
Ms2ger
243446eff3 Revert "Replace surrogates in JS strings with U+FFFD instead of panicking."
This reverts commit 3f07f8e866.
2015-07-11 09:32:32 +02:00
David Zbarsky
0fa8e51432 Test element prefix for element equality 2015-07-11 02:50:39 -04:00
Corey Farwell
10296e77dc Use NotImplementedError for Python base class methods
From the Python docs:

https://docs.python.org/2/library/exceptions.html#exceptions.NotImplementedError

"In user defined base classes, abstract methods should raise this
exception when they require derived classes to override the method."
2015-07-11 07:41:44 +09:00
bors-servo
0f36eeab61 Auto merge of #6595 - servo:replace-surrogates, r=pcwalton
Replace surrogates in JS strings with U+FFFD instead of panicking.

Fix #6519.
See #6564.

r? @pcwalton

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6595)
<!-- Reviewable:end -->
2015-07-10 13:14:38 -06:00
Simon Sapin
3f07f8e866 Replace surrogates in JS strings with U+FFFD instead of panicking.
Fix #6519.
See #6564.
2015-07-11 03:12:46 +02:00
Ms2ger
928f843392 Remove unused has_children method. 2015-07-10 19:34:04 +02:00
bors-servo
52e857dd7b Auto merge of #6561 - dzbarsky:namespace, r=Ms2ger
Implement Node#isDefaultNamespace and Node#lookupNamespaceURI (fixes #1826)



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6561)
<!-- Reviewable:end -->
2015-07-10 06:44:25 -06:00
David Zbarsky
326b2a7161 Test element prefix for element equality 2015-07-10 14:41:37 -04:00
bors-servo
314483a97f Auto merge of #6585 - frewsxcv:rm-unused-codegen-files, r=jdm
Remove unused files in 'script/dom/bindings/'

Similar to https://github.com/servo/servo/pull/6581, but I didn't get
everything in that pull request

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6585)
<!-- Reviewable:end -->
2015-07-09 17:51:30 -06:00