servo/components/layout
bors-servo 3993fde90a Auto merge of #12935 - shinglyu:layout_json, r=glennw
Fixed layout flow tree JSON serialization

<!-- Please describe your changes on the following line: -->
The second argument for the `emit_struct()` is the number of fields, if given `0`, the output JSON will always be empty.

This is used in `./mach run -d -Z trace-layout https://servo.org`, which will dump the layout flow tree into a `layout_trace.json` file for debugging.

This also unblocks https://github.com/servo/servo/issues/12675

---
<!-- 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

<!-- Either: -->
- [x] These changes do not require tests because its a debugging tool, not critical for normal code path

<!-- 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/12935)
<!-- Reviewable:end -->
2016-08-23 21:43:13 -05:00
..
animation.rs Make RestyleDamage::compute take no optional argument, delegate the handling to the caller. 2016-08-10 18:26:24 -07:00
block.rs Auto merge of #12873 - shinglyu:abs-margin-patch, r=notriddle,emilio 2016-08-15 08:19:04 -05:00
Cargo.toml Update euclid to 0.10.1 2016-08-21 03:03:45 +02:00
construct.rs set HAS_NEWLY_CONSTRUCTED_FLOW flag for reconstructed flow'less inline element 2016-08-23 01:45:11 +03:00
context.rs Remove some type aliases that are now just re-exports. 2016-07-20 08:42:47 +02:00
data.rs Remove some type aliases that are now just re-exports. 2016-07-20 08:42:47 +02:00
display_list_builder.rs Review fixups 2016-08-22 22:45:16 +05:30
flex.rs layout: Freeze flex item properly 2016-08-08 10:34:02 +08:00
floats.rs layout: Take margins in the inline direction into account when 2016-05-10 17:11:28 -07:00
flow.rs Auto merge of #12935 - shinglyu:layout_json, r=glennw 2016-08-23 21:43:13 -05:00
flow_list.rs Use impl DoubleEndedIterator for two flow_list iterators 2016-08-14 19:06:18 +02:00
flow_ref.rs Correct the signature of flow_ref::deref_mut. 2016-06-06 15:14:23 +02:00
fragment.rs Auto merge of #12935 - shinglyu:layout_json, r=glennw 2016-08-23 21:43:13 -05:00
generated_content.rs Remove the ComputedValue traits and style_struct_traits 2016-07-20 08:42:40 +02:00
incremental.rs Introduce a script_layout_interface crate and move RestyleDamage to it. 2016-06-20 19:02:36 +02:00
inline.rs do not merge inline fragments if there is space in between 2016-08-11 10:11:11 +03:00
layout_debug.rs Fragment debug_id u16 only exists in debug, prod will format mem address 2016-06-04 19:19:42 +02:00
lib.rs Use impl DoubleEndedIterator for two flow_list iterators 2016-08-14 19:06:18 +02:00
linked_list.rs Move util::linked_list to layout 2016-06-29 17:23:04 +02:00
list_item.rs Remove some type aliases that are now just re-exports. 2016-07-20 08:42:47 +02:00
model.rs Update euclid to 0.10.1 2016-08-21 03:03:45 +02:00
multicol.rs Update to euclid 0.8 2016-08-12 03:12:06 +02:00
opaque_node.rs Introduce LayoutJS<Node>::opaque() to replace OpaqueNodeMethods::from_jsmanaged(). 2016-06-20 19:08:02 +02:00
parallel.rs Move util::workqueue to style 2016-07-04 21:56:09 +02:00
persistent_list.rs Move util::persistent_list to layout 2016-02-20 19:20:38 +01:00
query.rs Auto merge of #12813 - emilio:hit-test, r=notriddle 2016-08-11 05:34:27 -05:00
sequential.rs layout: Make the stacking context take into account the children transform when calculating overflow areas. 2016-08-16 15:34:28 -07:00
table.rs Remove some type aliases that are now just re-exports. 2016-07-20 08:42:47 +02:00
table_caption.rs Remove some type aliases that are now just re-exports. 2016-07-20 08:42:47 +02:00
table_cell.rs Update Rust to 1.12.0-nightly (545a3a94f 2016-08-04) 2016-08-05 14:45:32 +02:00
table_colgroup.rs Remove some type aliases that are now just re-exports. 2016-07-20 08:42:47 +02:00
table_row.rs Fix table vertical alignment (middle, bottom, not yet baseline) with differing height cells 2016-07-26 13:05:10 +01:00
table_rowgroup.rs Remove some type aliases that are now just re-exports. 2016-07-20 08:42:47 +02:00
table_wrapper.rs Remove some type aliases that are now just re-exports. 2016-07-20 08:42:47 +02:00
text.rs Prefer length and percentage for word spacing 2016-08-09 17:53:40 +05:30
traversal.rs Rewrite the style sharing candidate cache. 2016-08-17 14:16:16 -07:00
webrender_helpers.rs layout: Make the stacking context take into account the children transform when calculating overflow areas. 2016-08-16 15:34:28 -07:00
wrapper.rs Remove the ComputedValue traits and style_struct_traits 2016-07-20 08:42:40 +02:00