Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f47f4151b99208bcf4fe9db090f39f0effedc9b4
https://github.com/WebKit/WebKit/commit/f47f4151b99208bcf4fe9db090f39f0effedc9b4
Author: Brent Fulgham <[email protected]>
Date: 2024-06-28 (Fri, 28 Jun 2024)
Changed paths:
M Source/WebCore/Configurations/WebCore.xcconfig
M Source/WebCore/PAL/pal/system/mac/PopupMenu.mm
M Source/WebCore/PAL/pal/system/mac/WebPanel.mm
M Source/WebCore/PlatformMac.cmake
M Source/WebCore/SourcesCocoa.txt
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
M Source/WebCore/editing/cocoa/WebContentReaderCocoa.mm
M Source/WebCore/editing/mac/EditorMac.mm
M Source/WebCore/fileapi/FileCocoa.mm
M Source/WebCore/page/mac/DragControllerMac.mm
M Source/WebCore/platform/cocoa/DragDataCocoa.mm
M Source/WebCore/platform/cocoa/PasteboardCocoa.mm
M Source/WebCore/platform/cocoa/PlatformPasteboardCocoa.mm
R Source/WebCore/platform/graphics/cg/UTIRegistry.cpp
A Source/WebCore/platform/graphics/cg/UTIRegistry.mm
M Source/WebCore/platform/ios/LegacyTileGrid.mm
M Source/WebCore/platform/ios/PasteboardIOS.mm
M Source/WebCore/platform/network/mac/UTIUtilities.h
M Source/WebCore/platform/network/mac/UTIUtilities.mm
M Source/WebCore/testing/Internals.cpp
M Source/WebCore/testing/Internals.h
M Source/WebCore/testing/Internals.idl
M Source/WebCore/testing/Internals.mm
Log Message:
-----------
Stop using deprecated UTType API
https://bugs.webkit.org/show_bug.cgi?id=256867
<rdar://problem/109431567>
Reviewed by Aditya Keerthi.
Update WebKit to use the modern UTType API, rather than the deprecated
Carbon-era C APIs.
Also remove WebCore::UTIFromTag and related Internals methods that were added
long ago to
support tests for a feature (and tests) that were removed a few years ago.
* Source/WebCore/Configurations/WebCore.xcconfig:
* Source/WebCore/PAL/pal/system/mac/PopupMenu.mm:
(PAL::popUpMenu):
* Source/WebCore/PAL/pal/system/mac/WebPanel.mm:
(-[WebPanel init]):
* Source/WebCore/PlatformMac.cmake:
* Source/WebCore/SourcesCocoa.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/editing/cocoa/WebContentReaderCocoa.mm:
(WebCore::mimeTypeFromContentType):
(WebCore::attachmentForFilePath):
* Source/WebCore/editing/mac/EditorMac.mm:
(WebCore::Editor::dataSelectionForPasteboard):
* Source/WebCore/fileapi/FileCocoa.mm:
(WebCore::File::shouldReplaceFile):
* Source/WebCore/page/FrameInlines.h: Copied from
Source/WebCore/PAL/pal/system/mac/WebPanel.mm.
(WebCore::Frame::page const):
(WebCore::Frame::ownerElement const):
* Source/WebCore/page/mac/DragControllerMac.mm:
(WebCore::DragController::updateSupportedTypeIdentifiersForDragHandlingMethod
const):
* Source/WebCore/platform/cocoa/DragDataCocoa.mm:
(WebCore::rtfPasteboardType):
(WebCore::rtfdPasteboardType):
(WebCore::stringPasteboardType):
(WebCore::urlPasteboardType):
(WebCore::htmlPasteboardType):
(WebCore::pdfPasteboardType):
(WebCore::tiffPasteboardType):
(WebCore::DragData::containsCompatibleContent const):
* Source/WebCore/platform/cocoa/PasteboardCocoa.mm:
(WebCore::cocoaTypeToImageType):
(WebCore::Pasteboard::fileContentState):
* Source/WebCore/platform/cocoa/PlatformPasteboardCocoa.mm:
(WebCore::PlatformPasteboard::urlStringSuitableForLoading):
* Source/WebCore/platform/graphics/cg/UTIRegistry.mm: Renamed from
Source/WebCore/platform/graphics/cg/UTIRegistry.cpp.
(WebCore::preferredExtensionForImageType):
* Source/WebCore/platform/ios/LegacyTileGrid.mm:
(WebCore::LegacyTileGrid::dropDistantTiles):
* Source/WebCore/platform/ios/PasteboardIOS.mm:
(WebCore::Pasteboard::writePlainText):
(WebCore::Pasteboard::read):
(WebCore::supportedImageTypes):
(WebCore::isTypeAllowedByReadingPolicy):
(WebCore::Pasteboard::readPasteboardWebContentDataForType):
(WebCore::Pasteboard::supportedWebContentPasteboardTypes):
(WebCore::Pasteboard::supportedFileUploadPasteboardTypes):
(WebCore::Pasteboard::readPlatformValuesAsStrings):
(WebCore::Pasteboard::addHTMLClipboardTypesForCocoaType):
* Source/WebCore/platform/ios/PlatformPasteboardIOS.mm:
* Source/WebCore/platform/network/mac/UTIUtilities.h:
* Source/WebCore/platform/network/mac/UTIUtilities.mm:
(WebCore::MIMETypeFromUTI):
(WebCore::UTIFromUnknownMIMEType):
(WebCore::UTIFromMIMETypeCachePolicy::createValueForKey):
(WebCore::isDeclaredUTI):
(WebCore::UTIFromTag): Deleted.
* Source/WebCore/testing/Internals.cpp:
(WebCore::Internals::getUTIFromTag): Deleted.
* Source/WebCore/testing/Internals.h:
* Source/WebCore/testing/Internals.idl:
* Source/WebCore/testing/Internals.mm:
(WebCore::Internals::getUTIFromTag): Deleted.
Canonical link: https://commits.webkit.org/280468@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