servo/components/layout
bors-servo e2b494b1d0 Auto merge of #15417 - stshine:column-flexbox, r=emilio
layout: Remove cached thread local context from LayoutContext, and use LayoutContext for assign_inline_sizes()

<!-- Please describe your changes on the following line: -->

According to https://github.com/servo/servo/pull/3069 the cached thread local context is introduced for green threads. Now green threads has gone, and the existence of cache force us to create a `LayoutContext`, an `AssignISizes` and an `AssignBSizes` for each flow during parallel layout, so the pull request tries to remove it. And it also switch `assign_inline_sizes()` to accept a `LayoutContext` parameter, as according to my current design we need to do full layout to some flex items for column flexbox during assign isize traversal.

Part of #14123.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because refactoring

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/15417)
<!-- Reviewable:end -->
2017-02-07 17:16:05 -08:00
..
animation.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
block.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
Cargo.toml Update rustc to 1.16.0-nightly (7821a9b99 2017-01-23). 2017-01-24 11:02:51 +01:00
construct.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
context.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
data.rs Bug 1325734 - Remove Servo Layout's dependency on the initial-ness of the style. r=emilio 2017-01-09 11:51:36 -08:00
display_list_builder.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
flex.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
floats.rs Migrated -Z trace-layout to serde_json 2016-11-07 15:54:07 +08:00
flow.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
flow_list.rs Added a toolbar for going to previous and next node 2016-12-28 15:31:48 +08:00
flow_ref.rs Migrated -Z trace-layout to serde_json 2016-11-07 15:54:07 +08:00
fragment.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
generated_content.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
incremental.rs Make Restyle tracking more granular. 2016-12-09 14:46:40 -10:00
inline.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
layout_debug.rs Stop allowing unsafe code around thread_local. 2016-12-30 11:11:25 +01:00
lib.rs Update rustc to 1.16.0-nightly (7821a9b99 2017-01-23). 2017-01-24 11:02:51 +01:00
linked_list.rs Move util::linked_list to layout 2016-06-29 17:23:04 +02:00
list_item.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
model.rs Activate flexbox layout tracing 2016-12-28 15:31:45 +08:00
multicol.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
opaque_node.rs Introduce LayoutJS<Node>::opaque() to replace OpaqueNodeMethods::from_jsmanaged(). 2016-06-20 19:08:02 +02:00
parallel.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
persistent_list.rs Move util::persistent_list to layout 2016-02-20 19:20:38 +01:00
query.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
sequential.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
table.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
table_caption.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
table_cell.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
table_colgroup.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
table_row.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
table_rowgroup.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
table_wrapper.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
text.rs Convert text-orientation to a Gecko-only property 2017-01-27 21:12:38 -08:00
traversal.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
webrender_helpers.rs Update WR. 2017-02-07 17:19:16 +10:00
wrapper.rs Bug 1325734 - Simplify ElementData and eliminate the concept of consuming styles. r=emilio 2017-01-09 11:51:37 -08:00