diff options
Diffstat (limited to 'components/layout')
-rw-r--r-- | components/layout/construct.rs | 2 | ||||
-rw-r--r-- | components/layout/fragment.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs index d3e568b1076..12eb258f8f5 100644 --- a/components/layout/construct.rs +++ b/components/layout/construct.rs @@ -1352,7 +1352,7 @@ impl<'a> PostorderNodeMutTraversal for FlowConstructor<'a> { } }; - debug!("building flow for node: {:?} {:?} {:?}", display, float, node.type_id()); + debug!("building flow for node: {:?} {:?} {:?} {:?}", display, float, positioning, node.type_id()); // Switch on display and floatedness. match (display, float, positioning) { diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs index 6f33dd5be17..91cc9ddfb26 100644 --- a/components/layout/fragment.rs +++ b/components/layout/fragment.rs @@ -1802,7 +1802,7 @@ impl Fragment { block_size_above_baseline: computed_block_size + self.border_padding.block_start_end(), depth_below_baseline: Au(0), - ascent: computed_block_size + self.border_padding.block_end, + ascent: computed_block_size + self.border_padding.block_start_end(), } } SpecificFragmentInfo::ScannedText(ref text_fragment) => { |