[GTK] Port SelectionData to new IPC serialization format#26564
Merged
webkit-commit-queue merged 1 commit intoWebKit:mainfrom Apr 3, 2024
Conversation
Collaborator
|
EWS run on previous version of this PR (hash 9842b76) Details
|
9842b76 to
e08f4c4
Compare
Collaborator
|
EWS run on previous version of this PR (hash e08f4c4) Details |
e08f4c4 to
43aeb2a
Compare
Collaborator
|
EWS run on previous version of this PR (hash 43aeb2a) Details |
43aeb2a to
b7ab23c
Compare
Collaborator
|
EWS run on previous version of this PR (hash b7ab23c) Details
|
b7ab23c to
475930a
Compare
Collaborator
|
EWS run on previous version of this PR (hash 475930a) Details
|
carlosgcampos
approved these changes
Apr 3, 2024
Contributor
There was a problem hiding this comment.
Suggested change
| void setImage(RefPtr<Image>&& newImage) { m_image = newImage; } | |
| void setImage(RefPtr<Image>&& newImage) { m_image = WTFMove(newImage); } |
Contributor
There was a problem hiding this comment.
Suggested change
| SelectionData::SelectionData(const String& text, const String& markup, const URL& url, const String& uriList, RefPtr<WebCore::Image> image, RefPtr<WebCore::SharedBuffer>&& buffer, bool canSmartReplace) | |
| SelectionData::SelectionData(const String& text, const String& markup, const URL& url, const String& uriList, RefPtr<WebCore::Image>&& image, RefPtr<WebCore::SharedBuffer>&& buffer, bool canSmartReplace) |
Contributor
There was a problem hiding this comment.
Suggested change
| setImage(image.get()); | |
| setImage(WTFMove(image)); |
475930a to
c590209
Compare
Collaborator
|
EWS run on current version of this PR (hash c590209) Details
|
https://bugs.webkit.org/show_bug.cgi?id=271836 Reviewed by Carlos Garcia Campos. Remove the ArgumentCoders for SelectionData, adapt the class a bit to make it work well with the generated serializers, and add a new ArgumentCodersGtk.serialization.in for the GTK-specific serializers. * Source/WebCore/platform/gtk/PasteboardGtk.cpp: (WebCore::Pasteboard::typesSafeForBindings): (WebCore::Pasteboard::readOrigin): (WebCore::Pasteboard::readStringInCustomData): * Source/WebCore/platform/gtk/SelectionData.cpp: (WebCore::SelectionData::SelectionData): * Source/WebCore/platform/gtk/SelectionData.h: (WebCore::SelectionData::setImage): (WebCore::SelectionData::image const): (WebCore::SelectionData::customData const): * Source/WebKit/PlatformGTK.cmake: * Source/WebKit/Shared/gtk/ArgumentCodersGtk.cpp: (IPC::encodeImage): Deleted. (IPC::decodeImage): Deleted. (IPC::ArgumentCoder<SelectionData>::encode): Deleted. (IPC::ArgumentCoder<SelectionData>::decode): Deleted. * Source/WebKit/Shared/gtk/ArgumentCodersGtk.h: * Source/WebKit/Shared/gtk/ArgumentCodersGtk.serialization.in: Added. * Source/WebKit/UIProcess/API/gtk/DragSourceGtk3.cpp: (WebKit::DragSource::DragSource): * Source/WebKit/UIProcess/gtk/ClipboardGtk3.cpp: (WebKit::Clipboard::write): Canonical link: https://commits.webkit.org/276991@main
c590209 to
41e8f10
Compare
Collaborator
|
Committed 276991@main (41e8f10): https://commits.webkit.org/276991@main Reviewed commits have been landed. Closing PR #26564 and removing active labels. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
41e8f10
c590209
🧪 wpe-wk2🧪 ios-wk2-wpt🧪 mac-wk1🧪 api-ios🛠 tv🧪 mac-AS-debug-wk2🛠 tv-sim🛠 watch