Commit graph

5393 commits

Author SHA1 Message Date
bors-servo
c872764a7c auto merge of #2356 : glennw/servo/warnings, r=jdm 2014-05-07 01:16:22 -04:00
Glenn Watson
b61d2328e2 Fix a few mutability warnings 2014-05-07 14:59:19 +10:00
bors-servo
dc49e7d1a0 auto merge of #2340 : glennw/servo/js-click-assert, r=jdm 2014-05-07 00:46:21 -04:00
bors-servo
38bf7fd098 auto merge of #2336 : bjz/servo/debug_str, r=pcwalton 2014-05-06 23:37:35 -04:00
bors-servo
27bdc580ed auto merge of #2354 : glennw/servo/issue-2332, r=metajack 2014-05-06 21:31:27 -04:00
bors-servo
e6e253b11d auto merge of #2350 : zwarich/servo/unused-str-import, r=metajack 2014-05-06 20:31:31 -04:00
Glenn Watson
51ef2f06ba Rename from_unrooted to from_temporary. Fixes #2332. 2014-05-07 09:25:32 +10:00
bors-servo
22c6060921 auto merge of #2304 : Manishearth/servo/deadcode, r=metajack
The code was added as a debugging method [here](5663ca1eef), it's no longer used
2014-05-06 19:21:22 -04:00
Glenn Watson
87e6921d46 Fix JS roots assertion when clicking on an element 2014-05-07 09:04:02 +10:00
Glenn Watson
db81cf9bc7 Modify node traversal loop to avoid JS roots assertion. Fixes #2321. 2014-05-07 08:46:11 +10:00
Cameron Zwarich
1b481302e1 Remove an unused import of std::str. 2014-05-06 15:15:19 -07:00
bors-servo
0bb838a58b auto merge of #2349 : zwarich/servo/reftest-print-diff, r=larsbergstrom
Having to match the numbered results in /tmp with the failing tests was bothering me, and I figured it would be better to print the path with the failure.
2014-05-06 18:13:35 -04:00
Cameron Zwarich
2191951fd8 Print the location of the image diff when a ref test fails. 2014-05-06 14:30:20 -07:00
bors-servo
c013d2a211 auto merge of #2347 : Ms2ger/servo/vec, r=jdm 2014-05-06 17:19:25 -04:00
Ms2ger
d89c16f057 Use Vec in concurrentmap.rs. 2014-05-06 21:01:32 +02:00
Ms2ger
605e09b449 Use Vec for ResourceTask. 2014-05-06 20:46:54 +02:00
Ms2ger
54499536d9 Return Vec from get_last_resort_font_families. 2014-05-06 20:42:35 +02:00
Ms2ger
b6e2a9aa78 Use Vec for the metadata argument to initialize_layers_for_pipeline. 2014-05-06 20:42:35 +02:00
Ms2ger
b38066a541 Use Vec in transform_text tests. 2014-05-06 20:32:20 +02:00
Ms2ger
2d3ed83ba6 Use Vec in workqueue.rs. 2014-05-06 19:34:51 +02:00
Brendan Zabarauskas
61b7a38295 Use fmt::Show for outputting debug information 2014-05-06 10:01:48 -07:00
bors-servo
03e0f911ec auto merge of #2344 : jdm/servo/iframefail, r=Ms2ger 2014-05-06 12:58:18 -04:00
bors-servo
1879bf95ee auto merge of #2341 : Manishearth/servo/error-parse, r=jdm
Sometimes it's useful to bubble out the error from the URL parsing so the caller can deal with the result as per its needs.

