gecko-dev/servo/etc/layout_viewer
Shing Lyu 72f401280b servo: Merge #14124 - Flexbox trace (from shinglyu:flexbox-trace); r=glennw
<!-- Please describe your changes on the following line: -->
This is a follow up for #13740, so r? @jdm

The first patch enables JSON serialization for flexbox flows, the second one fixed format incompatibilities for the layout viewer.

The 3rd and 4th patches are just layout viewer UI enhancements, we could split that to a spearate PR if you prefer.

---
<!-- 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
- [x] These changes fix #13846  (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because it's a trivial debug tool

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

Source-Repo: https://github.com/servo/servo
Source-Revision: 58fec2f05a21eb69899c8ec21e4b95000cfed2f2
2016-12-28 00:33:31 -08:00
..
css servo: Merge #14124 - Flexbox trace (from shinglyu:flexbox-trace); r=glennw 2016-12-28 00:33:31 -08:00
fonts servo: Merge #13432 - Restore the layout trace viewer (from shinglyu:layout_viewer_clean); r=mbrubeck 2016-10-17 10:06:50 -05:00
js servo: Merge #13829 - Layout viewer fixes (from shinglyu:layout_viewer); r=mbrubeck 2016-11-02 18:34:26 -05:00
README servo: Merge #13432 - Restore the layout trace viewer (from shinglyu:layout_viewer_clean); r=mbrubeck 2016-10-17 10:06:50 -05:00
viewer.html servo: Merge #14124 - Flexbox trace (from shinglyu:flexbox-trace); r=glennw 2016-12-28 00:33:31 -08:00

README

To generate a layout trace:

```
./mach run -d -Z trace-layout <url>
```

A few `layout_trace_<reflow_count>.json` files will be written to the current directory that can be loaded by the viewer.