[webkit-changes] [WebKit/WebKit] 532bc8: [FFC] Move align-self: stretch handling over to co...

Alan Baradlay noreply at github.com
Tue Jul 4 07:10:27 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 532bc8be7a14ce4c7a902f5fce7ff03bec56d613
      https://github.com/WebKit/WebKit/commit/532bc8be7a14ce4c7a902f5fce7ff03bec56d613
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2023-07-04 (Tue, 04 Jul 2023)

  Changed paths:
    M Source/WebCore/layout/formattingContexts/flex/FlexLayout.cpp
    M Source/WebCore/layout/formattingContexts/flex/FlexLayout.h

  Log Message:
  -----------
  [FFC] Move align-self: stretch handling over to computeCrossSizeForFlexItems
https://bugs.webkit.org/show_bug.cgi?id=258824

Reviewed by Antti Koivisto.

Move the sizing bits of align-self from handleCrossAxisAlignmentForFlexItems to computeCrossSizeForFlexItems.
This helps to keep the incoming flexItemsCrossSizeList immutable inside the alignment function(s).

* Source/WebCore/layout/formattingContexts/flex/FlexLayout.cpp:
(WebCore::Layout::FlexLayout::computeCrossSizeForFlexItems const):
(WebCore::Layout::FlexLayout::handleCrossAxisAlignmentForFlexItems const):
* Source/WebCore/layout/formattingContexts/flex/FlexLayout.h:

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




More information about the webkit-changes mailing list