Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 34c12d7629562b966ace148545471e3c3a696e51
https://github.com/WebKit/WebKit/commit/34c12d7629562b966ace148545471e3c3a696e51
Author: Ahmad Saleem <[email protected]>
Date: 2026-07-03 (Fri, 03 Jul 2026)
Changed paths:
M Source/WebCore/inspector/agents/InspectorCanvasAgent.cpp
Log Message:
-----------
[Web Inspector] didChangeCanvasSize/didChangeCanvasMemory have a vestigial
always-true null check on inspectorCanvas
https://bugs.webkit.org/show_bug.cgi?id=318559
rdar://181331996
Reviewed by Devin Rousso.
InspectorCanvasAgent::didChangeCanvasSize() and didChangeCanvasMemory()
each declared a null RefPtr<InspectorCanvas> and then guarded the
findInspectorCanvas() lookup behind `if (!inspectorCanvas)`, which is
unconditionally true since the variable was just default-constructed to
null. Assign the lookup result directly, matching the surrounding
canvasChanged() and canvasDestroyed() methods. No change in behavior.
* Source/WebCore/inspector/agents/InspectorCanvasAgent.cpp:
(WebCore::InspectorCanvasAgent::didChangeCanvasSize):
(WebCore::InspectorCanvasAgent::didChangeCanvasMemory):
Canonical link: https://commits.webkit.org/316489@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications