1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:47:44 +00:00

LibWeb: Implement get_the_history_object_length_and_index()

This commit is contained in:
Aliaksandr Kalenik 2023-04-13 10:18:46 +03:00 committed by Andreas Kling
parent 09cb266cb8
commit 5b06e43938
2 changed files with 28 additions and 0 deletions

View file

@ -30,6 +30,12 @@ public:
bool running_nested_apply_history_step() const { return m_running_nested_apply_history_step; };
VisibilityState system_visibility_state() const { return m_system_visibility_state; };
struct HistoryObjectLengthAndIndex {
size_t script_history_length;
size_t script_history_index;
};
HistoryObjectLengthAndIndex get_the_history_object_length_and_index(int) const;
Vector<int> get_all_used_history_steps() const;
void clear_the_forward_session_history();