[webkit-changes] [WebKit/WebKit] e31787: [FFC] Fix hypothetical and clamped main size compu...

Alan Baradlay noreply at github.com
Wed Sep 18 14:51:58 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e3178784008e0dd527769154c10c572afdd8c402
      https://github.com/WebKit/WebKit/commit/e3178784008e0dd527769154c10c572afdd8c402
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2024-09-18 (Wed, 18 Sep 2024)

  Changed paths:
    M Source/WebCore/layout/formattingContexts/flex/FlexFormattingContext.cpp
    M Source/WebCore/layout/formattingContexts/flex/FlexFormattingUtils.cpp
    M Source/WebCore/layout/formattingContexts/flex/FlexFormattingUtils.h
    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] Fix hypothetical and clamped main size computation
https://bugs.webkit.org/show_bug.cgi?id=279848

Reviewed by Antti Koivisto.

Both hypothetical and clamped main size computation use the 'used main size' which in infinite when its computed value is initial (none).

* Source/WebCore/layout/formattingContexts/flex/FlexFormattingContext.cpp:
(WebCore::Layout::FlexFormattingContext::convertFlexItemsToLogicalSpace):
* Source/WebCore/layout/formattingContexts/flex/FlexFormattingUtils.cpp:
(WebCore::Layout::FlexFormattingUtils::usedMinimumMainSize const):
(WebCore::Layout::FlexFormattingUtils::usedMaxiumMainSize const):
* Source/WebCore/layout/formattingContexts/flex/FlexFormattingUtils.h:
(WebCore::Layout::FlexFormattingUtils::formattingContext const):
* Source/WebCore/layout/formattingContexts/flex/FlexLayout.cpp:
(WebCore::Layout::FlexLayout::flexBaseAndHypotheticalMainSizeForFlexItems):
(WebCore::Layout::FlexLayout::computeMainSizeForFlexItems const):
(WebCore::Layout::FlexLayout::formattingContext const):
(WebCore::Layout::FlexLayout::formattingUtils const):
(WebCore::Layout::FlexLayout::formattingContext): Deleted.
* Source/WebCore/layout/formattingContexts/flex/FlexLayout.h:
* Source/WebCore/layout/formattingContexts/flex/LogicalFlexItem.h:

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list