aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/layout_debug.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2020-04-17 20:39:59 +0200
committerSimon Sapin <simon.sapin@exyr.org>2020-05-15 13:25:35 +0200
commitc43ab0c267a246b55f9b9ba05dbeb8c7bb25a9a3 (patch)
tree414d23cae8eaa412053a62bfb6acd99b5434e398 /components/layout_2020/layout_debug.rs
parentee62c7f2e48060af0efb426d5084408a17e815f5 (diff)
downloadservo-c43ab0c267a246b55f9b9ba05dbeb8c7bb25a9a3.tar.gz
servo-c43ab0c267a246b55f9b9ba05dbeb8c7bb25a9a3.zip
Rename BoxTreeRoot/FragmentTreeRoot to BoxTree/FragmentTree
Diffstat (limited to 'components/layout_2020/layout_debug.rs')
-rw-r--r--components/layout_2020/layout_debug.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/layout_2020/layout_debug.rs b/components/layout_2020/layout_debug.rs
index 571aa28eee9..79762f8b757 100644
--- a/components/layout_2020/layout_debug.rs
+++ b/components/layout_2020/layout_debug.rs
@@ -5,7 +5,7 @@
//! Supports writing a trace file created during each layout scope
//! that can be viewed by an external tool to make layout debugging easier.
-use crate::flow::{BoxTreeRoot, FragmentTreeRoot};
+use crate::flow::{BoxTree, FragmentTree};
use serde_json::{to_string, to_value, Value};
use std::cell::RefCell;
use std::fs;
@@ -63,8 +63,8 @@ impl ScopeData {
}
struct State {
- fragment_tree: Arc<FragmentTreeRoot>,
- box_tree: Arc<BoxTreeRoot>,
+ fragment_tree: Arc<FragmentTree>,
+ box_tree: Arc<BoxTree>,
scope_stack: Vec<Box<ScopeData>>,
}
@@ -109,7 +109,7 @@ pub fn generate_unique_debug_id() -> u16 {
/// Begin a layout debug trace. If this has not been called,
/// creating debug scopes has no effect.
-pub fn begin_trace(box_tree: Arc<BoxTreeRoot>, fragment_tree: Arc<FragmentTreeRoot>) {
+pub fn begin_trace(box_tree: Arc<BoxTree>, fragment_tree: Arc<FragmentTree>) {
assert!(STATE_KEY.with(|ref r| r.borrow().is_none()));
STATE_KEY.with(|ref r| {