[webkit-changes] [WebKit/WebKit] 62d663: Start moving classes which use SharedBitmap across...

Gavin noreply at github.com
Thu Oct 13 17:46:31 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 62d66343552b42ae416f047573690a0a61dcdc30
      https://github.com/WebKit/WebKit/commit/62d66343552b42ae416f047573690a0a61dcdc30
  Author: Gavin Phillips <gavin.p at apple.com>
  Date:   2022-10-13 (Thu, 13 Oct 2022)

  Changed paths:
    M Source/WebCore/platform/Cursor.h
    M Source/WebCore/platform/Pasteboard.cpp
    M Source/WebCore/platform/Pasteboard.h
    M Source/WebCore/platform/cocoa/PasteboardCocoa.mm
    M Source/WebKit/CMakeLists.txt
    M Source/WebKit/DerivedSources-input.xcfilelist
    M Source/WebKit/DerivedSources.make
    M Source/WebKit/Scripts/generate-serializers.py
    A Source/WebKit/Shared/Pasteboard.serialization.in
    M Source/WebKit/Shared/ShareableBitmap.cpp
    M Source/WebKit/Shared/ShareableBitmap.h
    M Source/WebKit/Shared/ShareableBitmap.serialization.in
    M Source/WebKit/Shared/WebCoreArgumentCoders.cpp
    M Source/WebKit/Shared/WebCoreArgumentCoders.h
    M Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in
    M Source/WebKit/Shared/ios/InteractionInformationAtPosition.h
    M Source/WebKit/Shared/ios/InteractionInformationAtPosition.mm
    A Source/WebKit/Shared/ios/InteractionInformationAtPosition.serialization.in
    M Source/WebKit/WebKit.xcodeproj/project.pbxproj

  Log Message:
  -----------
  Start moving classes which use SharedBitmap across to the new Serialization format.
https://bugs.webkit.org/show_bug.cgi?id=246087
<rdar://100808518>

Reviewed by Alex Christensen.

This change starts to move some of the classes which use SharedBitmap
across to the new Serialization format. This includes:
     * InteractionInformationAtPosition
     * InteractionInformationAtPosition
     * Selectability
     * PasteboardWebContent
     * PasteboardBuffer
     * PasteboardURL
     * PasteboardImage

It also adds the ability to have conditional enum declarations.

* Source/WebCore/platform/Cursor.h:
(WebCore::Cursor::image const):
* Source/WebCore/platform/Pasteboard.cpp:
* Source/WebCore/platform/Pasteboard.h:
* Source/WebCore/platform/cocoa/PasteboardCocoa.mm:
* Source/WebKit/CMakeLists.txt:
* Source/WebKit/DerivedSources-input.xcfilelist:
* Source/WebKit/DerivedSources.make:
* Source/WebKit/Scripts/generate-serializers.py:
(SerializedEnum.__init__):
(generate_header):
(generate_impl):
(parse_serialized_types):
* Source/WebKit/Shared/ShareableBitmap.cpp:
(WebKit::ShareableBitmap::createReadOnly):
(WebKit::ShareableBitmap::createReadOnlyHandle const):
* Source/WebKit/Shared/ShareableBitmap.h:
* Source/WebKit/Shared/WebCoreArgumentCoders.cpp:
(IPC::ArgumentCoder<RefPtr<Image>>::encode):
(IPC::ArgumentCoder<RefPtr<Image>>::decode):
(IPC::encodeOptionalImage):
(IPC::decodeOptionalImage):
(IPC::ArgumentCoder<Cursor>::encode):
(IPC::ArgumentCoder<Cursor>::decode):
(IPC::ArgumentCoder<TextIndicatorData>::encode):
(IPC::ArgumentCoder<WebCore::NotificationResources>::encode):
(IPC::encodeImage): Deleted.
(IPC::decodeImage): Deleted.
(IPC::ArgumentCoder<PasteboardWebContent>::encode): Deleted.
(IPC::ArgumentCoder<PasteboardWebContent>::decode): Deleted.
(IPC::ArgumentCoder<PasteboardImage>::encode): Deleted.
(IPC::ArgumentCoder<PasteboardImage>::decode): Deleted.
* Source/WebKit/Shared/WebCoreArgumentCoders.h:
* Source/WebKit/Shared/ios/InteractionInformationAtPosition.h:
(WebKit::InteractionInformationAtPosition::isSelectable const):
* Source/WebKit/Shared/ios/InteractionInformationAtPosition.mm:
(WebKit::InteractionInformationAtPosition::encode const): Deleted.
(WebKit::InteractionInformationAtPosition::decode): Deleted.
* Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView textInteractionGesture:shouldBeginAtPoint:]):
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:
* Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::selectionPositionInformation):

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




More information about the webkit-changes mailing list