Commit graph

11034 commits

Author SHA1 Message Date
bors-servo
46709edaf8 Auto merge of #6499 - Ms2ger:slice_position_elem, r=nox
Stop using position_elem.

It is unstable and not really better than the stable alternative.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6499)
<!-- Reviewable:end -->
2015-06-27 15:51:35 -06:00
Ms2ger
c9f50f41b5 Stop using position_elem.
It is unstable and not really better than the stable alternative.
2015-06-27 23:39:21 +02:00
bors-servo
53c04b33f0 Auto merge of #6497 - Ms2ger:negate_unsigned, r=zmike
Remove the negate_unsigned feature gate from CEF.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6497)
<!-- Reviewable:end -->
2015-06-27 13:09:24 -06:00
Ms2ger
c5902bac93 Remove the negate_unsigned feature gate from CEF.
There's no real reason to use it.
2015-06-27 20:01:34 +02:00
bors-servo
dab4e73ee7 Auto merge of #6500 - Ms2ger:warnings, r=metajack
Remove unused imports.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6500)
<!-- Reviewable:end -->
2015-06-27 11:38:34 -06:00
Ms2ger
108c9b161c Remove unused imports. 2015-06-27 19:37:12 +02:00
bors-servo
82be491fa3 Auto merge of #6498 - Ms2ger:weak-deref, r=metajack
Remove Deref and DerefMut implementations from WeakFlowRef.

By definition of a weak pointer, these implementations cannot be safe.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6498)
<!-- Reviewable:end -->
2015-06-27 10:27:03 -06:00
Ms2ger
b37d9cc173 Remove Deref and DerefMut implementations from WeakFlowRef.
By definition of a weak pointer, these implementations cannot be safe.
2015-06-27 18:09:14 +02:00
bors-servo
b7923547a7 Auto merge of #6496 - mukilan:fix_import_codegen, r=Ms2ger
CGImports must consider special operations to generate required 'use' items



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6496)
<!-- Reviewable:end -->
2015-06-27 07:51:37 -06:00
Mukilan Thiyagarajan
8f5265c131 CGImports must consider special operations to generate required 'use' items 2015-06-27 19:01:17 +05:30
bors-servo
8892f8175d Auto merge of #6494 - Ms2ger:atomic, r=metajack
Use an atomic bool for EXPERIMENTAL_ENABLED.

static mut smells, especially as it can be set and read from multiple threads
(for example in unit tests).

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6494)
<!-- Reviewable:end -->
2015-06-27 02:10:50 -06:00
bors-servo
9c5eb162ae Auto merge of #6493 - mrobinson:new-rust-layers, r=pcwalton
Update to latest rust-layers



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6493)
<!-- Reviewable:end -->
2015-06-27 01:30:33 -06:00
Ms2ger
0d0c8f2d42 Use an atomic bool for EXPERIMENTAL_ENABLED.
static mut smells, especially as it can be set and read from multiple threads
(for example in unit tests).
2015-06-27 09:06:45 +02:00
bors-servo
b73eca160c Auto merge of #6491 - michaelwu:mutable, r=metajack
Remove unnecessary uses of MutHeap



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6491)
<!-- Reviewable:end -->
2015-06-26 20:36:04 -06:00
bors-servo
27b2ab45fa Auto merge of #6489 - FreeFull:patch-1, r=metajack
Update Cargo nightly version

Cargo nightly 2015-06-15 has an issue where downloading from crates.io fails due to an SSL certificate error. This issue doesn't occur with 2015-06-24.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6489)
<!-- Reviewable:end -->
2015-06-26 19:38:29 -06:00
Martin Robinson
5f9c3b0b67 Update to latest rust-layers 2015-06-26 18:14:29 -07:00
bors-servo
ac566e90a2 Auto merge of #6485 - Ms2ger:thread_local, r=metajack
Remove the unused thread_local feature gate.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6485)
<!-- Reviewable:end -->
2015-06-26 18:26:51 -06:00
bors-servo
ff97944121 Auto merge of #6484 - Ms2ger:raw-cef, r=metajack
Stop using deprecated boxed::into_raw in cef.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6484)
<!-- Reviewable:end -->
2015-06-26 17:50:42 -06:00
Michael Wu
0cd855379d Don't use MutNullableHeap in InputActivationState
No internal mutability required here.
2015-06-26 19:32:12 -04:00
Michael Wu
58d28ca0c8 Don't use MutHeap in BoundaryPoint
BoundaryPoint only requires external mutability, so MutHeap isn't necessary.
2015-06-26 19:32:12 -04:00
Filip Szczepański
1025fbe44c Update Cargo nightly version
Cargo nightly 2015-06-15 has an issue where downloading from crates.io fails due to an SSL certificate error. This issue doesn't occur with 2015-06-24.
2015-06-27 00:12:39 +01:00
bors-servo
f0dd71418e Auto merge of #6482 - Ms2ger:thunk, r=metajack
Stop using the deprecated Thunk API.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6482)
<!-- Reviewable:end -->
2015-06-26 17:10:40 -06:00
bors-servo
ec20555528 Auto merge of #6478 - jruderman:patch-1, r=metajack
Add space between sentences



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6478)
<!-- Reviewable:end -->
2015-06-26 16:36:10 -06:00
bors-servo
aed11dc22c Auto merge of #6477 - Ms2ger:vec_from_raw_buf, r=metajack
Stop using Vec::from_raw_buf.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6477)
<!-- Reviewable:end -->
2015-06-26 16:01:23 -06:00
bors-servo
e6db6ae61f Auto merge of #6474 - Ms2ger:alloc, r=metajack
Use the heap module through its facade in libstd.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6474)
<!-- Reviewable:end -->
2015-06-26 15:26:25 -06:00
Ms2ger
f8ae884ab5 Stop using deprecated boxed::into_raw in cef. 2015-06-26 23:00:07 +02:00
Ms2ger
9330c7420f Remove the unused thread_local feature gate. 2015-06-26 22:57:37 +02:00
bors-servo
c331db1623 Auto merge of #6468 - servo:update-selectors, r=Ms2ger
Update rust-selectors

