Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 409d24b2ca99edb00af56fd2f9cbba499309cfe9
      
https://github.com/WebKit/WebKit/commit/409d24b2ca99edb00af56fd2f9cbba499309cfe9
  Author: Wenson Hsieh <[email protected]>
  Date:   2025-09-23 (Tue, 23 Sep 2025)

  Changed paths:
    M Source/WebCore/editing/cocoa/FontAttributesCocoa.mm

  Log Message:
  -----------
  Deploy smart pointers around `WebCore::cocoaTextListMarkerName`
https://bugs.webkit.org/show_bug.cgi?id=299384
rdar://161078051

Reviewed by Abrar Rahman Protyasha.

Make `cocoaTextListMarkerName` return a `RetainPtr<NSString>` instead of a raw 
ObjC pointer, to
clarify ownership semantics. Importantly, this also avoids returning a pointer 
to the temporary
return value, `format.createNSString()`, in the case where the `styleType` is 
backed by an
identifier string.

* Source/WebCore/editing/cocoa/FontAttributesCocoa.mm:
(WebCore::cocoaTextListMarkerName):
(WebCore::TextList::createTextList const):

Canonical link: https://commits.webkit.org/300425@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

Reply via email to