mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Auto merge of #26565 - ferjm:layout_2020_viewer_fix, r=SimonSapin
Adapt layout 2020 viewer to new BoxTree and FragmentTree structs - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors #26414 introduced some changes to how we represent the box and fragment trees, so we need to adapt the layout viewer to support them.
This commit is contained in:
commit
d4d7cae87e
1 changed files with 2 additions and 2 deletions
|
@ -210,11 +210,11 @@
|
|||
|
||||
function flatten_trace(trace_node) {
|
||||
const fragment_tree_root = Object.values(
|
||||
trace_node.fragment_tree.children
|
||||
trace_node.fragment_tree.root_fragments
|
||||
)[0];
|
||||
return {
|
||||
fragment_tree: create_fragment_tree(fragment_tree_root),
|
||||
box_tree: box_tree_from_bfc(trace_node.box_tree)
|
||||
box_tree: box_tree_from_bfc(trace_node.box_tree.root)
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue