mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
Clamp resolution in PerformanceNavigationTiming.
This commit is contained in:
parent
da75ad73e0
commit
d37f6a30b3
1 changed files with 9 additions and 8 deletions
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "mozilla/dom/PerformanceNavigationTiming.h"
|
||||
#include "mozilla/dom/PerformanceNavigationTimingBinding.h"
|
||||
#include "mozilla/TimerClamping.h"
|
||||
|
||||
using namespace mozilla::dom;
|
||||
|
||||
|
|
@ -24,49 +25,49 @@ PerformanceNavigationTiming::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aG
|
|||
DOMHighResTimeStamp
|
||||
PerformanceNavigationTiming::UnloadEventStart() const
|
||||
{
|
||||
return mTiming->GetDOMTiming()->GetUnloadEventStartHighRes();
|
||||
return TimerClamping::ReduceMsTimeValue(mTiming->GetDOMTiming()->GetUnloadEventStartHighRes());
|
||||
}
|
||||
|
||||
DOMHighResTimeStamp
|
||||
PerformanceNavigationTiming::UnloadEventEnd() const
|
||||
{
|
||||
return mTiming->GetDOMTiming()->GetUnloadEventEndHighRes();
|
||||
return TimerClamping::ReduceMsTimeValue(mTiming->GetDOMTiming()->GetUnloadEventEndHighRes());
|
||||
}
|
||||
|
||||
DOMHighResTimeStamp
|
||||
PerformanceNavigationTiming::DomInteractive() const
|
||||
{
|
||||
return mTiming->GetDOMTiming()->GetDomInteractiveHighRes();
|
||||
return TimerClamping::ReduceMsTimeValue(mTiming->GetDOMTiming()->GetDomInteractiveHighRes());
|
||||
}
|
||||
|
||||
DOMHighResTimeStamp
|
||||
PerformanceNavigationTiming::DomContentLoadedEventStart() const
|
||||
{
|
||||
return mTiming->GetDOMTiming()->GetDomContentLoadedEventStartHighRes();
|
||||
return TimerClamping::ReduceMsTimeValue(mTiming->GetDOMTiming()->GetDomContentLoadedEventStartHighRes());
|
||||
}
|
||||
|
||||
DOMHighResTimeStamp
|
||||
PerformanceNavigationTiming::DomContentLoadedEventEnd() const
|
||||
{
|
||||
return mTiming->GetDOMTiming()->GetDomContentLoadedEventEndHighRes();
|
||||
return TimerClamping::ReduceMsTimeValue(mTiming->GetDOMTiming()->GetDomContentLoadedEventEndHighRes());
|
||||
}
|
||||
|
||||
DOMHighResTimeStamp
|
||||
PerformanceNavigationTiming::DomComplete() const
|
||||
{
|
||||
return mTiming->GetDOMTiming()->GetDomCompleteHighRes();
|
||||
return TimerClamping::ReduceMsTimeValue(mTiming->GetDOMTiming()->GetDomCompleteHighRes());
|
||||
}
|
||||
|
||||
DOMHighResTimeStamp
|
||||
PerformanceNavigationTiming::LoadEventStart() const
|
||||
{
|
||||
return mTiming->GetDOMTiming()->GetLoadEventStartHighRes();
|
||||
return TimerClamping::ReduceMsTimeValue(mTiming->GetDOMTiming()->GetLoadEventStartHighRes());
|
||||
}
|
||||
|
||||
DOMHighResTimeStamp
|
||||
PerformanceNavigationTiming::LoadEventEnd() const
|
||||
{
|
||||
return mTiming->GetDOMTiming()->GetLoadEventEndHighRes();
|
||||
return TimerClamping::ReduceMsTimeValue(mTiming->GetDOMTiming()->GetLoadEventEndHighRes());
|
||||
}
|
||||
|
||||
NavigationType
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue