LibWeb: Move TraversableNavigable::m_page up to Navigable

This will allow anyone who has a Navigable to reach the Page.
This commit is contained in:
Andreas Kling 2024-04-26 14:55:54 +02:00
commit 9cd4a65071
Notes: sideshowbarker 2024-07-16 20:12:13 +09:00
4 changed files with 11 additions and 10 deletions

View file

@ -183,8 +183,11 @@ public:
};
void paint(Painting::RecordingPainter&, PaintConfig);
Page& page() { return m_page; }
Page const& page() const { return m_page; }
protected:
Navigable();
explicit Navigable(JS::NonnullGCPtr<Page>);
virtual void visit_edges(Cell::Visitor&) override;
@ -220,6 +223,8 @@ private:
// Implied link between navigable and its container.
JS::GCPtr<NavigableContainer> m_container;
JS::NonnullGCPtr<Page> m_page;
bool m_has_been_destroyed { false };
CSSPixelSize m_size;