1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:17:35 +00:00

LibWeb: Add the PageTransitionEvent interface and fire "pageshow" events

We now fire "pageshow" events at the appropriate time during document
loading (done by the parser.)

Note that there are no corresponding "pagehide" events yet.
This commit is contained in:
Andreas Kling 2021-09-26 12:39:27 +02:00
parent 508edcd217
commit 831fdcaabc
7 changed files with 70 additions and 4 deletions

View file

@ -83,6 +83,8 @@ public:
float scroll_x() const;
float scroll_y() const;
void fire_a_page_transition_event(FlyString event_name, bool persisted);
private:
explicit Window(Document&);