[webkit-changes] [WebKit/WebKit] 3ff643: [Cocoa] Upstream adaptive image glyph support
Aditya Keerthi
noreply at github.com
Mon Jul 8 09:03:51 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3ff643a073008d98691c0d8210b4fb3db77662e1
https://github.com/WebKit/WebKit/commit/3ff643a073008d98691c0d8210b4fb3db77662e1
Author: Aditya Keerthi <akeerthi at apple.com>
Date: 2024-07-08 (Mon, 08 Jul 2024)
Changed paths:
M Source/WebCore/PAL/PAL.xcodeproj/project.pbxproj
A Source/WebCore/PAL/pal/spi/cocoa/UIFoundationSPI.h
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
M Source/WebCore/editing/cocoa/AttributedString.mm
M Source/WebCore/editing/cocoa/EditorCocoa.mm
M Source/WebCore/editing/cocoa/HTMLConverter.mm
M Source/WebCore/html/HTMLImageElement.cpp
M Source/WebCore/platform/MIMETypeRegistry.cpp
M Source/WebCore/platform/cocoa/DragDataCocoa.mm
A Source/WebCore/platform/cocoa/PlatformNSAdaptiveImageGlyph.h
M Source/WebCore/platform/graphics/ImageAdapter.h
M Source/WebCore/platform/graphics/cocoa/GraphicsContextCocoa.mm
M Source/WebCore/platform/graphics/coretext/FontCoreText.cpp
M Source/WebCore/platform/graphics/mac/ImageAdapterMac.mm
M Source/WebCore/platform/ios/UIFoundationSoftLink.h
M Source/WebCore/platform/ios/UIFoundationSoftLink.mm
M Source/WebKit/UIProcess/API/mac/WKWebViewMac.mm
M Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
Log Message:
-----------
[Cocoa] Upstream adaptive image glyph support
https://bugs.webkit.org/show_bug.cgi?id=276237
rdar://131146938
Reviewed by Richard Robinson.
Subsequent patches will:
1. Rename "multi-representatin HEIC" to refer to adaptive image glyphs.
2. Replace deprecated CoreText SPI with API.
* Source/WebCore/PAL/PAL.xcodeproj/project.pbxproj:
* Source/WebCore/PAL/pal/spi/cocoa/UIFoundationSPI.h: Copied from Source/WebCore/platform/ios/UIFoundationSoftLink.h.
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/editing/cocoa/AttributedString.mm:
(WebCore::toMultiRepresentationHEICAttachmentData):
(WebCore::toWebMultiRepresentationHEICAttachment):
(WebCore::extractValue):
* Source/WebCore/editing/cocoa/EditorCocoa.mm:
(WebCore::Editor::insertMultiRepresentationHEIC):
* Source/WebCore/editing/cocoa/HTMLConverter.mm:
(HTMLConverter::_addMultiRepresentationHEICAttachmentForImageElement):
(HTMLConverter::_addAttachmentForElement):
(attributedStringWithAttachmentForElement):
* Source/WebCore/html/HTMLImageElement.cpp:
(WebCore::HTMLImageElement::isMultiRepresentationHEIC const):
* Source/WebCore/platform/MIMETypeRegistry.cpp:
* Source/WebCore/platform/cocoa/DragDataCocoa.mm:
(WebCore::DragData::shouldMatchStyleOnDrop const):
* Source/WebCore/platform/cocoa/PlatformNSAdaptiveImageGlyph.h: Copied from Source/WebCore/platform/ios/UIFoundationSoftLink.h.
* Source/WebCore/platform/graphics/ImageAdapter.h:
* Source/WebCore/platform/graphics/cocoa/GraphicsContextCocoa.mm:
(WebCore::GraphicsContext::drawMultiRepresentationHEIC):
* Source/WebCore/platform/graphics/coretext/FontCoreText.cpp:
(WebCore::Font::metricsForMultiRepresentationHEIC const):
* Source/WebCore/platform/graphics/mac/ImageAdapterMac.mm:
(WebCore::ImageAdapter::multiRepresentationHEIC):
* Source/WebCore/platform/ios/UIFoundationSoftLink.h:
* Source/WebCore/platform/ios/UIFoundationSoftLink.mm:
* Source/WebKit/UIProcess/API/mac/WKWebViewMac.mm:
(-[WKWebView supportsAdaptiveImageGlyph]):
(-[WKWebView insertAdaptiveImageGlyph:replacementRange:]):
* Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView supportsAdaptiveImageGlyph]):
(-[WKContentView insertAdaptiveImageGlyph:replacementRange:]):
Canonical link: https://commits.webkit.org/280736@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list