Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 40772733505bef5ce93894e6cda61196687b9593
      
https://github.com/WebKit/WebKit/commit/40772733505bef5ce93894e6cda61196687b9593
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-07-18 (Sat, 18 Jul 2026)

  Changed paths:
    M Source/JavaScriptCore/inspector/InspectorProtocolTypes.h
    M Source/WebCore/inspector/InspectorCanvas.cpp
    M Source/WebCore/inspector/InspectorCanvasArguments.cpp

  Log Message:
  -----------
  Deduplicate buildArrayForVector/mapToArray in Inspector canvas recording code
https://bugs.webkit.org/show_bug.cgi?id=319740
rdar://182580121

Reviewed by Devin Rousso.

InspectorCanvas.cpp's buildArrayForVector<T> was structurally identical
to the no-functor mapToArray overload in InspectorCanvasArguments.cpp.
Move the shared helper into InspectorProtocolTypes.h, as buildArray, so
both files use one implementation.

* Source/JavaScriptCore/inspector/InspectorProtocolTypes.h:
(Inspector::Protocol::buildArray):
* Source/WebCore/inspector/InspectorCanvas.cpp:
(WebCore::InspectorCanvas::buildInitialState):
(WebCore::buildArrayForVector): Deleted.
* Source/WebCore/inspector/InspectorCanvas.h:
(WebCore::mapToArray): Deleted.
* Source/WebCore/inspector/InspectorCanvasArguments.cpp:
(WebCore::mapToArray): Deleted.

Canonical link: https://commits.webkit.org/317481@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to