[webkit-changes] [WebKit/WebKit] 8161b3: [FFC] Add support for box-sizing for cross axis

Alan Baradlay noreply at github.com
Sun Jul 2 13:56:27 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8161b33ac1f8f4889461a4ed341b5e1d8ea9a470
      https://github.com/WebKit/WebKit/commit/8161b33ac1f8f4889461a4ed341b5e1d8ea9a470
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2023-07-02 (Sun, 02 Jul 2023)

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

  Log Message:
  -----------
  [FFC] Add support for box-sizing for cross axis
https://bugs.webkit.org/show_bug.cgi?id=258777

Reviewed by Antti Koivisto.

Take box-sizing into account when computing the outer cross axis size for flex items.

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

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




More information about the webkit-changes mailing list