Auto merge of #12831 - notriddle:master, r=Manishearth

Add a flag to dump the computed style values

I used this to trace #11818 to a style bug, rather than a layout bug.

---

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes do not fix any issues
- [X] These changes do not require tests because debugging

<!-- 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/12831)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-08-12 20:55:27 -05:00 committed by GitHub
commit 7b1f75b605
5 changed files with 52 additions and 0 deletions

View file

@ -1187,6 +1187,10 @@ impl LayoutThread {
self.root_flow = self.try_get_layout_root(node);
}
if opts::get().dump_style_tree {
node.dump_style();
}
// Perform post-style recalculation layout passes.
self.perform_post_style_recalc_layout_passes(&data.reflow_info,
&mut rw_data,