Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8d1b743caee7dabba2949d6e40e29b53ca87b19d
      
https://github.com/WebKit/WebKit/commit/8d1b743caee7dabba2949d6e40e29b53ca87b19d
  Author: Sammy Gill <sammy.g...@apple.com>
  Date:   2025-07-11 (Fri, 11 Jul 2025)

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

  Log Message:
  -----------
  Decouple absolute positioned box auto margin distribution from alignment
https://bugs.webkit.org/show_bug.cgi?id=295753
rdar://155572208

Reviewed by Alan Baradlay.

PositionedLayoutConstraints::resolvePosition attempts to resolve the
position of the positioned box. This is done in two main ways:

1.) Distributing the extra space to any auto margins that the box has in
the axis.
2.) Aligning the margin box according to its self-alignment.

Currently, the logic for these two steps is somewhat mixed together. In
particular, if the box has both of its insets fixed, then we will
attempt to see if there are automatic margins to distribute space to and
then attempt to align the box if that fails. Instead, let's factor this
out so that we can have two distinct sections of code for each of the
steps described above. This is in preparation for building upon the
alignment portion of the code incrementally.

* Source/WebCore/rendering/PositionedLayoutConstraints.cpp:
(WebCore::PositionedLayoutConstraints::resolvePosition const):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to