mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-31 13:48:25 +00:00
LibWeb: Report performance based timestamps relative to ESO time origin
This commit is contained in:
committed by
Alexander Kalenik
parent
8963e62a5e
commit
7488136a51
@@ -8,6 +8,7 @@
|
||||
#include <LibWeb/Bindings/PerformanceMarkPrototype.h>
|
||||
#include <LibWeb/HTML/StructuredSerialize.h>
|
||||
#include <LibWeb/HTML/Window.h>
|
||||
#include <LibWeb/HighResolutionTime/Performance.h>
|
||||
#include <LibWeb/HighResolutionTime/TimeOrigin.h>
|
||||
#include <LibWeb/NavigationTiming/EntryNames.h>
|
||||
#include <LibWeb/PerformanceTimeline/EntryTypes.h>
|
||||
@@ -68,8 +69,7 @@ WebIDL::ExceptionOr<GC::Ref<PerformanceMark>> PerformanceMark::construct_impl(JS
|
||||
}
|
||||
// 2. Otherwise, set it to the value that would be returned by the Performance object's now() method.
|
||||
else {
|
||||
// FIXME: Performance#now doesn't currently use TimeOrigin's functions, update this and Performance#now to match Performance#now's specification.
|
||||
start_time = HighResolutionTime::unsafe_shared_current_time();
|
||||
start_time = HighResolutionTime::current_high_resolution_time(current_principal_global_object);
|
||||
}
|
||||
|
||||
// 6. Set entry's duration attribute to 0.
|
||||
|
||||
Reference in New Issue
Block a user