mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-25 02:38:59 +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
Notes:
sideshowbarker
2024-07-17 10:54:57 +09:00
Author: https://github.com/axgallo
Commit: 8090adf268
Pull-request: https://github.com/SerenityOS/serenity/pull/19256
Reviewed-by: https://github.com/awesomekling
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