1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:17:35 +00:00

LibWeb: Remove inheritance of TableBox from BlockContainer

Fixup rule that table roots need to be wrapped in anonymous
block boxes need to be implemeted instead of having `TableBox`
inherited from `BlockContainer`.
This commit is contained in:
Aliaksandr Kalenik 2023-01-09 07:25:05 +03:00 committed by Andreas Kling
parent c8337e9ee8
commit e107c83a57
4 changed files with 7 additions and 7 deletions

View file

@ -10,12 +10,12 @@
namespace Web::Layout {
TableBox::TableBox(DOM::Document& document, DOM::Element* element, NonnullRefPtr<CSS::StyleProperties> style)
: Layout::BlockContainer(document, element, move(style))
: Layout::Box(document, element, move(style))
{
}
TableBox::TableBox(DOM::Document& document, DOM::Element* element, CSS::ComputedValues computed_values)
: Layout::BlockContainer(document, element, move(computed_values))
: Layout::Box(document, element, move(computed_values))
{
}