mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibManual: Allow directly obtaining any page's main section number
This has previously been incorrectly handled in a variety of applications, e.g. subsections were not accounted for.
This commit is contained in:
parent
b1eacf8801
commit
a9053618a8
Notes:
sideshowbarker
2024-07-17 07:25:39 +09:00
Author: https://github.com/kleinesfilmroellchen
Commit: a9053618a8
Pull-request: https://github.com/SerenityOS/serenity/pull/19753
Reviewed-by: https://github.com/linusg
6 changed files with 13 additions and 4 deletions
|
@ -21,6 +21,7 @@ public:
|
|||
virtual ErrorOr<String> path() const override;
|
||||
virtual ErrorOr<String> name() const override;
|
||||
virtual PageNode const* document() const override;
|
||||
virtual unsigned section_number() const override { return m_parent->section_number(); }
|
||||
|
||||
protected:
|
||||
NonnullRefPtr<SectionNode const> m_parent;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue