[webkit-changes] [WebKit/WebKit] 493b7f: Serialize NSAttributedString font attributes as We...

Alex Christensen noreply at github.com
Mon Apr 3 19:39:33 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 493b7f1a6f9d8f78fbd136ce221eb7c14b21d4d0
      https://github.com/WebKit/WebKit/commit/493b7f1a6f9d8f78fbd136ce221eb7c14b21d4d0
  Author: Alex Christensen <achristensen at apple.com>
  Date:   2023-04-03 (Mon, 03 Apr 2023)

  Changed paths:
    M Source/WebCore/editing/cocoa/AttributedString.h
    M Source/WebCore/editing/cocoa/AttributedString.mm
    M Source/WebCore/editing/cocoa/HTMLConverter.mm
    M Source/WebCore/platform/graphics/FontPlatformData.h
    M Source/WebCore/platform/graphics/coretext/FontPlatformDataCoreText.cpp
    M Source/WebCore/platform/ios/UIFoundationSoftLink.h
    M Source/WebCore/platform/ios/UIFoundationSoftLink.mm
    M Source/WebKit/Shared/Cocoa/WebCoreArgumentCodersCocoa.mm
    M Source/WebKit/Shared/Cocoa/WebCoreArgumentCodersCocoa.serialization.in
    M Source/WebKitLegacy/mac/WebCoreSupport/PopupMenuMac.mm
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/NSAttributedStringWebKitAdditions.mm

  Log Message:
  -----------
  Serialize NSAttributedString font attributes as WebCore::Font
https://bugs.webkit.org/show_bug.cgi?id=254860
rdar://107503178

Reviewed by Myles Maxfield.

This also fixes a regression from 262192 at main where if you make an NSAttributedString
from an HTML string that contains a web font as a data URL, we now get an attribute
with the key of NSFontAttributeName again.

* Source/WebCore/editing/cocoa/AttributedString.h:
* Source/WebCore/editing/cocoa/AttributedString.mm:
(WebCore::toNSObject):
(WebCore::extractValue):
* Source/WebKit/Shared/Cocoa/WebCoreArgumentCodersCocoa.serialization.in:

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




More information about the webkit-changes mailing list