mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 06:09:08 +00:00
LibWeb: Use "current high resolution time" AO where relevant
And updating some spec comments to latest spec where it is not relevant.
This commit is contained in:
parent
33bd6cfc2a
commit
51a52a867c
Notes:
sideshowbarker
2024-07-16 23:59:28 +09:00
Author: https://github.com/shannonbooth
Commit: 51a52a867c
Pull-request: https://github.com/SerenityOS/serenity/pull/23935
6 changed files with 13 additions and 17 deletions
|
@ -2148,7 +2148,7 @@ void Document::update_readiness(HTML::DocumentReadyState readiness_value)
|
|||
// 3. If document is associated with an HTML parser, then:
|
||||
if (m_parser) {
|
||||
// 1. Let now be the current high resolution time given document's relevant global object.
|
||||
auto now = HighResolutionTime::unsafe_shared_current_time();
|
||||
auto now = HighResolutionTime::current_high_resolution_time(relevant_global_object(*this));
|
||||
|
||||
// 2. If readinessValue is "complete", and document's load timing info's DOM complete time is 0,
|
||||
// then set document's load timing info's DOM complete time to now.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue