mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 01:08:48 +00:00
LibWeb: Remove outdated old_queue_global_event_with_document
The FIXME here describes an old constraint on JS Interpreters which no longer holds. It hails from a time when we had the global object and JS realm attached to the document.
This commit is contained in:
parent
9808f8164f
commit
6e64bf5464
Notes:
sideshowbarker
2024-07-18 04:38:32 +09:00
Author: https://github.com/ADKaster
Commit: 6e64bf5464
Pull-request: https://github.com/SerenityOS/serenity/pull/20817
4 changed files with 4 additions and 12 deletions
|
@ -276,7 +276,7 @@ void HTMLParser::the_end()
|
|||
}
|
||||
|
||||
// 6. Queue a global task on the DOM manipulation task source given the Document's relevant global object to run the following substeps:
|
||||
old_queue_global_task_with_document(HTML::Task::Source::DOMManipulation, *m_document, [document = m_document] {
|
||||
queue_global_task(HTML::Task::Source::DOMManipulation, *m_document, [document = m_document] {
|
||||
// 1. Set the Document's load timing info's DOM content loaded event start time to the current high resolution time given the Document's relevant global object.
|
||||
document->load_timing_info().dom_content_loaded_event_start_time = HighResolutionTime::unsafe_shared_current_time();
|
||||
|
||||
|
@ -305,7 +305,7 @@ void HTMLParser::the_end()
|
|||
});
|
||||
|
||||
// 9. Queue a global task on the DOM manipulation task source given the Document's relevant global object to run the following steps:
|
||||
old_queue_global_task_with_document(HTML::Task::Source::DOMManipulation, *m_document, [document = m_document] {
|
||||
queue_global_task(HTML::Task::Source::DOMManipulation, *m_document, [document = m_document] {
|
||||
// 1. Update the current document readiness to "complete".
|
||||
document->update_readiness(HTML::DocumentReadyState::Complete);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue