Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5fc7a2593e690290b50e9c9f8d30aab3374798d5
https://github.com/WebKit/WebKit/commit/5fc7a2593e690290b50e9c9f8d30aab3374798d5
Author: Claudio Saavedra <[email protected]>
Date: 2024-04-24 (Wed, 24 Apr 2024)
Changed paths:
M Source/WebKit/Platform/IPC/glib/ArgumentCodersGlib.h
M Source/WebKit/Shared/glib/ArgumentCodersGLib.cpp
M Source/WebKit/Shared/gtk/ArgumentCodersGtk.cpp
Log Message:
-----------
[GLIB] Modernize some argument coders
https://bugs.webkit.org/show_bug.cgi?id=272983
Reviewed by Michael Catanzaro.
Move some of the argument coders uses for GLib and GTK types
to use the modern ArgumentCoder API. Remove the GKeyFile coders,
as one can actually use GVariant for serialization of GTK printing
structs and we already have a GVariant serializer.
Also add UNLIKELY() for the std::nullopt bailout cases that can be
optimized.
* Source/WebKit/Platform/IPC/glib/ArgumentCodersGlib.h:
* Source/WebKit/Shared/glib/ArgumentCodersGLib.cpp:
(IPC::ArgumentCoder<GRefPtr<GVariant>>::decode):
(IPC::ArgumentCoder<GRefPtr<GTlsCertificate>>::decode):
(IPC::ArgumentCoder<GTlsCertificateFlags>::decode):
(IPC::ArgumentCoder<GRefPtr<GUnixFDList>>::decode):
* Source/WebKit/Shared/gtk/ArgumentCodersGtk.cpp:
(IPC::ArgumentCoder<GRefPtr<GtkPrintSettings>>::encode):
(IPC::ArgumentCoder<GRefPtr<GtkPrintSettings>>::decode):
(IPC::ArgumentCoder<GRefPtr<GtkPageSetup>>::encode):
(IPC::ArgumentCoder<GRefPtr<GtkPageSetup>>::decode):
(IPC::encodeGKeyFile): Deleted.
(IPC::decodeGKeyFile): Deleted.
Canonical link: https://commits.webkit.org/277967@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes