[webkit-changes] [WebKit/WebKit] c2efa5: [FFC] FlexLayout::computeMainSizeForFlexItems shou...

Alan Baradlay noreply at github.com
Sun Jun 18 17:04:00 PDT 2023


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

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

  Log Message:
  -----------
  [FFC] FlexLayout::computeMainSizeForFlexItems should follow spec language
https://bugs.webkit.org/show_bug.cgi?id=258241

Reviewed by Antti Koivisto.

This patch implements https://www.w3.org/TR/css-flexbox-1/#resolve-flexible-lengths
(This is the main axis flexing part of the flex layout logic, where we compute how much each flex items should shrink or grow)

* Source/WebCore/layout/formattingContexts/flex/FlexLayout.cpp:
(WebCore::Layout::FlexLayout::computeMainSizeForFlexItems const):

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




More information about the webkit-changes mailing list