Alan Jeffrey
01e17cf437
Document the can-block-on relationship for servo.
2017-10-13 15:00:16 -05:00
Simon Sapin
4c5d6fd834
Remove an unused import, fix a warning.
2017-10-13 21:57:26 +02:00
Simon Sapin
e7c53d4ca2
Use pointer casts instead of tramsutes to raw::TraitObject
...
Casting `*const T` to `*const U` with `U: Sized` is allowed even if `T: ?Sized`.
This safely extracts the data pointer out of a trait object,
without relying on the memory representation of trait objects.
2017-10-13 21:55:11 +02:00
bors-servo
db29af160c
Auto merge of #18864 - emilio:reformat, r=jdm
...
style: Reformat a few signatures to follow a consistent style.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18864 )
<!-- Reviewable:end -->
2017-10-13 14:11:02 -05:00
bors-servo
78aaa85aec
Auto merge of #18854 - servo:servo-unstable-feature, r=nox
...
Make optional the usage of some unstable features
With `--no-default-features --features default-except-unstable`, more crates can now be compiled on stable Rust. This will help integrate them in rustc’s regression testing and compiler performance benchmarking.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18854 )
<!-- Reviewable:end -->
2017-10-13 12:26:39 -05:00
Bastien Orivel
c716da5cd0
Update Rust to 1.22.0-nightly (dcbbfb6e8 2017-10-12)
...
This fixes an ICE when compiling servo with CARGO_INCREMENTAL=1
2017-10-13 18:03:54 +02:00
bors-servo
ba77ffed17
Auto merge of #18863 - emilio:dom-api-dont-repeat, r=jdm
...
style: Share code between Gecko and Servo for DOM APIs.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18863 )
<!-- Reviewable:end -->
2017-10-13 10:48:57 -05:00
Emilio Cobos Álvarez
f64f8b8be2
style: Share code for Element::Closest.
2017-10-13 17:21:31 +02:00
Emilio Cobos Álvarez
9e6c49d479
style: Share code for Element::Matches.
2017-10-13 17:21:26 +02:00
Emilio Cobos Álvarez
77f115b467
stylo: Remove unused function.
2017-10-13 17:01:36 +02:00
Emilio Cobos Álvarez
271d2b4ecd
stylo: Reformat a bunch of signatures.
2017-10-13 17:01:33 +02:00
Emilio Cobos Álvarez
09d3a11c86
style: Reformat a couple signatures.
...
MozReview-Commit-ID: 7Wdvj7i8ClR
2017-10-13 17:01:31 +02:00
bors-servo
085a0db056
Auto merge of #18857 - servo:jdm-patch-2, r=KiChjang
...
Remove call to missing method
Somehow the test harness does not report this as a problem, which is scary.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18857 )
<!-- Reviewable:end -->
2017-10-13 08:34:42 -05:00
bors-servo
20855c2304
Auto merge of #18862 - emilio:stylo-element-closest, r=heycam
...
stylo: Use stylo for Element::Closest.
Bug: 1407952
Reviewed-by: heycam
MozReview-Commit-ID: 3H2piFT2CfF
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18862 )
<!-- Reviewable:end -->
2017-10-13 07:22:43 -05:00
bors-servo
a89a76e1fc
Auto merge of #18847 - emilio:invalidation-generic, r=heycam
...
style: Split the invalidation processing from the invalidator step.
This is the first step in reusing the invalidation machinery for other stuff,
potentially including QuerySelector / QuerySelectorAll.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18847 )
<!-- Reviewable:end -->
2017-10-13 06:14:42 -05:00
Emilio Cobos Álvarez
7fd2ac1704
stylo: Use stylo for Element::Closest.
...
Bug: 1407952
Reviewed-by: heycam
MozReview-Commit-ID: 3H2piFT2CfF
2017-10-13 12:22:42 +02:00
Emilio Cobos Álvarez
e447f819a2
style: Make InvalidationProcessor methods be &mut self.
...
This would allow querySelector / querySelectorAll to mutate the list of matched
nodes as it sees fit.
2017-10-13 12:17:02 +02:00
Emilio Cobos Álvarez
9034e6a732
style: Add a way to skip the "invalidation on eager pseudo invalidates self" bit.
2017-10-13 12:17:02 +02:00
Emilio Cobos Álvarez
ecdb10ef5c
Be more precise in should_process_descendants.
2017-10-13 12:17:02 +02:00
Emilio Cobos Álvarez
9e61c1962b
style: Unify invalidated_child with invalidated_descendants.
...
I think invalidated_descendants was buggy, and this fixes it.
2017-10-13 12:17:01 +02:00
Emilio Cobos Álvarez
557353c1f6
style: Move the bounds up in InvalidationProcessor.
2017-10-13 12:17:00 +02:00
Emilio Cobos Álvarez
a5e2f2c76c
style: Isolate all the restyling related logic in the invalidator in an InvalidationProcessor trait.
...
Ditto, no change in behavior.
2017-10-13 12:17:00 +02:00
Emilio Cobos Álvarez
b9b3e592dd
style: Split the invalidation collection from the invalidator step.
...
This is the first step in reusing the invalidation machinery for other stuff,
potentially including QuerySelector / QuerySelectorAll.
2017-10-13 12:16:59 +02:00
Simon Sapin
11bd81e115
Remove usage of unstable feature box_patterns
2017-10-13 11:11:08 +02:00
Simon Sapin
e13ae77daf
Remove usage of unstable feature "raw"
2017-10-13 11:11:07 +02:00
Simon Sapin
4727b92754
Remove usage of unstable feature conservative_impl_trait in layout
2017-10-13 11:11:06 +02:00
Simon Sapin
c2d660037a
Add a default-except-unstable feature
2017-10-13 11:11:06 +02:00
Simon Sapin
4594b40238
Use wrappers in the nonzero crate so users don’t need unstable features
2017-10-13 11:11:05 +02:00
Simon Sapin
45fd384a91
Make use of impl trait
in constellation optional
2017-10-13 11:11:03 +02:00
Simon Sapin
7ebedd02a9
Use NonZeroUsize in script_layout_interface
2017-10-13 11:11:02 +02:00
Simon Sapin
ff23a8536e
Abuse Vec as an allocator in gfx
2017-10-13 11:11:00 +02:00
Simon Sapin
d6d772eba0
Make use of unstable alloc_jemalloc crate optional
2017-10-13 11:11:00 +02:00
Simon Sapin
d9a311963f
Make usage of simd in gfx optional
2017-10-13 11:10:58 +02:00
Simon Sapin
5e72173e8c
Use NonZeroU32 in canvas_traits
2017-10-13 11:10:57 +02:00
Simon Sapin
ecf3b05153
Use NonZeroUsize in remutex
2017-10-13 11:10:55 +02:00
Simon Sapin
8cdf2ad0ed
Add NonZeroUsize
2017-10-13 11:10:55 +02:00
Simon Sapin
57709dc0bf
Use the new nonzero crate in the msg crate
2017-10-13 11:10:16 +02:00
Simon Sapin
c4bf3ec14f
Add a nonzero crate
2017-10-13 11:10:11 +02:00
bors-servo
ec00c660f0
Auto merge of #18861 - upsuper:diagnose-fix, r=Manishearth
...
Some fixes to diagnostic hashmap
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18861 )
<!-- Reviewable:end -->
2017-10-13 02:11:55 -05:00
Xidorn Quan
cb2772b46c
Correct the position and record count of broken canary
2017-10-13 15:39:07 +11:00
Josh Matthews
e5f503a166
Remove call to missing method
2017-10-13 00:35:03 -04:00
Xidorn Quan
b547e96b44
Write poison to canary when removing item from diagnostic hashmap
2017-10-13 15:19:55 +11:00
bors-servo
1d0df04695
Auto merge of #18859 - glennw:update-wr-3d-gamma, r=KiChjang
...
Update WR (mac gamma + alpha fix, 3d transform bug fixes).
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18859 )
<!-- Reviewable:end -->
2017-10-12 23:07:40 -05:00
bors-servo
1099bc8b92
Auto merge of #18858 - upsuper:cycle-removal, r=SimonSapin
...
Rewrite cycle removal algorithm of custom properties and integrate it with substitution
This fixes [bug 1403839](https://bugzilla.mozilla.org/show_bug.cgi?id=1403839 ).
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18858 )
<!-- Reviewable:end -->
2017-10-12 20:30:28 -05:00
Glenn Watson
b375ec89d1
Update WR (mac gamma + alpha fix, 3d transform bug fixes).
2017-10-13 11:07:26 +10:00
Xidorn Quan
1251537459
Rewrite cycle removal algorithm of custom properties and integrate it with substitution
2017-10-13 10:55:24 +11:00
bors-servo
428ef1111f
Auto merge of #18840 - glennw:update-wr, r=jdm
...
Update WR (fontconfig options, DL optimizations, isolate fixes).
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18840 )
<!-- Reviewable:end -->
2017-10-12 17:57:43 -05:00
bors-servo
cac88e0e0a
Auto merge of #18856 - glennw:fast-test, r=jdm
...
Reduce the blur and spread radius size of a reftest.
In the near future, we'll be changing the blur algorithm in WR.
On native GPUs, this is fine - but on OSMesa, a blur of this
radius and spread is quite slow, and can cause test timeouts
when running with a lot of processes enabled.
Reducing the spread / blur shouldn't affect what this is testing.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18856 )
<!-- Reviewable:end -->
2017-10-12 16:45:53 -05:00
Glenn Watson
7e36704f48
Reduce the blur and spread radius size of a reftest.
...
In the near future, we'll be changing the blur algorithm in WR.
On native GPUs, this is fine - but on OSMesa, a blur of this
radius and spread is quite slow, and can cause test timeouts
when running with a lot of processes enabled.
Reducing the spread / blur shouldn't affect what this is testing.
2017-10-13 07:30:54 +10:00
Glenn Watson
f54acc4bbe
Update WR (fontconfig options, DL optimizations, isolate fixes).
2017-10-13 06:34:18 +10:00