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

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

  Log Message:
  -----------
  [list-marker] The outside list marker resolves its content during layout 
instead of when it changes
https://bugs.webkit.org/show_bug.cgi?id=323530
rdar://problem/186770171

Reviewed by Antti Koivisto.

The marker resolved what it shows -- its text, and the size it measures its 
image at -- off the preferred
width dirty bit, so it ran
during layout and during the preferred width pass. Both are the wrong time: 
setting the text there marks the
renderers holding it dirty from inside layout, and the width pass leaves 
whatever it marks for someone else
to lay out. Everything that changes what the marker shows already tells the 
marker about it
(RenderTreeBuilder::updateListMarkerContents, 
RenderListItem::updateValueAndMarkerContent), so resolve it
there, and add the one caller that was missing: an image that reports a size 
once it decodes.

* Source/WebCore/rendering/RenderListOutsideMarker.cpp:
(WebCore::RenderListOutsideMarker::layout):
(WebCore::RenderListOutsideMarker::imageChanged):
(WebCore::RenderListOutsideMarker::updateInlineMarginsAndContent):
(WebCore::RenderListOutsideMarker::computeIntrinsicLogicalWidthContributions):

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



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

Reply via email to