[webkit-changes] [WebKit/WebKit] 5fea48: [FFC] Let's start using the _used_ width on the ma...

Alan Baradlay noreply at github.com
Sun Jul 16 15:38:05 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5fea48e22d770107f2e5b7cfe6aa10ede41af59a
      https://github.com/WebKit/WebKit/commit/5fea48e22d770107f2e5b7cfe6aa10ede41af59a
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2023-07-16 (Sun, 16 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] Let's start using the _used_ width on the main axis to compute main size values for flex items
https://bugs.webkit.org/show_bug.cgi?id=259255

Reviewed by Antti Koivisto.

This is in preparation for adding support for content size based flexing.

* Source/WebCore/layout/formattingContexts/flex/FlexFormattingContext.cpp:
(WebCore::Layout::FlexFormattingContext::convertFlexItemsToLogicalSpace):
* Source/WebCore/layout/formattingContexts/flex/FlexLayout.cpp:
(WebCore::Layout::FlexLayout::flexBaseAndHypotheticalMainSizeForFlexItems const):
(WebCore::Layout::FlexLayout::computeMainSizeForFlexItems const):
* Source/WebCore/layout/formattingContexts/flex/LogicalFlexItem.h:

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




More information about the webkit-changes mailing list