servo/components
bors-servo 2d6283c64b Auto merge of #9929 - servo:cascade, r=pcwalton
Refactor the cascade

Converting the specified value of some properties into a computed value depends on the value of other properties. For example, the `em` unit of any length depends on the `font-size` property.

Previously, we would do a first pass over applicable declarations to build up a `values::computed::Context` struct with a number of fields for each such piece of data from other properties.

This simplies the struct by instead having it contain the set of computed values (for a given element) that is being populated and classify properties into "early" and "other", such that the only dependencies can be from "other" to "early". We iterate applicable_declarations twice, first cascading "early" properties then "other". Unfortunately, it’s not easy to check that this classification is correct.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9929)
<!-- Reviewable:end -->
2016-03-19 08:08:56 +05:30
..
canvas Update log to 0.3.5 2016-03-16 23:36:04 -07:00
canvas_traits Bump serde to 0.7 2016-03-17 13:52:39 +01:00
compositing Bump serde to 0.7 2016-03-17 13:52:39 +01:00
devtools Bump serde to 0.7 2016-03-17 13:52:39 +01:00
devtools_traits Bump serde to 0.7 2016-03-17 13:52:39 +01:00
gfx Bump serde to 0.7 2016-03-17 13:52:39 +01:00
gfx_traits Bump serde to 0.7 2016-03-17 13:52:39 +01:00
layout Removed overflow references on AssignBSizesAndStoreOverflow code 2016-03-17 21:14:50 +01:00
layout_traits Bump serde to 0.7 2016-03-17 13:52:39 +01:00
msg Bump serde to 0.7 2016-03-17 13:52:39 +01:00
net Use external 'threadpool' crate, remove in-tree utility. 2016-03-18 11:05:49 -04:00
net_traits Disallow unsafe code in net and net_traits. 2016-03-18 10:30:07 +01:00
plugins Auto merge of #9946 - yoava333:master, r=KiChjang 2016-03-10 04:44:33 +05:30
profile Update log to 0.3.5 2016-03-16 23:36:04 -07:00
profile_traits Bump serde to 0.7 2016-03-17 13:52:39 +01:00
range Bump serde to 0.7 2016-03-17 13:52:39 +01:00
script Auto merge of #10009 - creativcoder:impl-navigator-language, r=Ms2ger 2016-03-18 15:29:46 +05:30
script_traits Bump serde to 0.7 2016-03-17 13:52:39 +01:00
servo Use external 'threadpool' crate, remove in-tree utility. 2016-03-18 11:05:49 -04:00
style Auto merge of #9929 - servo:cascade, r=pcwalton 2016-03-19 08:08:56 +05:30
style_traits Bump serde to 0.7 2016-03-17 13:52:39 +01:00
util Use external 'threadpool' crate, remove in-tree utility. 2016-03-18 11:05:49 -04:00
webdriver_server Bump serde to 0.7 2016-03-17 13:52:39 +01:00