Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f15a2f2705c4d3c658bdc35936b8834eaf4da056
      
https://github.com/WebKit/WebKit/commit/f15a2f2705c4d3c658bdc35936b8834eaf4da056
  Author: Alan Baradlay <[email protected]>
  Date:   2026-09-03 (Thu, 03 Sep 2026)

  Changed paths:
    M Source/WebCore/accessibility/AccessibilityObject.cpp
    M Source/WebCore/accessibility/AccessibilityObject.h
    M Source/WebCore/rendering/RenderListItem.cpp
    M Source/WebCore/rendering/RenderListItem.h
    M Source/WebCore/rendering/RenderListMarker.cpp
    M Source/WebCore/rendering/RenderListMarker.h
    M Source/WebCore/rendering/updating/RenderTreeBuilder.cpp
    M Source/WebCore/rendering/updating/RenderTreeBuilder.h
    M Source/WebCore/rendering/updating/RenderTreeBuilderList.cpp

  Log Message:
  -----------
  [list-marker] RenderListItem should answer for its marker instead of its 
callers consulting RenderListMarker
https://bugs.webkit.org/show_bug.cgi?id=323151
rdar://problem/186407352

Reviewed by Antti Koivisto.

Preparation for making an inside marker an inline content: an anonymous inline 
box holding the marker's renderers.
There is no RenderListMarker in that setup (only an anon RenderInline), so 
every question that is asked of the renderer on trunk by reaching for 
RenderListMarker has to be answerable without one.

No change in behavior.

* Source/WebCore/rendering/RenderListItem.cpp:
(WebCore::RenderListItem::updateMarkerContent):
(WebCore::RenderListItem::updateValueAndMarkerContent):
(WebCore::RenderListItem::markerText const):
(WebCore::RenderListItem::updateListMarkerNumbers):
(WebCore::RenderListItem::paintObject):
* Source/WebCore/rendering/RenderListItem.h:
* Source/WebCore/rendering/RenderListMarker.cpp:
(WebCore::counterStyleFor):
(WebCore::RenderListMarker::counterStyle const):
(WebCore::listMarkerIsDisclosure):
(WebCore::listMarkerSynthesizesGlyph):
(WebCore::listMarkerTextContent):
(WebCore::setListMarkerInlineMargins):
(WebCore::RenderListMarker::updateContent):
(WebCore::RenderListMarker::updateInlineMargins):
(WebCore::RenderListMarker::isDisclosureMarker const):
* Source/WebCore/rendering/RenderListMarker.h:
* Source/WebCore/rendering/updating/RenderTreeBuilder.cpp:
(WebCore::RenderTreeBuilder::addListItemNeedingMarkerUpdate):
(WebCore::RenderTreeBuilder::updateListMarkerContents):
(WebCore::RenderTreeBuilder::attachToRenderElementInternal):
(WebCore::RenderTreeBuilder::detachFromRenderElement):
(WebCore::RenderTreeBuilder::addListMarkerNeedingContentUpdate): Deleted.
* Source/WebCore/rendering/updating/RenderTreeBuilder.h:
* Source/WebCore/rendering/updating/RenderTreeBuilderList.cpp:
(WebCore::RenderTreeBuilder::List::updateItemMarker):
* Source/WebCore/accessibility/AccessibilityObject.cpp:
(WebCore::lineStartListMarkerText):
(WebCore::AccessibilityObject::listMarkerTextForNodeAndPosition):
* Source/WebCore/accessibility/AccessibilityObject.h:

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



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

Reply via email to