mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-27 01:50:24 +00:00
LibWeb: Expose a getter for Document's unload_counter
We need to check this value from the Navigation APIs.
This commit is contained in:
parent
268fd93352
commit
7ad45d9e71
Notes:
sideshowbarker
2024-07-16 18:06:41 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/7ad45d9e71 Pull-request: https://github.com/SerenityOS/serenity/pull/20757
1 changed files with 2 additions and 0 deletions
|
@ -528,6 +528,8 @@ public:
|
|||
using IndicatedPart = Variant<Element*, TopOfTheDocument>;
|
||||
IndicatedPart determine_the_indicated_part() const;
|
||||
|
||||
u32 unload_counter() const { return m_unload_counter; }
|
||||
|
||||
protected:
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
|
Loading…
Reference in a new issue