Skip to content

Commit f1db7c6

Browse files
committed
Bug 1735098 - Implement EpochTimeStamp from HR-Time r=edgar
Add the EpochTimeStamp, which can be used to incrementally rename/remove DOMTimeStamp. See also w3c/hr-time#124 and whatwg/webidl#1021 Differential Revision: https://phabricator.services.mozilla.com/D128030
1 parent 14b9678 commit f1db7c6

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

dom/bindings/parser/WebIDL.py

-1
Original file line numberDiff line numberDiff line change
@@ -8668,7 +8668,6 @@ def reset(self):
86688668

86698669
# Builtin IDL defined by WebIDL
86708670
_builtins = """
8671-
typedef unsigned long long DOMTimeStamp;
86728671
typedef (ArrayBufferView or ArrayBuffer) BufferSource;
86738672
"""
86748673

dom/imptests/idlharness.js

+1
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ IdlArray.prototype.assert_type_is = function(value, type)
416416
return;
417417

418418
case "unsigned long long":
419+
case "EpochTimeStamp":
419420
case "DOMTimeStamp":
420421
assert_equals(typeof value, "number");
421422
assert_true(0 <= value, "unsigned long long is negative");

dom/interfaces/base/domstubs.idl

+2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ class nsWrapperCache;
1111

1212
[ptr] native nsWrapperCachePtr(nsWrapperCache);
1313

14+
// DOMTimeStamp is deprecated, use EpochTimeStamp instead.
1415
typedef unsigned long long DOMTimeStamp;
16+
typedef unsigned long long EpochTimeStamp;
1517
typedef double DOMHighResTimeStamp;
1618
typedef unsigned long long nsViewID;
1719

dom/webidl/Performance.webidl

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
* W3C liability, trademark and document use rules apply.
1515
*/
1616

17+
// DOMTimeStamp is deprecated, use EpochTimeStamp instead.
18+
typedef unsigned long long DOMTimeStamp;
19+
typedef unsigned long long EpochTimeStamp;
1720
typedef double DOMHighResTimeStamp;
1821
typedef sequence <PerformanceEntry> PerformanceEntryList;
1922

0 commit comments

Comments
 (0)