1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 22:57:35 +00:00

LibWeb: Take rowspan into account while table formatting

This commit is contained in:
Aliaksandr Kalenik 2022-12-04 22:44:19 +03:00 committed by Andreas Kling
parent 1c6783cd7e
commit dbf76e8ae1
3 changed files with 9 additions and 1 deletions

View file

@ -29,4 +29,11 @@ size_t TableCellBox::colspan() const
return verify_cast<DOM::Element>(*dom_node()).attribute(HTML::AttributeNames::colspan).to_uint().value_or(1);
}
size_t TableCellBox::rowspan() const
{
if (!dom_node())
return 1;
return verify_cast<DOM::Element>(*dom_node()).attribute(HTML::AttributeNames::rowspan).to_uint().value_or(1);
}
}