Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4b403c87f5538086968e387222fbca8c45058a1b
      
https://github.com/WebKit/WebKit/commit/4b403c87f5538086968e387222fbca8c45058a1b
  Author: Aditya Keerthi <[email protected]>
  Date:   2026-03-12 (Thu, 12 Mar 2026)

  Changed paths:
    A LayoutTests/fast/lists/list-marker-margin-multiline-zoomed-expected.html
    A LayoutTests/fast/lists/list-marker-margin-multiline-zoomed.html
    M Source/WebCore/rendering/RenderListMarker.cpp

  Log Message:
  -----------
  REGRESSION (301965@main): List items that span multiple lines have incorrect 
margins when zoomed in/out
https://bugs.webkit.org/show_bug.cgi?id=309757
rdar://172312498

Reviewed by Alan Baradlay.

Margin values computed in `RenderListMarker::updateInlineMargins` are based on
font metrics which are already zoomed. Since `MarginEdge` stores unzoomed
values, and zoom is applied at resolution time via `resolveZoom`, margins get
zoomed twice.

Fix by dividing out the zoom factor to avoid double-zooming.

* LayoutTests/fast/lists/list-marker-margin-multiline-zoomed-expected.html: 
Added.
* LayoutTests/fast/lists/list-marker-margin-multiline-zoomed.html: Added.
* Source/WebCore/rendering/RenderListMarker.cpp:
(WebCore::RenderListMarker::updateInlineMargins):

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



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

Reply via email to