mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Add the HTMLTableCellElement::rowspan property
This commit is contained in:
parent
b77a0a89cf
commit
e982d6003f
10 changed files with 52 additions and 763 deletions
|
@ -41,6 +41,9 @@ pub struct TableCellFlow {
|
|||
/// The column span of this cell.
|
||||
pub column_span: u32,
|
||||
|
||||
/// The rows spanned by this cell.
|
||||
pub row_span: u32,
|
||||
|
||||
/// Whether this cell is visible. If false, the value of `empty-cells` means that we must not
|
||||
/// display this cell.
|
||||
pub visible: bool,
|
||||
|
@ -52,6 +55,7 @@ impl TableCellFlow {
|
|||
block_flow: BlockFlow::from_fragment(fragment),
|
||||
collapsed_borders: CollapsedBordersForCell::new(),
|
||||
column_span: 1,
|
||||
row_span: 1,
|
||||
visible: true,
|
||||
}
|
||||
}
|
||||
|
@ -62,6 +66,7 @@ impl TableCellFlow {
|
|||
block_flow: BlockFlow::from_fragment(fragment),
|
||||
collapsed_borders: CollapsedBordersForCell::new(),
|
||||
column_span: node.get_colspan(),
|
||||
row_span: node.get_rowspan(),
|
||||
visible: visible,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue