mirror of
https://github.com/servo/servo.git
synced 2025-07-15 03:13:41 +01:00
Show overflow for #8118.
This commit is contained in:
parent
381317f658
commit
2b6e897cd1
4 changed files with 54 additions and 1 deletions
|
@ -153,7 +153,15 @@ impl Flow for ListItemFlow {
|
|||
}
|
||||
|
||||
fn compute_overflow(&self) -> Rect<Au> {
|
||||
self.block_flow.compute_overflow()
|
||||
let mut overflow = self.block_flow.compute_overflow();
|
||||
let flow_size = self.block_flow.base.position.size.to_physical(self.block_flow.base.writing_mode);
|
||||
let relative_containing_block_size =
|
||||
&self.block_flow.base.early_absolute_position_info.relative_containing_block_size;
|
||||
|
||||
for fragment in &self.marker_fragments {
|
||||
overflow = overflow.union(&fragment.compute_overflow(&flow_size, &relative_containing_block_size))
|
||||
}
|
||||
overflow
|
||||
}
|
||||
|
||||
fn generated_containing_block_size(&self, flow: OpaqueFlow) -> LogicalSize<Au> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue