Przeglądaj źródła

LibWeb: Expose a getter for Document's unload_counter

We need to check this value from the Navigation APIs.
Andrew Kaster 1 rok temu
rodzic
commit
7ad45d9e71
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      Userland/Libraries/LibWeb/DOM/Document.h

+ 2 - 0
Userland/Libraries/LibWeb/DOM/Document.h

@@ -528,6 +528,8 @@ public:
     using IndicatedPart = Variant<Element*, TopOfTheDocument>;
     using IndicatedPart = Variant<Element*, TopOfTheDocument>;
     IndicatedPart determine_the_indicated_part() const;
     IndicatedPart determine_the_indicated_part() const;
 
 
+    u32 unload_counter() const { return m_unload_counter; }
+
 protected:
 protected:
     virtual void initialize(JS::Realm&) override;
     virtual void initialize(JS::Realm&) override;
     virtual void visit_edges(Cell::Visitor&) override;
     virtual void visit_edges(Cell::Visitor&) override;