Changeset 278665 in webkit
- Timestamp:
- Jun 9, 2021 10:01:18 AM (14 months ago)
- Location:
- trunk
- Files:
-
- 8 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/hr-time/idlharness.any-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/hr-time/idlharness.any.worker-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/hr-time/window-worker-timeOrigin.window-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/page/Performance.cpp (modified) (1 diff)
-
Source/WebCore/page/Performance.h (modified) (1 diff)
-
Source/WebCore/page/Performance.idl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r278648 r278665 1 2021-06-09 Alex Christensen <achristensen@webkit.org> 2 3 Performance API: Implement performance.timeOrigin 4 https://bugs.webkit.org/show_bug.cgi?id=174862 5 6 Reviewed by Ryosuke Niwa. 7 8 * web-platform-tests/hr-time/idlharness.any-expected.txt: 9 * web-platform-tests/hr-time/idlharness.any.worker-expected.txt: 10 * web-platform-tests/hr-time/window-worker-timeOrigin.window-expected.txt: 11 1 12 2021-06-08 Rob Buis <rbuis@igalia.com> 2 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/hr-time/idlharness.any-expected.txt
r267651 r278665 19 19 PASS Performance interface: existence and properties of interface prototype object's @@unscopables property 20 20 PASS Performance interface: operation now() 21 FAIL Performance interface: attribute timeOrigin assert_true: The prototype object must have a property "timeOrigin" expected true got false 21 PASS Performance interface: attribute timeOrigin 22 22 PASS Performance interface: operation toJSON() 23 23 PASS Performance must be primary interface of performance 24 24 PASS Stringification of performance 25 25 PASS Performance interface: performance must inherit property "now()" with the proper type 26 FAIL Performance interface: performance must inherit property "timeOrigin" with the proper type assert_inherits: property "timeOrigin" not found in prototype chain 26 PASS Performance interface: performance must inherit property "timeOrigin" with the proper type 27 27 PASS Performance interface: performance must inherit property "toJSON()" with the proper type 28 FAIL Performance interface: default toJSON operation on performance assert_true: property "timeOrigin" should be present in the output of Performance.prototype.toJSON() expected true got false28 PASS Performance interface: default toJSON operation on performance 29 29 PASS Window interface: attribute performance 30 30 PASS Window interface: self must inherit property "performance" with the proper type -
trunk/LayoutTests/imported/w3c/web-platform-tests/hr-time/idlharness.any.worker-expected.txt
r267651 r278665 19 19 PASS Performance interface: existence and properties of interface prototype object's @@unscopables property 20 20 PASS Performance interface: operation now() 21 FAIL Performance interface: attribute timeOrigin assert_true: The prototype object must have a property "timeOrigin" expected true got false 21 PASS Performance interface: attribute timeOrigin 22 22 PASS Performance interface: operation toJSON() 23 23 PASS Performance must be primary interface of performance 24 24 PASS Stringification of performance 25 25 PASS Performance interface: performance must inherit property "now()" with the proper type 26 FAIL Performance interface: performance must inherit property "timeOrigin" with the proper type assert_inherits: property "timeOrigin" not found in prototype chain 26 PASS Performance interface: performance must inherit property "timeOrigin" with the proper type 27 27 PASS Performance interface: performance must inherit property "toJSON()" with the proper type 28 FAIL Performance interface: default toJSON operation on performance assert_true: property "timeOrigin" should be present in the output of Performance.prototype.toJSON() expected true got false28 PASS Performance interface: default toJSON operation on performance 29 29 PASS Window interface: existence and properties of interface object 30 30 PASS WorkerGlobalScope interface: attribute performance -
trunk/LayoutTests/imported/w3c/web-platform-tests/hr-time/window-worker-timeOrigin.window-expected.txt
r267314 r278665 1 1 2 FAIL timeOrigin and now() should be correctly ordered between window and worker assert_less_than: Document timeOrigin must be earlier than worker timeOrigin expected a number but got a "undefined" 2 PASS timeOrigin and now() should be correctly ordered between window and worker 3 3 -
trunk/Source/WebCore/ChangeLog
r278664 r278665 1 2021-06-09 Alex Christensen <achristensen@webkit.org> 2 3 Performance API: Implement performance.timeOrigin 4 https://bugs.webkit.org/show_bug.cgi?id=174862 5 6 Reviewed by Ryosuke Niwa. 7 8 * page/Performance.cpp: 9 (WebCore::Performance::timeOrigin const): 10 * page/Performance.h: 11 * page/Performance.idl: 12 1 13 2021-06-09 Simon Fraser <simon.fraser@apple.com> 2 14 -
trunk/Source/WebCore/page/Performance.cpp
r278391 r278665 80 80 } 81 81 82 DOMHighResTimeStamp Performance::timeOrigin() const 83 { 84 return reduceTimeResolution(m_timeOrigin.approximateWallTime().secondsSinceEpoch()).milliseconds(); 85 } 86 82 87 ReducedResolutionSeconds Performance::nowInReducedResolutionSeconds() const 83 88 { -
trunk/Source/WebCore/page/Performance.h
r278391 r278665 76 76 77 77 DOMHighResTimeStamp now() const; 78 DOMHighResTimeStamp timeOrigin() const; 78 79 ReducedResolutionSeconds nowInReducedResolutionSeconds() const; 79 80 -
trunk/Source/WebCore/page/Performance.idl
r267408 r278665 39 39 ] interface Performance : EventTarget { 40 40 DOMHighResTimeStamp now(); 41 // FIXME: Implement 'timeOrigin' - https://webkit.org/b/174862 42 // readonly attribute DOMHighResTimeStamp timeOrigin; 41 readonly attribute DOMHighResTimeStamp timeOrigin; 43 42 [Default] object toJSON(); 44 43 };
Note: See TracChangeset
for help on using the changeset viewer.