mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:47:34 +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
|
@ -48,14 +48,14 @@ public:
|
|||
|
||||
bool handle_keydown(KeyCode, unsigned modifiers, u32 code_point);
|
||||
|
||||
void set_mouse_event_tracking_layout_node(LayoutNode*);
|
||||
void set_mouse_event_tracking_layout_node(Layout::Node*);
|
||||
|
||||
private:
|
||||
bool focus_next_element();
|
||||
bool focus_previous_element();
|
||||
|
||||
LayoutDocument* layout_root();
|
||||
const LayoutDocument* layout_root() const;
|
||||
Layout::InitialContainingBlockBox* layout_root();
|
||||
const Layout::InitialContainingBlockBox* layout_root() const;
|
||||
|
||||
void dump_selection(const char* event_name) const;
|
||||
|
||||
|
@ -63,7 +63,7 @@ private:
|
|||
|
||||
bool m_in_mouse_selection { false };
|
||||
|
||||
WeakPtr<LayoutNode> m_mouse_event_tracking_layout_node;
|
||||
WeakPtr<Layout::Node> m_mouse_event_tracking_layout_node;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue