mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 20:24:57 +00:00
LibWeb: Bring up basic external script execution in the new parser
This only works in some narrow cases, but should be enough for our own welcome.html at least. :^)
This commit is contained in:
parent
2cb50f6750
commit
4c9c6b3a7b
7 changed files with 60 additions and 3 deletions
|
@ -40,15 +40,16 @@ public:
|
|||
virtual void children_changed() override;
|
||||
|
||||
bool is_non_blocking() const { return m_non_blocking; }
|
||||
bool is_ready_to_be_parser_executed() const { return m_ready_to_be_parser_executed; }
|
||||
|
||||
void set_parser_document(Badge<HTMLDocumentParser>, Document&);
|
||||
void set_non_blocking(Badge<HTMLDocumentParser>, bool);
|
||||
void prepare_script(Badge<HTMLDocumentParser>);
|
||||
void execute_script();
|
||||
|
||||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue