Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8689b06fff023110e53618bea3f90e558f3ad8fe
      
https://github.com/WebKit/WebKit/commit/8689b06fff023110e53618bea3f90e558f3ad8fe
  Author: Gavin Phillips <[email protected]>
  Date:   2025-11-20 (Thu, 20 Nov 2025)

  Changed paths:
    M Source/WebCore/editing/cocoa/AttributedString.h
    M Source/WebCore/editing/cocoa/AttributedString.mm
    M Source/WebCore/platform/graphics/Font.h
    M Source/WebCore/platform/graphics/FontPlatformData.h
    M Source/WebCore/platform/graphics/coretext/FontCoreText.cpp
    M Source/WebCore/platform/graphics/coretext/FontPlatformDataCoreText.cpp
    M Source/WebCore/platform/graphics/skia/FontPlatformDataSkia.cpp
    M Source/WebCore/platform/graphics/win/FontPlatformDataWin.cpp
    M Source/WebKit/Shared/Cocoa/WebCoreArgumentCodersCocoa.serialization.in
    M Source/WebKit/Shared/EditorState.serialization.in
    M Source/WebKit/Shared/PlatformPopupMenuData.h
    M Source/WebKit/Shared/PlatformPopupMenuData.serialization.in
    M Source/WebKit/Shared/WebCoreFont.serialization.in
    M Source/WebKit/Shared/cairo/WebCoreFontCairo.serialization.in
    M Source/WebKit/Shared/skia/WebCoreArgumentCodersSkia.serialization.in
    M Source/WebKit/UIProcess/mac/WebPopupMenuProxyMac.mm
    M Source/WebKit/WebProcess/WebCoreSupport/mac/WebPopupMenuMac.mm

  Log Message:
  -----------
  Unify mechanism for serializing Installed Fonts across CoreIPC.
https://bugs.webkit.org/show_bug.cgi?id=302637
rdar://164878071

Reviewed by Vitor Roriz.

Unifies the serialization of InstalledFonts for both WebCore::Font
and standalone usages (AttributedString, PopupMenu).

* Source/WebCore/editing/cocoa/AttributedString.h:
* Source/WebCore/editing/cocoa/AttributedString.mm:
(WebCore::toNSObject):
(WebCore::extractValue):
(WebCore::AttributedString::FontWrapper::createFromIPCData): Deleted.
(WebCore::AttributedString::FontWrapper::postScriptName const): Deleted.
(WebCore::AttributedString::FontWrapper::pointSize const): Deleted.
(WebCore::AttributedString::FontWrapper::fontDescriptorOptions const): Deleted.
(WebCore::AttributedString::FontWrapper::fontSerializedAttributes const): 
Deleted.
* Source/WebCore/platform/graphics/Font.h:
* Source/WebCore/platform/graphics/FontPlatformData.h:
* Source/WebCore/platform/graphics/coretext/FontCoreText.cpp:
(WebCore::Font::fromIPCData):
(WebCore::Font::toSerializableInstalledFont const):
(WebCore::Font::toSerializableFont const):
* Source/WebCore/platform/graphics/coretext/FontPlatformDataCoreText.cpp:
(WebCore::FontPlatformData::toIPCData const):
(WebCore::InstalledFont::PostScriptFont::toCTFont const):
(WebCore::InstalledFont::toCTFont const):
(WebCore::InstalledFont::toFont const):
(WebCore::FontPlatformData::fromIPCData): Deleted.
* Source/WebCore/platform/graphics/skia/FontPlatformDataSkia.cpp:
(WebCore::FontPlatformData::fromIPCData):
(WebCore::FontPlatformData::toIPCData const):
* Source/WebCore/platform/graphics/win/FontPlatformDataWin.cpp:
(WebCore::FontPlatformData::fromIPCData):
(WebCore::FontPlatformData::toIPCData const):
* Source/WebKit/Shared/Cocoa/WebCoreArgumentCodersCocoa.serialization.in:
* Source/WebKit/Shared/EditorState.serialization.in:
* Source/WebKit/Shared/PlatformPopupMenuData.h:
* Source/WebKit/Shared/PlatformPopupMenuData.serialization.in:
* Source/WebKit/Shared/WebCoreFont.serialization.in:
* Source/WebKit/Shared/cairo/WebCoreFontCairo.serialization.in:
* Source/WebKit/Shared/skia/WebCoreArgumentCodersSkia.serialization.in:
* Source/WebKit/UIProcess/mac/WebPopupMenuProxyMac.mm:
(WebKit::WebPopupMenuProxyMac::showPopupMenu):
* Source/WebKit/WebProcess/WebCoreSupport/mac/WebPopupMenuMac.mm:
(WebKit::WebPopupMenu::setUpPlatformData):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to