[webkit-changes] [WebKit/WebKit] 0367d1: [FFC] Add skeleton implementation for layout integ...

Alan Baradlay noreply at github.com
Mon Jun 19 08:21:29 PDT 2023


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

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

  Log Message:
  -----------
  [FFC] Add skeleton implementation for layout integration dependent functions (flexContainerMainSize/hypotheticalCrossSizeForFlexItems/collapseNonVisibleFlexItems)
https://bugs.webkit.org/show_bug.cgi?id=258248

Reviewed by Antti Koivisto.

These functions trigger layout on flex items while running flex layout and they need integration support (calling back in to render tree).
However currently FFC only works with "fixed" geometry meaning that we don't really need to run layout on flex items' subtrees.

* Source/WebCore/layout/formattingContexts/flex/FlexLayout.cpp:
(WebCore::Layout::FlexLayout::flexContainerMainSize const):
(WebCore::Layout::FlexLayout::hypotheticalCrossSizeForFlexItems const):
(WebCore::Layout::FlexLayout::collapseNonVisibleFlexItems):

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




More information about the webkit-changes mailing list