Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: dd0d4ef9add2b1027a94058301a6714dee05c813
https://github.com/WebKit/WebKit/commit/dd0d4ef9add2b1027a94058301a6714dee05c813
Author: Devin Rousso <[email protected]>
Date: 2026-01-26 (Mon, 26 Jan 2026)
Changed paths:
M LayoutTests/inspector/unit-tests/map-utilities-expected.txt
M LayoutTests/inspector/unit-tests/map-utilities.html
R LayoutTests/inspector/unit-tests/weakmap-utilities-expected.txt
R LayoutTests/inspector/unit-tests/weakmap-utilities.html
M Source/WebInspectorUI/UserInterface/Base/Utilities.js
M Source/WebInspectorUI/UserInterface/Controllers/CanvasManager.js
M
Source/WebInspectorUI/UserInterface/Controllers/JavaScriptLogViewController.js
M Source/WebInspectorUI/UserInterface/Controllers/TimelineManager.js
M Source/WebInspectorUI/UserInterface/Models/CSSKeywordCompletions.js
M Source/WebInspectorUI/UserInterface/Models/ScriptTimeline.js
M Source/WebInspectorUI/UserInterface/Models/SourceMap.js
M Source/WebInspectorUI/UserInterface/Models/TimelineRecording.js
M Source/WebInspectorUI/UserInterface/Views/CPUTimelineView.js
M
Source/WebInspectorUI/UserInterface/Views/ScreenshotsTimelineOverviewGraph.js
M Source/WebInspectorUI/UserInterface/Views/ScreenshotsTimelineView.js
M Source/WebInspectorUI/UserInterface/Views/ScriptClusterTimelineView.js
M Source/WebInspectorUI/UserInterface/Views/ScriptTimelineOverviewGraph.js
Log Message:
-----------
Web Inspector: remove `Map.prototype.getOrInitialize` in favor of
`Map.prototype.getOrInsert`
https://bugs.webkit.org/show_bug.cgi?id=306234
Reviewed by Brandon Stewart and Tim Nguyen.
Use the builtin instead of a custom method now that it's fully standardized.
Drive-by: also replace a few `getOrInsertComputed(key, () => new Map)` with
`getOrInsert(key, new Map)` for simplicity.
* Source/WebInspectorUI/UserInterface/Base/Utilities.js:
(Map.prototype.getOrInitialize): Deleted.
(WeakMap.prototype.getOrInitialize): Deleted.
* Source/WebInspectorUI/UserInterface/Controllers/CanvasManager.js:
(WI.CanvasManager.prototype.canvasAdded):
(WI.CanvasManager.prototype.programCreated):
*
Source/WebInspectorUI/UserInterface/Controllers/JavaScriptLogViewController.js:
(WI.JavaScriptLogViewController.prototype._addToPendingMessages):
* Source/WebInspectorUI/UserInterface/Controllers/TimelineManager.js:
(WI.TimelineManager.prototype._processRecord):
* Source/WebInspectorUI/UserInterface/Models/CSSKeywordCompletions.js:
(WI.CSSKeywordCompletions.addCustomCompletions):
* Source/WebInspectorUI/UserInterface/Models/ScriptTimeline.js:
(WI.ScriptTimeline.prototype.updateCallingContextTrees):
* Source/WebInspectorUI/UserInterface/Models/SourceMap.js:
(WI.SourceMap):
* Source/WebInspectorUI/UserInterface/Models/TimelineRecording.js:
(WI.TimelineRecording.prototype.updateCallingContextTrees):
* Source/WebInspectorUI/UserInterface/Views/CPUTimelineView.js:
(WI.CPUTimelineView.prototype._layoutSourcesSection):
* Source/WebInspectorUI/UserInterface/Views/ScreenshotsTimelineOverviewGraph.js:
(WI.ScreenshotsTimelineOverviewGraph.prototype.layout):
* Source/WebInspectorUI/UserInterface/Views/ScreenshotsTimelineView.js:
(WI.ScreenshotsTimelineView.prototype.layout):
* Source/WebInspectorUI/UserInterface/Views/ScriptClusterTimelineView.js:
(WI.ScriptClusterTimelineView.prototype._updateCurrentContentView):
* Source/WebInspectorUI/UserInterface/Views/ScriptTimelineOverviewGraph.js:
(WI.ScriptTimelineOverviewGraph.prototype.layout):
(WI.ScriptTimelineOverviewGraph.prototype._scriptTimelineRecordAdded):
* LayoutTests/inspector/unit-tests/map-utilities.html:
* LayoutTests/inspector/unit-tests/map-utilities-expected.txt:
* LayoutTests/inspector/unit-tests/weakmap-utilities.html: Removed.
* LayoutTests/inspector/unit-tests/weakmap-utilities-expected.txt: Removed.
Canonical link: https://commits.webkit.org/306223@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications