mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Add trace logs when assigning inline/block sizes
This commit is contained in:
parent
a80b962f56
commit
b978f83e52
7 changed files with 68 additions and 8 deletions
|
@ -84,6 +84,8 @@ impl Flow for MulticolFlow {
|
|||
"assign_inline_sizes({}): assigning inline_size for flow",
|
||||
"multicol"
|
||||
);
|
||||
trace!("MulticolFlow before assigning: {:?}", &self);
|
||||
|
||||
let shared_context = layout_context.shared_context();
|
||||
self.block_flow.compute_inline_sizes(shared_context);
|
||||
|
||||
|
@ -146,10 +148,13 @@ impl Flow for MulticolFlow {
|
|||
column_width,
|
||||
|_, _, _, _, _, _| {},
|
||||
);
|
||||
|
||||
trace!("MulticolFlow after assigning: {:?}", &self);
|
||||
}
|
||||
|
||||
fn assign_block_size(&mut self, ctx: &LayoutContext) {
|
||||
debug!("assign_block_size: assigning block_size for multicol");
|
||||
trace!("MulticolFlow before assigning: {:?}", &self);
|
||||
|
||||
let fragmentation_context = Some(FragmentationContext {
|
||||
this_fragment_is_empty: true,
|
||||
|
@ -193,6 +198,8 @@ impl Flow for MulticolFlow {
|
|||
None => break,
|
||||
};
|
||||
}
|
||||
|
||||
trace!("MulticolFlow after assigning: {:?}", &self);
|
||||
}
|
||||
|
||||
fn compute_stacking_relative_position(&mut self, layout_context: &LayoutContext) {
|
||||
|
@ -289,12 +296,19 @@ impl Flow for MulticolColumnFlow {
|
|||
"assign_inline_sizes({}): assigning inline_size for flow",
|
||||
"multicol column"
|
||||
);
|
||||
trace!("MulticolFlow before assigning: {:?}", &self);
|
||||
|
||||
self.block_flow.assign_inline_sizes(layout_context);
|
||||
trace!("MulticolFlow after assigning: {:?}", &self);
|
||||
}
|
||||
|
||||
fn assign_block_size(&mut self, ctx: &LayoutContext) {
|
||||
debug!("assign_block_size: assigning block_size for multicol column");
|
||||
trace!("MulticolFlow before assigning: {:?}", &self);
|
||||
|
||||
self.block_flow.assign_block_size(ctx);
|
||||
|
||||
trace!("MulticolFlow after assigning: {:?}", &self);
|
||||
}
|
||||
|
||||
fn fragment(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue