mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +00:00
LibWeb: Rename LayoutNode classes and move them into Layout namespace
Bring the names of various boxes closer to spec language. This should hopefully make things easier to understand and hack on. :^) Some notable changes: - LayoutNode -> Layout::Node - LayoutBox -> Layout::Box - LayoutBlock -> Layout::BlockBox - LayoutReplaced -> Layout::ReplacedBox - LayoutDocument -> Layout::InitialContainingBlockBox - LayoutText -> Layout::TextNode - LayoutInline -> Layout::InlineNode Note that this is not strictly a "box tree" as we also hang inline/text nodes in the same tree, and they don't generate boxes. (Instead, they contribute line box fragments to their containing block!)
This commit is contained in:
parent
f358f2255f
commit
5aeab9878e
114 changed files with 863 additions and 880 deletions
|
@ -33,7 +33,7 @@ namespace Web::Layout {
|
|||
|
||||
class BlockFormattingContext : public FormattingContext {
|
||||
public:
|
||||
explicit BlockFormattingContext(LayoutBox& containing_block);
|
||||
explicit BlockFormattingContext(Box& containing_block);
|
||||
~BlockFormattingContext();
|
||||
|
||||
virtual void run(LayoutMode) override;
|
||||
|
@ -41,21 +41,21 @@ public:
|
|||
bool is_initial() const;
|
||||
|
||||
protected:
|
||||
void compute_width(LayoutBox&);
|
||||
void compute_height(LayoutBox&);
|
||||
void compute_width(Box&);
|
||||
void compute_height(Box&);
|
||||
|
||||
private:
|
||||
void compute_width_for_absolutely_positioned_block(LayoutBox&);
|
||||
void compute_width_for_absolutely_positioned_block(Box&);
|
||||
|
||||
void layout_initial_containing_block(LayoutMode);
|
||||
void layout_block_level_children(LayoutMode);
|
||||
void layout_inline_children(LayoutMode);
|
||||
void layout_absolutely_positioned_descendants();
|
||||
|
||||
void place_block_level_replaced_element_in_normal_flow(LayoutBox&);
|
||||
void place_block_level_non_replaced_element_in_normal_flow(LayoutBox&);
|
||||
void place_block_level_replaced_element_in_normal_flow(Box&);
|
||||
void place_block_level_non_replaced_element_in_normal_flow(Box&);
|
||||
|
||||
void layout_absolutely_positioned_descendant(LayoutBox&);
|
||||
void layout_absolutely_positioned_descendant(Box&);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue