Commit graph

5067 commits

Author SHA1 Message Date
bors-servo
86a6de209e auto merge of #2346 : gsingh93/servo/master, r=jdm 2014-05-07 18:58:18 -04:00
bors-servo
8e0febb109 auto merge of #2365 : bjz/servo/generic-range, r=pcwalton
Signed integers allow for generic +ve/-ve offsets.

r? @pcwalton
2014-05-07 18:10:22 -04:00
Brendan Zabarauskas
97bbaa6ef9 Require Range<T> to have a signed integer T
This allows for generic +ve/-ve offsets
2014-05-07 15:06:41 -07:00
Brendan Zabarauskas
ea68051937 Use {} instead of {:?} for debug!ing in util::range 2014-05-07 15:06:41 -07:00
Brendan Zabarauskas
8c6eb08dcb Make range generic 2014-05-07 15:05:59 -07:00
Glenn Watson
376d5f4a08 Allow resource load failures to send an error string which is reporting during task failure. 2014-05-08 07:43:45 +10:00
bors-servo
2a7889c061 auto merge of #2364 : zwarich/servo/issue-2363, r=larsbergstrom
Use false for the glfw::Visible window hint to open a background window
on OS X. This requires an upgrade to glfw 3.0.4 in order for this to
also not steal focus.

This requires adding a new parameter to WindowMethods<A>::new.

Fixes https://github.com/mozilla/servo/issues/2363. r? @larsbergstrom
2014-05-07 17:34:33 -04:00
Gulshan Singh
fb0c433b70 Add Performance object to Window and implement Performance::Now() 2014-05-07 17:30:33 -04:00
Ms2ger
0ab3444af9 Add support for DOMString in unions (fixes #2324). 2014-05-07 17:30:32 -04:00
Cameron Zwarich
d766cbab6e Open a background non-focus-stealing window for tests on OS X.
Use false for the glfw::Visible window hint to open a background window
on OS X. This requires an upgrade to glfw 3.0.4 in order for this to
also not steal focus.
2014-05-07 14:24:14 -07:00
Simon Sapin
4d80cfb404 Fix computed value of 'display' when no declaration applies. 2014-05-07 20:53:03 +01:00
Simon Sapin
e405f81065 Set the border-*-width computed values to 0 as appropriate. Fix #2288 2014-05-07 20:53:03 +01:00
Simon Sapin
416cbf472a Parse declarations in reverse order, skip those that would be overridden. 2014-05-07 20:53:03 +01:00
Simon Sapin
8b53ea8a2c Cascade declarations in reverse order, skipping those already seen
Previously we processed them in forward order, latter dcelarations for
the same property overriding any earlier one, making the work of
converting the earlier ones to a computed value redundant.

Maintaining a bit field of "seen" properties will also help fixing
#2288.
2014-05-07 20:51:02 +01:00
bors-servo
15d3257a29 auto merge of #2360 : Ms2ger/servo/vec, r=jdm 2014-05-07 09:28:27 -04:00
Ms2ger
5d3f750d37 Use Vec in contenttest.rs. 2014-05-07 12:41:33 +02:00
Ms2ger
0cfd070680 Use Vec in reftest.rs. 2014-05-07 12:39:44 +02:00
Ms2ger
87008a5ae1 Remove unused zip_copies. 2014-05-07 12:29:26 +02:00
Ms2ger
479c927a39 Use Vec in GetClientRects. 2014-05-07 12:27:14 +02:00
Ms2ger
c4faad7116 Use Vec in the quicksort test. 2014-05-07 12:26:20 +02:00
Ms2ger
aa2866a22c Use Vec for SimpleHashCache::entries. 2014-05-07 12:23:53 +02:00
bors-servo
5300846f33 auto merge of #2358 : zwarich/servo/configure-dash-h, r=Ms2ger 2014-05-07 05:29:11 -04:00
Cameron Zwarich
a2afa4b935 Make configure recognize the '-h' option in addition to '--help'. 2014-05-07 00:37:27 -07:00
bors-servo
e9ac0d1e2c auto merge of #2339 : glennw/servo/js-event-assert, r=jdm 2014-05-07 03:04:21 -04:00
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