[webkit-changes] [WebKit/WebKit] 1c7d19: [FFC] Add box-sizing support for main axis

Alan Baradlay noreply at github.com
Mon Jun 26 06:37:38 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1c7d19c7614194ce43e4e71236bfb2a499a64826
      https://github.com/WebKit/WebKit/commit/1c7d19c7614194ce43e4e71236bfb2a499a64826
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2023-06-26 (Mon, 26 Jun 2023)

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

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

Reviewed by Antti Koivisto.

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

* Source/WebCore/layout/formattingContexts/flex/FlexLayout.cpp:
(WebCore::Layout::PositionAndMargins::margin const):
(WebCore::Layout::FlexLayout::layout):
(WebCore::Layout::outerMainSize):
(WebCore::Layout::FlexLayout::computeFlexLines const):
(WebCore::Layout::FlexLayout::computeMainSizeForFlexItems const):
(WebCore::Layout::FlexLayout::hypotheticalCrossSizeForFlexItems const):
(WebCore::Layout::FlexLayout::handleMainAxisAlignment const):
* Source/WebCore/layout/formattingContexts/flex/FlexLayout.h:
* Source/WebCore/layout/formattingContexts/flex/LogicalFlexItem.h:
(WebCore::Layout::LogicalFlexItem::isContentBoxBased const):

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




More information about the webkit-changes mailing list