mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
#23330 modified performance interface's timing member to attribute
This commit is contained in:
parent
7d4996f57d
commit
2457a6be0f
1 changed files with 6 additions and 9 deletions
|
@ -34,23 +34,20 @@ partial interface Performance {
|
|||
[Throws]
|
||||
void measure(DOMString measureName, optional DOMString startMark, optional DOMString endMark);
|
||||
void clearMeasures(optional DOMString measureName);
|
||||
|
||||
|
||||
};
|
||||
|
||||
//https://w3c.github.io/resource-timing/#sec-extensions-performance-interface
|
||||
partial interface Performance {
|
||||
void clearResourceTimings ();
|
||||
void setResourceTimingBufferSize (unsigned long maxSize);
|
||||
attribute EventHandler onresourcetimingbufferfull;
|
||||
};
|
||||
// FIXME(avada): this should be deprecated, but is currently included for web compat
|
||||
// https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/NavigationTiming/Overview.html#performance-timing-attribute
|
||||
[Exposed=(Window)]
|
||||
partial interface Performance {
|
||||
PerformanceNavigationTiming timing();
|
||||
};
|
||||
|
||||
// https://w3c.github.io/navigation-timing/#extensions-to-the-performance-interface
|
||||
[Exposed=Window]
|
||||
partial interface Performance {
|
||||
[SameObject, Exposed=Window]
|
||||
[SameObject]
|
||||
readonly attribute PerformanceNavigationTiming timing;
|
||||
[SameObject]
|
||||
readonly attribute PerformanceNavigation navigation;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue