mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:27:45 +00:00
LibWeb: Give DOM::Node a direct pointer to its Paintable
Instead of going via the layout tree.
This commit is contained in:
parent
25375bf1d5
commit
3d7c880a42
3 changed files with 14 additions and 6 deletions
|
@ -187,6 +187,8 @@ public:
|
|||
Painting::Paintable const* paintable() const;
|
||||
Painting::Paintable* paintable();
|
||||
|
||||
void set_paintable(JS::GCPtr<Painting::Paintable>);
|
||||
|
||||
void set_layout_node(Badge<Layout::Node>, JS::NonnullGCPtr<Layout::Node>);
|
||||
void detach_layout_node(Badge<Layout::TreeBuilder>);
|
||||
|
||||
|
@ -671,6 +673,7 @@ protected:
|
|||
|
||||
JS::GCPtr<Document> m_document;
|
||||
JS::GCPtr<Layout::Node> m_layout_node;
|
||||
JS::GCPtr<Painting::Paintable> m_paintable;
|
||||
NodeType m_type { NodeType::INVALID };
|
||||
bool m_needs_style_update { false };
|
||||
bool m_child_needs_style_update { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue