mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
parent
4c0816b002
commit
769f11f9ae
8 changed files with 199 additions and 24 deletions
|
@ -12,26 +12,6 @@
|
|||
#include <LibWeb/Layout/InlineFormattingContext.h>
|
||||
#include <LibWeb/Layout/TableFormattingContext.h>
|
||||
|
||||
struct GridPosition {
|
||||
size_t x;
|
||||
size_t y;
|
||||
};
|
||||
|
||||
inline bool operator==(GridPosition const& a, GridPosition const& b)
|
||||
{
|
||||
return a.x == b.x && a.y == b.y;
|
||||
}
|
||||
|
||||
namespace AK {
|
||||
template<>
|
||||
struct Traits<GridPosition> : public GenericTraits<GridPosition> {
|
||||
static unsigned hash(GridPosition const& key)
|
||||
{
|
||||
return pair_int_hash(key.x, key.y);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
namespace Web::Layout {
|
||||
|
||||
TableFormattingContext::TableFormattingContext(LayoutState& state, Box const& root, FormattingContext* parent)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue