Bug 233255

Summary: Create a RecordingSwizzleType::Object to avoid duplicating data
Product: WebKit Reporter: Lauro Moura <lmoura>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: hi, inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=232780

Description Lauro Moura 2021-11-17 07:49:54 PST
bug232780 added a method that takes an array of DOMPointInit. In the proposed patch, the InspectorCanvas method creates a JSON::Object for each DOMPointInit and returns an array with RecordingSwizzleType::Array.

From the review:

> While I do think this will work, a primary goal of this entire system is to avoid duplicating data since all of it has to be serialized and sent over the Web Inspector connection (which could be communicating with an entire other device, such as when inspecting an iOS device from a macOS machine).

> As such, we probably want to create either a new `RecordingSwizzleType::DOMPointInit` or a more generic `RecordingSwizzleType::Object` so that if multiple calls to `roundRect` are made with the same `radii` argument we don't encode the same data more than once.
Comment 1 Radar WebKit Bug Importer 2021-11-24 07:50:22 PST
<rdar://problem/85728617>