mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 04:52:23 +00:00
LibWeb: Start work towards modern CSS "display" values
Until now, we've internally thought of the CSS "display" property as a single-value property. In practice, "display" is a much more complex property that comes in a number of configurations. The most interesting one is the two-part format that describes the outside and inside behavior of a box. Switching our own internal representation towards this model will allow for much cleaner abstractions around layout and the various formatting contexts. Note that we don't *parse* two-part "display" yet, this is only about changing the internal representation of the property. Spec: https://drafts.csswg.org/css-display
This commit is contained in:
parent
1552873275
commit
85a0772147
Notes:
sideshowbarker
2024-07-18 03:00:03 +09:00
Author: https://github.com/awesomekling
Commit: 85a0772147
22 changed files with 214 additions and 161 deletions
|
@ -28,8 +28,11 @@ private:
|
|||
void push_parent(Layout::NodeWithStyle& node) { m_parent_stack.append(&node); }
|
||||
void pop_parent() { m_parent_stack.take_last(); }
|
||||
|
||||
template<CSS::Display, typename Callback>
|
||||
void for_each_in_tree_with_display(NodeWithStyle& root, Callback);
|
||||
template<CSS::Display::Internal, typename Callback>
|
||||
void for_each_in_tree_with_internal_display(NodeWithStyle& root, Callback);
|
||||
|
||||
template<CSS::Display::Inside, typename Callback>
|
||||
void for_each_in_tree_with_inside_display(NodeWithStyle& root, Callback);
|
||||
|
||||
void fixup_tables(NodeWithStyle& root);
|
||||
void remove_irrelevant_boxes(NodeWithStyle& root);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue