mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 05:52:53 +00:00
LibWeb: Prefix AK::Duration with AK Namespace
This commit is contained in:
parent
2fa9ec20bd
commit
b20a1d0fcd
Notes:
sideshowbarker
2024-07-18 23:46:42 +09:00
Author: https://github.com/ADKaster
Commit: b20a1d0fcd
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/676
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/trflynn89 ✅
16 changed files with 39 additions and 39 deletions
|
@ -332,7 +332,7 @@ ExecuteScriptResultSerialized execute_async_script(Web::Page& page, ByteString c
|
|||
auto start = MonotonicTime::now();
|
||||
|
||||
auto has_timed_out = [&] {
|
||||
return timeout.has_value() && (MonotonicTime::now() - start) > Duration::from_seconds(static_cast<i64>(*timeout));
|
||||
return timeout.has_value() && (MonotonicTime::now() - start) > AK::Duration::from_seconds(static_cast<i64>(*timeout));
|
||||
};
|
||||
|
||||
// AD-HOC: An execution context is required for Promise creation hooks.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue