1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 07:44:57 +00:00

LibWeb: Implement immediate execution in HTMLScriptElement preparation

In some cases, Dr. HTML says we should execute the script right away
even if other scripts are running.
This commit is contained in:
Andreas Kling 2020-05-26 15:55:18 +02:00
parent ecd25ce6c7
commit 7bb69bb9bf
2 changed files with 16 additions and 2 deletions

View file

@ -48,6 +48,7 @@ public:
private:
void script_became_ready();
void when_the_script_is_ready(Function<void()>);
void execute_script();
WeakPtr<Document> m_parser_document;
WeakPtr<Document> m_preparation_time_document;