Boris Zbarsky
09c74190b9
Bug 1298588 part 8. Pass a SharedStyleContext, not a Stylist, to Legalizer methods. r=bholley
2017-01-04 23:13:45 -05:00
Boris Zbarsky
d3e34db508
Bug 1298588 part 7, servo piece. Stop using initial_values in general in Gecko glue code. r=bholley
2017-01-04 23:13:43 -05:00
Boris Zbarsky
c313c8d17e
Bug 1298588 part 6, servo piece. Stop using initial_values when doing inheritance in Gecko glue code. r=bholley
2017-01-04 23:13:42 -05:00
Boris Zbarsky
56941d61a7
Bug 1298588 part 5. Store a ComputedValues on SharedStyleContext. r=bholley
2017-01-04 23:13:40 -05:00
Boris Zbarsky
a5ac55c8ff
Bug 1298588 part 4, servo piece. Recreate the default computed values for a document as needed. r=bholley
2017-01-04 23:13:39 -05:00
Boris Zbarsky
34bb2f1e6c
Bug 1298588 part 3, servo piece. Add a default ComputedValues member to PerDocumentStyleData. r=bholley
2017-01-04 23:13:31 -05:00
Boris Zbarsky
8908743719
Bug 1298588 part 2, servo piece. Pass through an nsPresContext to the PerDocumentStyleData constructor. r=bholley
2017-01-04 14:42:15 -05:00
bors-servo
384e905be2
Auto merge of #14841 - jdm:stylesheet_document, r=emilio
...
Track stylesheet load's document instead of using element's current document
For cases where a stylesheet load finishes in a different document than it started, we need to be more careful about which document we report the completion to. In this case we actually have separate requests for each document involved, but they previously used the same element to determine which document to interact with.
---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #14641
- [X] There are tests for these changes OR
<!-- 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/14841 )
<!-- Reviewable:end -->
2017-01-04 07:26:04 -08:00
Josh Matthews
318a047ee5
Interact with the originating document for stylesheet loads, rather than the element's current document.
2017-01-04 09:55:45 -05:00
bors-servo
1e927ca88b
Auto merge of #14835 - bholley:external_atomic_refcell, r=Manishearth
...
Switch to crates.io for atomic_refcell
r? @Manishearth
See #14828 for backstory.
<!-- 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/14835 )
<!-- Reviewable:end -->
2017-01-03 19:20:59 -08:00
Bobby Holley
b9d99390ad
Switch to crates.io for atomic_refcell.
2017-01-03 18:14:27 -08:00
bors-servo
220e6e4014
Auto merge of #14836 - jdm:enable-webgl-test, r=cbrewster
...
Enable uniformMatrixNfv.html
Fixes #10478 , since #8462 was fixed a while ago.
<!-- 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/14836 )
<!-- Reviewable:end -->
2017-01-03 18:03:33 -08:00
Josh Matthews
a92cce4dfb
Enable uniformMatrixNfv.html
2017-01-03 20:06:44 -05:00
bors-servo
61f6454b9c
Auto merge of #14827 - Manishearth:spec-doc, r=emilio
...
Add spec links to all CSS properties
<!-- 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/14827 )
<!-- Reviewable:end -->
2017-01-03 14:28:29 -08:00
Manish Goregaokar
94412ab6b0
Fix image-orientation line-wrap
2017-01-03 14:28:11 -08:00
Manish Goregaokar
1094c68a55
Add spec link for text-emphasis
2017-01-03 14:03:43 -08:00
Manish Goregaokar
d873bb8fa4
Add spec links for border shorthands
2017-01-03 14:03:42 -08:00
Manish Goregaokar
c89368dcc5
Add spec links for opacity
2017-01-03 14:03:40 -08:00
Manish Goregaokar
ca6ada8b83
Make spec links mandatory
2017-01-03 14:03:39 -08:00
Manish Goregaokar
9a2945bd3a
Add spec links for xul properties
2017-01-03 14:03:38 -08:00
Manish Goregaokar
0c6829aea1
Add spec links for ui properties
2017-01-03 14:03:37 -08:00
Manish Goregaokar
450a5d1ae0
Add spec links for text properties
2017-01-03 14:03:35 -08:00
Manish Goregaokar
24f4388b5b
Add spec links for table properties
2017-01-03 14:03:34 -08:00
Manish Goregaokar
7238cfb349
Add spec links for svg properties
2017-01-03 14:03:33 -08:00
Manish Goregaokar
baaddf651d
Add spec links for pointing properties
2017-01-03 14:03:32 -08:00
Manish Goregaokar
6cf15de868
Add spec links for padding properties
2017-01-03 14:03:30 -08:00
Manish Goregaokar
e7464b5fd5
Add spec links for outline properties
2017-01-03 14:03:28 -08:00
Manish Goregaokar
fdd6a409fb
Add spec links for mask properties
2017-01-03 14:03:26 -08:00
Manish Goregaokar
3128694bff
Add spec links for margin properties, support spec links on four_sides_shorthand
2017-01-03 14:03:25 -08:00
Manish Goregaokar
6138b6aa75
Add spec links for list properties
2017-01-03 14:03:23 -08:00
Manish Goregaokar
26a9b450a2
Add spec links for inherited_text properties
2017-01-03 14:03:20 -08:00
Manish Goregaokar
096dca9171
Add spec links for inherited_table properties
2017-01-03 14:03:18 -08:00
Manish Goregaokar
ff4893e17e
Add spec links for inherited_svg properties
2017-01-03 14:03:17 -08:00
Manish Goregaokar
71026c5ddb
Add spec links for inherited_box properties
2017-01-03 14:03:16 -08:00
Manish Goregaokar
82835c8b1b
Add spec links for font properties
2017-01-03 14:03:14 -08:00
Manish Goregaokar
b56762246f
Add spec links for effects properties
2017-01-03 14:03:13 -08:00
Manish Goregaokar
be8f9ad9d7
Add spec links for counter properties
2017-01-03 14:03:12 -08:00
Manish Goregaokar
dedebc5cb5
Add spec links for column properties
2017-01-03 14:03:11 -08:00
Manish Goregaokar
6a88723409
Support logical values for float/clear
2017-01-03 14:03:10 -08:00
bors-servo
57b2c2609e
Auto merge of #14828 - bholley:faster_atomic_refcell, r=Manishearth
...
Reimplement AtomicRefCell with pure atomics
While reviewing @bzbarsky's patches in [1], I started typing out some lore about how mutable AtomicRefCell borrows are actually cheaper than immutable ones, so we should prefer them where possible. But then I decided that this was a really dumb state of affairs and that we should just fix AtomicRefCell instead, and implement a proper AtomicRef{,Mut}::map while we were at it. So here we are.
This PR adds a from-scratch implementation of AtomicRefCell that aims to be 100% sound, even in unrealistic overflow scenarios. We should probably get this on crates.io eventually, but I want to land it landed in-tree first.
With this implementation, each operation (borrow or release) is one atomic instruction, and all borrow/release pairs (mutable or immutable) take 12 ns on my machine, which is what I'd expect. This is a 50% improvement over the previous implementation in the immutable case.
There may be some places where we could get away with Ordering::Release instead of Ordering::AcqRel, but it didn't seem worth it to try to reason it out.
r? @Manishearth
CC @emilio @SimonSapin @heycam @upsuper
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1298588
<!-- 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/14828 )
<!-- Reviewable:end -->
2017-01-03 12:24:45 -08:00
Bobby Holley
c26b4bed60
Reimplement AtomicRefCell as a fork of RefCell.
2017-01-03 12:23:06 -08:00
Manish Goregaokar
0b515c2bc9
Add spec links for box properties
2017-01-03 10:27:49 -08:00
Manish Goregaokar
a9c0162000
Add spec links for border properties
2017-01-03 10:24:00 -08:00
Manish Goregaokar
cd2f9734e9
Add spec links for background properties
2017-01-03 10:23:56 -08:00
Manish Goregaokar
d63af611f2
Add spec links for position properties
2017-01-03 10:23:04 -08:00
Manish Goregaokar
29c2db4457
Add spec argument to property helpers
2017-01-03 10:23:02 -08:00
bors-servo
68ecb04847
Auto merge of #14831 - servo:rustfmt-traits, r=nox
...
Rustfmt script_traits and net_traits.
CC #8553 .
<!-- 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/14831 )
<!-- Reviewable:end -->
2017-01-03 08:11:09 -08:00
bors-servo
672f099c95
Auto merge of #14830 - heycam:bindings-update-15, r=emilio
...
stylo: update bindings
Bindings update for https://treeherder.mozilla.org/#/jobs?repo=stylo&revision=8ebbde564daf4f7019d874e4b888bd670c81e6cc .
r? @emilio
<!-- 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/14830 )
<!-- Reviewable:end -->
2017-01-03 06:08:30 -08:00
Ms2ger
b46846e2a0
Rustfmt net_traits.
2017-01-03 15:06:41 +01:00
Ms2ger
b76613a389
Skip rustfmt on to_filtered.
...
https://github.com/rust-lang-nursery/rustfmt/issues/1262
2017-01-03 15:06:37 +01:00