Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 42fd3abd4d0101ded3614d402b35ee70f561c204
      
https://github.com/WebKit/WebKit/commit/42fd3abd4d0101ded3614d402b35ee70f561c204
  Author: Sammy Gill <[email protected]>
  Date:   2026-02-04 (Wed, 04 Feb 2026)

  Changed paths:
    M Source/WebCore/layout/formattingContexts/grid/GridLayoutUtils.cpp
    M Source/WebCore/layout/formattingContexts/grid/GridLayoutUtils.h
    M Source/WebCore/layout/integration/LayoutIntegrationUtils.cpp

  Log Message:
  -----------
  [GFC] Content size suggestion of a grid item is its min-content width/height 
in horizontal writing modes
https://bugs.webkit.org/show_bug.cgi?id=306657
rdar://169306940

Reviewed by Alan Baradlay and Brandon Stewart.

Since we are currently working with the assumption that we have
horizontal writing mode and non-orthogonal content, when computing the
{inline, block}ContentSizeSuggestion we can just call into
IntegrationUtils::minContent{width, height}. Maybe this works for other
types of content too but we will certainly build up to that case!

* Source/WebCore/layout/formattingContexts/grid/GridLayoutUtils.cpp:
(WebCore::Layout::GridLayoutUtils::inlineContentSizeSuggestion):
(WebCore::Layout::GridLayoutUtils::blockContentSizeSuggestion):
(WebCore::Layout::GridLayoutUtils::automaticMinimumInlineSize):
(WebCore::Layout::GridLayoutUtils::automaticMinimumBlockSize):
(WebCore::Layout::GridLayoutUtils::usedInlineMinimumSize):
(WebCore::Layout::GridLayoutUtils::usedBlockMinimumSize):
Lots of plumbing to get Integrationutils into the content size
suggestion helpers.

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



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

Reply via email to