mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +00:00
LibWeb: Add partial implementation of border conflict resolution
Fix handling of border style specified per column as well.
This commit is contained in:
parent
6c2712764d
commit
8090adf268
9 changed files with 282 additions and 16 deletions
|
@ -117,6 +117,9 @@ struct LayoutState {
|
|||
void add_floating_descendant(Box const& box) { m_floating_descendants.set(&box); }
|
||||
auto const& floating_descendants() const { return m_floating_descendants; }
|
||||
|
||||
void set_override_borders_data(Painting::BordersData const& override_borders_data) { m_override_borders_data = override_borders_data; };
|
||||
auto const& override_borders_data() const { return m_override_borders_data; }
|
||||
|
||||
private:
|
||||
AvailableSize available_width_inside() const;
|
||||
AvailableSize available_height_inside() const;
|
||||
|
@ -130,6 +133,8 @@ struct LayoutState {
|
|||
bool m_has_definite_height { false };
|
||||
|
||||
HashTable<JS::GCPtr<Box const>> m_floating_descendants;
|
||||
|
||||
Optional<Painting::BordersData> m_override_borders_data;
|
||||
};
|
||||
|
||||
void commit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue