[webkit-changes] [WebKit/WebKit] 534e11: [WK2] Clean up fixed-length data encoding in Encod...

Žan Doberšek noreply at github.com
Tue Feb 14 07:03:41 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 534e11ed95f096c59f8745a9caeaa3cc451670a7
      https://github.com/WebKit/WebKit/commit/534e11ed95f096c59f8745a9caeaa3cc451670a7
  Author: Žan Doberšek <zdobersek at igalia.com>
  Date:   2023-02-14 (Tue, 14 Feb 2023)

  Changed paths:
    M Source/WebKit/Platform/IPC/Encoder.cpp
    M Source/WebKit/Platform/IPC/Encoder.h
    M Source/WebKit/Platform/IPC/StreamConnectionEncoder.h
    M Source/WebKit/WebProcess/WebPage/IPCTestingAPI.cpp

  Log Message:
  -----------
  [WK2] Clean up fixed-length data encoding in Encoder, StreamConnectionEncoder
https://bugs.webkit.org/show_bug.cgi?id=251671

Reviewed by Kimmo Kinnunen.

Remove the encodeFixedLengthData() methods on the Encoder and
StreamConnectionEncoder classes, moving the logic into the corresponding
encodeSpan() methods.

One remaining encodeFixedLengthData() call-site in IPCTestingAPI is amended.

* Source/WebKit/Platform/IPC/Encoder.cpp:
(IPC::Encoder::encodeFixedLengthData): Deleted.
* Source/WebKit/Platform/IPC/Encoder.h:
(IPC::Encoder::encodeSpan):
* Source/WebKit/Platform/IPC/StreamConnectionEncoder.h:
* Source/WebKit/WebProcess/WebPage/IPCTestingAPI.cpp:
(WebKit::IPCTestingAPI::encodeTypedArray):

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




More information about the webkit-changes mailing list