mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 09:06:08 +00:00
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:
parent
dc4192c149
commit
9cd4a65071
Notes:
sideshowbarker
2024-07-16 20:12:13 +09:00
Author: https://github.com/awesomekling
Commit: 9cd4a65071
Pull-request: https://github.com/SerenityOS/serenity/pull/24123
4 changed files with 11 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue