servo/components
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
..
canvas Update euclid to 0.10.1 2016-08-21 03:03:45 +02:00
canvas_traits Update euclid to 0.10.1 2016-08-21 03:03:45 +02:00
compositing Update euclid to 0.10.1 2016-08-21 03:03:45 +02:00
constellation Do not define Pipeline::setup_common on Windows 2016-08-22 13:20:46 +03:00
devtools Update serde to 0.8 (fixes #12659) 2016-08-12 18:37:27 +02:00
devtools_traits Update serde to 0.8 (fixes #12659) 2016-08-12 18:37:27 +02:00
gfx Auto merge of #12938 - nox:fontsan, r=larsbergstrom 2016-08-22 19:20:19 -05:00
gfx_traits Update euclid to 0.10.1 2016-08-21 03:03:45 +02:00
layout Auto merge of #12935 - shinglyu:layout_json, r=glennw 2016-08-23 21:43:13 -05:00
layout_thread Move the user agent and user stylesheets to layout_thread. 2016-08-23 15:33:47 +02:00
layout_traits Update to webrender 0.4.0 2016-08-18 19:33:12 +02:00
msg Update to webrender 0.4.0 2016-08-18 19:33:12 +02:00
net Burn SelectedFileId in fire 2016-08-22 10:05:01 +02:00
net_traits Burn SelectedFileId in fire 2016-08-22 10:05:01 +02:00
plugins Update Rust to 1.13.0-nightly (499484f56 2016-08-18) 2016-08-20 17:29:49 +02:00
profile Update serde to 0.8 (fixes #12659) 2016-08-12 18:37:27 +02:00
profile_traits Update serde to 0.8 (fixes #12659) 2016-08-12 18:37:27 +02:00
range Update serde to 0.8 (fixes #12659) 2016-08-12 18:37:27 +02:00
script Update Rust to 1.13.0-nightly (3c5a0fa45 2016-08-22) 2016-08-23 17:05:41 +02:00
script_layout_interface calculate damage for opacity change 2016-08-23 00:26:14 +03:00
script_traits Update euclid to 0.10.1 2016-08-21 03:03:45 +02:00
servo Update wr + shaders for local clip rect changes. 2016-08-24 06:22:07 +10:00
style Auto merge of #12981 - splav:inline_reconstruct#12602, r=notriddle 2016-08-23 15:43:56 -05:00
style_traits Update euclid to 0.10.1 2016-08-21 03:03:45 +02:00
util Move thread_state to style. 2016-08-22 16:08:56 +02:00
webdriver_server Burn SelectedFileId in fire 2016-08-22 10:05:01 +02:00