[webkit-changes] [WebKit/WebKit] 50287c: Remove unnecessary attributes from *.serialization...

Alex Christensen noreply at github.com
Thu Jul 27 18:42:52 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 50287cebf65d21fd47c4926000d7a51e26a18613
      https://github.com/WebKit/WebKit/commit/50287cebf65d21fd47c4926000d7a51e26a18613
  Author: Alex Christensen <achristensen at apple.com>
  Date:   2023-07-27 (Thu, 27 Jul 2023)

  Changed paths:
    M Source/WebKit/Scripts/generate-serializers.py
    M Source/WebKit/Scripts/webkit/tests/GeneratedSerializers.cpp
    M Source/WebKit/Scripts/webkit/tests/GeneratedSerializers.h
    M Source/WebKit/Scripts/webkit/tests/SerializedTypeInfo.cpp
    M Source/WebKit/Scripts/webkit/tests/TestSerializedType.serialization.in
    M Source/WebKit/Shared/cf/ArgumentCodersCF.cpp
    M Source/WebKit/Shared/cf/ArgumentCodersCF.h
    M Source/WebKit/Shared/mac/SecItemResponseData.serialization.in
    M Source/WebKit/Shared/mac/WebHitTestResultPlatformData.serialization.in

  Log Message:
  -----------
  Remove unnecessary attributes from *.serialization.in files
https://bugs.webkit.org/show_bug.cgi?id=259559
rdar://112975705

Reviewed by Youenn Fablet.

Nullable is only used when serializing RetainPtr, which can already handle null state.
SoftLinkedClass does the same thing as SecureCodingAllowed.  Remove the former in favor of the latter.
Add SecureCodingAllowed to the comment documentation at the beginning of generate-serializers.py.

* Source/WebKit/Scripts/generate-serializers.py:
(encode_type):
(decode_type):
(generate_serialized_type_info):
(parse_serialized_types):
* Source/WebKit/Scripts/webkit/tests/GeneratedSerializers.cpp:
(IPC::ArgumentCoder<Namespace::Subnamespace::StructName>::encode):
(IPC::ArgumentCoder<Namespace::Subnamespace::StructName>::decode):
(IPC::ArgumentCoder<SoftLinkedMember>::encode):
(IPC::ArgumentCoder<SoftLinkedMember>::decode):
(IPC::ArgumentCoder<WebCore::MoveOnlyDerivedClass>::encode):
(IPC::ArgumentCoder<WebCore::MoveOnlyDerivedClass>::decode):
(IPC::ArgumentCoder<NullableSoftLinkedMember>::encode): Deleted.
(IPC::ArgumentCoder<NullableSoftLinkedMember>::decode): Deleted.
* Source/WebKit/Scripts/webkit/tests/GeneratedSerializers.h:
* Source/WebKit/Scripts/webkit/tests/SerializedTypeInfo.cpp:
(WebKit::allSerializedTypes):
* Source/WebKit/Scripts/webkit/tests/TestSerializedType.serialization.in:
* Source/WebKit/Shared/WebHitTestResultData.h:
* Source/WebKit/Shared/mac/SecItemResponseData.h:
(WebKit::SecItemResponseData::SecItemResponseData):
(WebKit::SecItemResponseData::resultObject):
* Source/WebKit/Shared/mac/SecItemResponseData.serialization.in:
* Source/WebKit/Shared/mac/WebHitTestResultPlatformData.serialization.in:
* Source/WebKit/UIProcess/mac/WKImmediateActionController.mm:
(-[WKImmediateActionController _animationControllerForDataDetectedText]):
* Source/WebKit/WebProcess/WebPage/mac/WebPageMac.mm:
(WebKit::WebPage::performImmediateActionHitTestAtLocation):

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




More information about the webkit-changes mailing list