mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:07:36 +00:00
LibWeb: Table box width should be relative to wrapper containing block
This commit is contained in:
parent
709fe01f52
commit
80578ead45
2 changed files with 8 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include <AK/Forward.h>
|
||||
#include <LibWeb/Layout/FormattingContext.h>
|
||||
#include <LibWeb/Layout/TableWrapper.h>
|
||||
|
||||
namespace Web::Layout {
|
||||
|
||||
|
@ -20,6 +21,10 @@ public:
|
|||
virtual CSSPixels automatic_content_height() const override;
|
||||
|
||||
TableBox const& table_box() const { return static_cast<TableBox const&>(context_box()); }
|
||||
TableWrapper const& table_wrapper() const
|
||||
{
|
||||
return verify_cast<TableWrapper>(*table_box().containing_block());
|
||||
}
|
||||
|
||||
private:
|
||||
void calculate_row_column_grid(Box const&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue