mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
Performance observers better, not perfect
This commit is contained in:
parent
d0f64d9d56
commit
6d15c0682d
14 changed files with 176 additions and 205 deletions
|
@ -7,8 +7,9 @@
|
|||
*/
|
||||
|
||||
dictionary PerformanceObserverInit {
|
||||
required sequence<DOMString> entryTypes;
|
||||
boolean buffered = false;
|
||||
sequence<DOMString> entryTypes;
|
||||
DOMString type;
|
||||
boolean buffered;
|
||||
};
|
||||
|
||||
callback PerformanceObserverCallback = void (PerformanceObserverEntryList entries, PerformanceObserver observer);
|
||||
|
@ -17,6 +18,8 @@ callback PerformanceObserverCallback = void (PerformanceObserverEntryList entrie
|
|||
interface PerformanceObserver {
|
||||
[Throws] constructor(PerformanceObserverCallback callback);
|
||||
[Throws]
|
||||
void observe(PerformanceObserverInit options);
|
||||
void observe(optional PerformanceObserverInit options = {});
|
||||
void disconnect();
|
||||
PerformanceEntryList takeRecords();
|
||||
// [SameObject] static readonly attribute FrozenArray<DOMString> supportedEntryTypes;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue