[webkit-changes] [WebKit/WebKit] cc87e9: [FFC][Integration] Flex layout needs various sizin...

Alan Baradlay noreply at github.com
Wed Sep 18 13:40:30 PDT 2024


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

  Changed paths:
    M Source/WebCore/layout/LayoutState.cpp
    M Source/WebCore/layout/LayoutState.h
    M Source/WebCore/layout/formattingContexts/flex/FlexLayout.cpp
    M Source/WebCore/layout/integration/LayoutIntegrationFormattingContextLayout.cpp
    M Source/WebCore/layout/integration/LayoutIntegrationFormattingContextLayout.h
    M Source/WebCore/layout/integration/LayoutIntegrationUtils.cpp
    M Source/WebCore/layout/integration/LayoutIntegrationUtils.h
    M Source/WebCore/rendering/RenderBox.h
    M Source/WebCore/rendering/RenderView.cpp

  Log Message:
  -----------
  [FFC][Integration] Flex layout needs various sizing on flex items and not just preferred width
https://bugs.webkit.org/show_bug.cgi?id=279847

Reviewed by Antti Koivisto.

Add a new interface to support various sizing.

* Source/WebCore/layout/LayoutState.cpp:
(WebCore::Layout::LayoutState::LayoutState):
(WebCore::Layout::LayoutState::logicalWidthWithFormattingContextForBox const):
(WebCore::Layout::LayoutState::preferredWidthWithFormattingContextForBox const): Deleted.
* Source/WebCore/layout/LayoutState.h:
* Source/WebCore/layout/formattingContexts/flex/FlexLayout.cpp:
(WebCore::Layout::FlexLayout::maxContentForFlexItem):
* Source/WebCore/layout/integration/LayoutIntegrationFormattingContextLayout.cpp:
(WebCore::LayoutIntegration::formattingContextRootLogicalWidthForType):
(WebCore::LayoutIntegration::preferredLogicalWidths): Deleted.
* Source/WebCore/layout/integration/LayoutIntegrationFormattingContextLayout.h:
* Source/WebCore/layout/integration/LayoutIntegrationUtils.cpp:
(WebCore::Layout::IntegrationUtils::maxContentLogicalWidth const):
(WebCore::Layout::IntegrationUtils::minContentLogicalWidth const):
(WebCore::Layout::IntegrationUtils::preferredWidthWithFormattingContextForBox const): Deleted.
* Source/WebCore/layout/integration/LayoutIntegrationUtils.h:
* Source/WebCore/rendering/RenderBox.h:
* Source/WebCore/rendering/RenderView.cpp:
(WebCore::RenderView::RenderView):

Canonical link: https://commits.webkit.org/283870@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