Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c53b6f24f3fa84cb28687827cf0f77338352b9ab
      
https://github.com/WebKit/WebKit/commit/c53b6f24f3fa84cb28687827cf0f77338352b9ab
  Author: Tim Nguyen <[email protected]>
  Date:   2026-09-17 (Thu, 17 Sep 2026)

  Changed paths:
    M Source/WebCore/rendering/RenderListOutsideMarker.cpp

  Log Message:
  -----------
  [cleanup] Cleanup logic in listMarkerTextContent
https://bugs.webkit.org/show_bug.cgi?id=324472
rdar://187711383

Reviewed by Alan Baradlay.

Preparatory cleanup for adding CSS symbols() function support. Have
listMarkerTextContent()'s switchOn cases return the ListMarkerTextContent
directly instead of mutating a local, and share the counter-to-text logic
via a makeTextContentForCounter lambda so it can be reused for both named
counter styles and (in a follow-up) the symbols() function.

Also remove counterStyleFor() and inline its last usage.

* Source/WebCore/rendering/RenderListOutsideMarker.cpp:
(WebCore::listMarkerTextContent):
(WebCore::listMarkerIsDisclosure):
(WebCore::counterStyleFor): Deleted.

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



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

Reply via email to