[The XHR `open()`](http://xhr.spec.whatwg.org/#the-open()-method), for example, is one place where the bubbling out of an error is required.

Blocks #2282
2014-05-06 12:25:24 -04:00
Josh Matthews
d0387a399b Force a GC when shutting down each layout task. Fixes #2342. 2014-05-06 11:56:28 -04:00
Simon Sapin
f195df79f3 Make a comment more precise about derived properties. 2014-05-06 16:52:53 +01:00
Manish Goregaokar
470250eb2a Split parse_url to allow for external error handling 2014-05-06 21:22:17 +05:30
bors-servo
8d1b9db5aa auto merge of #2343 : Ms2ger/servo/String-union, r=jdm 2014-05-06 10:25:23 -04:00
bors-servo
d66197ae40 auto merge of #2331 : Ms2ger/servo/global-cx-3, r=jdm
The long-term plan for SpiderMonkey is to eliminate JSContexts by merging
(most of) it into JSRuntime, so to future-proof our code, we should avoid
creating multiple JSContexts for the same JSRuntime.

However, this implies we'll have to use the same JSContext for objects in
different compartments, so we need to enter compartments. This is done by
using the with_compartment function.
2014-05-06 09:58:33 -04:00
Ms2ger
590a8ac824 Add support for DOMString in unions (fixes #2324). 2014-05-06 15:51:17 +02:00
Ms2ger
1fa3610e2d Don't clobber the default wrapping callback. 2014-05-06 12:37:13 +02:00
Ms2ger
8ea3cbf18a Enter a compartment when calling callbacks. 2014-05-06 12:16:03 +02:00
bors-servo
dedaa6a98e auto merge of #2338 : bjz/servo/remove-teardown, r=pcwalton
According to @pcwalton these used to be important for memory safety but are no longer needed now.
2014-05-05 21:34:19 -04:00
bors-servo
b6c7856926 auto merge of #2337 : bjz/servo/smallvec, r=pcwalton
We can't replace the ones in the `style` crate because some functions expect generic `SmallVec`s.

I also did some reorganisation of the `smallvec` macros.

cc @pcwalton
2014-05-05 21:01:24 -04:00
Brendan Zabarauskas
0ed6f92b99 Remove unused teardown methods
According to @pcwalton these used to be important for memory safety but are no longer needed now.
2014-05-05 17:56:56 -07:00
Brendan Zabarauskas
42bf406411 Replace most of the SmallVec0 usages with std::vec::Vec
We can't replace the ones in the `style` crate because some functions expect generic `SmallVec`s.
2014-05-05 16:59:12 -07:00
Ms2ger
3a5fc11bb8 Enter a compartment when calling timeout handlers. 2014-05-05 23:08:04 +02:00
Brendan Zabarauskas
b24cc8072b Simplify smallvec macros
Macros can now expand to multiple items. This takes advantage of that.
2014-05-05 13:17:51 -07:00
bors-servo
b14b2eca37 auto merge of #2325 : Ms2ger/servo/testbinding-default, r=jdm 2014-05-05 15:58:10 -04:00
bors-servo
deacda7d22 auto merge of #2322 : Ms2ger/servo/vec, r=jdm 2014-05-05 15:22:13 -04:00
bors-servo
2da560e9ee auto merge of #2326 : jdm/servo/remove, r=Ms2ger
Fixes #2191.
2014-05-05 14:07:29 -04:00
Harry Maclean
6f310a5c20 Implement ChildNode.remove() 2014-05-05 14:04:25 -04:00
Ms2ger
0016b1839e Use a single JSContext per JSRuntime.
The long-term plan for SpiderMonkey is to eliminate JSContexts by merging
(most of) it into JSRuntime, so to future-proof our code, we should avoid
creating multiple JSContexts for the same JSRuntime.

However, this implies we'll have to use the same JSContext for objects in
different compartments, so we need to enter compartments. This is done by
using the with_compartment function.
2014-05-05 19:41:02 +02:00
bors-servo
325a39b8ba auto merge of #2330 : Ms2ger/servo/update-opengles, r=metajack
This includes changes to move from ~[T] to Vec<T>.
2014-05-05 12:58:22 -04:00
Ms2ger
5011253c07 Update rust-opengles.
This includes changes to move from ~[T] to Vec<T>.
2014-05-05 18:40:04 +02:00
Ms2ger
353d3cf944 Remove OptVector. 2014-05-05 17:10:33 +02:00
Ms2ger
2a75bbef62 Use Vec for Font::new_from_buffer. 2014-05-05 17:10:32 +02:00
Ms2ger
7e2e426212 Use Vec for SendableFrameTree::children. 2014-05-05 17:10:32 +02:00
Ms2ger
c5aa2ef1b5 Use Vec for FrameTreeIterator::stack. 2014-05-05 17:10:32 +02:00
Ms2ger
d51056ab86 Use Vec for SelectorMap fields. 2014-05-05 17:10:32 +02:00
Ms2ger
1695d16384 Use Vec for GlyphStore::entry_buffer. 2014-05-05 17:10:32 +02:00