mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +00:00
LibWeb: Avoid division by zero when computing table width
Previously, a crash could occur when computing the width of a table with cells that had a percentage width of 0.
This commit is contained in:
parent
21364711da
commit
58df9c45b9
3 changed files with 33 additions and 2 deletions
|
@ -0,0 +1,28 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x28 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x12 children: not-inline
|
||||
TableWrapper <(anonymous)> at (8,8) content-size 12x12 [BFC] children: not-inline
|
||||
Box <table> at (8,8) content-size 12x12 table-box [TFC] children: not-inline
|
||||
Box <tbody> at (8,8) content-size 8x8 table-row-group children: not-inline
|
||||
Box <tr> at (10,10) content-size 8x8 table-row children: not-inline
|
||||
BlockContainer <td> at (11,11) content-size 6x6 table-cell [BFC] children: not-inline
|
||||
TableWrapper <(anonymous)> at (11,11) content-size 6x6 [BFC] children: not-inline
|
||||
Box <table> at (11,11) content-size 6x6 table-box [TFC] children: not-inline
|
||||
Box <tbody> at (11,11) content-size 2x2 table-row-group children: not-inline
|
||||
Box <tr> at (13,13) content-size 2x2 table-row children: not-inline
|
||||
BlockContainer <td> at (14,14) content-size 0x0 table-cell [BFC] children: inline
|
||||
TextNode <#text>
|
||||
|
||||
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x28]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x12]
|
||||
PaintableWithLines (TableWrapper(anonymous)) [8,8 12x12]
|
||||
PaintableBox (Box<TABLE>) [8,8 12x12]
|
||||
PaintableBox (Box<TBODY>) [8,8 8x8] overflow: [8,8 10x10]
|
||||
PaintableBox (Box<TR>) [10,10 8x8]
|
||||
PaintableWithLines (BlockContainer<TD>) [10,10 8x8]
|
||||
PaintableWithLines (TableWrapper(anonymous)) [11,11 6x6]
|
||||
PaintableBox (Box<TABLE>) [11,11 6x6]
|
||||
PaintableBox (Box<TBODY>) [11,11 2x2] overflow: [11,11 4x4]
|
||||
PaintableBox (Box<TR>) [13,13 2x2]
|
||||
PaintableWithLines (BlockContainer<TD>) [13,13 2x2]
|
Loading…
Add table
Add a link
Reference in a new issue