Sfoglia il codice sorgente

LibWeb: Add step property in SessionHistoryEntry

Aliaksandr Kalenik 2 anni fa
parent
commit
74ab8ec4f0
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. 8 0
      Userland/Libraries/LibWeb/HTML/SessionHistoryEntry.h

+ 8 - 0
Userland/Libraries/LibWeb/HTML/SessionHistoryEntry.h

@@ -32,6 +32,14 @@ struct SessionHistoryEntry final : public JS::Cell {
 
     void visit_edges(Cell::Visitor&) override;
 
+    enum class Pending {
+        Tag,
+    };
+
+    // https://html.spec.whatwg.org/multipage/browsing-the-web.html#she-step
+    // step, a non-negative integer or "pending", initially "pending".
+    Variant<int, Pending> step { Pending::Tag };
+
     // URL, a URL
     AK::URL url;