r? @Ms2ger

https://github.com/servo/rust-selectors/pull/33

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6468)
<!-- Reviewable:end -->
2015-06-26 14:50:01 -06:00
Ms2ger
079049cfac Stop using the deprecated Thunk API. 2015-06-26 22:45:32 +02:00
Jesse Ruderman
e6dc0d06d6 Add space between sentences 2015-06-26 13:17:15 -07:00
bors-servo
07a1e187f0 Auto merge of #6461 - Ms2ger:workqueuedata, r=pcwalton
Use a dedicated type for the opaque type parameter to WorkQueue in layout.

Currently, we use UnsafeFlow and UnsafeLayoutNode, both of which are aliases
for (usize, usize) and thus interconvertible. This change should make it
clearer that the WorkQueue is not limited to one particular type.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6461)
<!-- Reviewable:end -->
2015-06-26 14:10:07 -06:00
bors-servo
995985b985 Auto merge of #6470 - Ms2ger:6466-viewport, r=metajack
Enable experimental features in the multiple_stylesheets_cascading test (fixes #6466).



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6470)
<!-- Reviewable:end -->
2015-06-26 13:35:11 -06:00
Simon Sapin
9e1a674b16 Update rust-selectors 2015-06-26 12:35:08 -07:00
Ms2ger
a72c6ec8b6 Stop using Vec::from_raw_buf. 2015-06-26 21:20:13 +02:00
bors-servo
b26818a7b0 Auto merge of #6473 - Ms2ger:args, r=metajack
Stop using env::set_exit_code.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6473)
<!-- Reviewable:end -->
2015-06-26 12:55:23 -06:00
Ms2ger
d6aa0915c3 Use the heap module through its facade in libstd. 2015-06-26 20:52:28 +02:00
Ms2ger
d7c0d65cc4 Stop using env::set_exit_code. 2015-06-26 19:46:16 +02:00
bors-servo
ef97879c27 Auto merge of #6469 - Ms2ger:rc-mut, r=saneyuki
Use Rc::get_mut rather than deprecated rc::get_mut.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6469)
<!-- Reviewable:end -->
2015-06-26 09:26:55 -06:00
Ms2ger
932aa06694 Use Rc::get_mut rather than deprecated rc::get_mut. 2015-06-26 17:17:18 +02:00
Ms2ger
bf50379833 Enable experimental features in the multiple_stylesheets_cascading test (fixes #6466). 2015-06-26 17:15:20 +02:00
bors-servo
f812390d3a Auto merge of #6463 - Ms2ger:layout-reduce-unsafe, r=SimonSapin
Reduce the scope of the unsafe block in ParallelPostorderDomTraversal.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6463)
<!-- Reviewable:end -->
2015-06-26 06:45:48 -06:00
bors-servo
9eb3cc2a24 Auto merge of #6464 - Ms2ger:into_raw, r=saneyuki
Use Box::into_raw rather than boxed::into_raw.

The latter is deprecated.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6464)
<!-- Reviewable:end -->
2015-06-26 04:50:54 -06:00
bors-servo
2165c55d64 Auto merge of #6465 - servo:tendril, r=pcwalton
Update to zero-copy* HTML parsing

html5ever now uses the Tendril string type to minimize copying internally, but Servo still converts from/to `String` at the boundary (which involves copying).

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6465)
<!-- Reviewable:end -->
2015-06-25 23:12:09 -06:00
bors-servo
26982cb547 Auto merge of #6449 - mbrubeck:byte_range, r=pcwalton
Slice TextRuns by byte range instead of char range

Currently only the end of the byte range is used, but I plan to use the full range in some follow-up work.

Fixes #6431. r? @pcwalton

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6449)
<!-- Reviewable:end -->
2015-06-25 22:25:36 -06:00
Simon Sapin
34bfa16517 Update to zero-copy* HTML parsing
html5ever now uses the Tendril string type to minimize copying internally,
but Servo still converts from/to `String` at the boundary
(which involves copying).
2015-06-25 20:40:38 -07:00
Ms2ger
28086f3c75 Use Box::into_raw rather than boxed::into_raw.
The latter is deprecated.
2015-06-25 23:03:54 +02:00
Ms2ger
b6e5f8e7b6 Reduce the scope of the unsafe block in ParallelPostorderDomTraversal. 2015-06-25 22:34:00 +02:00
Ms2ger
b98a7f27a9 Remove a no-op transmute in ParallelPostorderDomTraversal. 2015-06-25 22:31:33 +02:00
bors-servo
ea06bebca9 Auto merge of #6460 - michaelwu:fix-indentation, r=Ms2ger
Fix indentation in testbindingproxy.rs



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6460)
<!-- Reviewable:end -->
2015-06-25 13:30:46 -06:00
Ms2ger
d0a29c3951 Use a dedicated type for the opaque type parameter to WorkQueue in layout.
Currently, we use UnsafeFlow and UnsafeLayoutNode, both of which are aliases
for (usize, usize) and thus interconvertible. This change should make it
clearer that the WorkQueue is not limited to one particular type.
2015-06-25 21:20:41 +02:00