Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 45a4b2842bcf708c06723a39c25deb2c2952f1f8
      
https://github.com/WebKit/WebKit/commit/45a4b2842bcf708c06723a39c25deb2c2952f1f8
  Author: Sammy Gill <[email protected]>
  Date:   2026-02-05 (Thu, 05 Feb 2026)

  Changed paths:
    M Source/WebCore/Headers.cmake
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    M Source/WebCore/layout/formattingContexts/grid/GridFormattingContext.cpp
    M Source/WebCore/layout/formattingContexts/grid/GridFormattingContext.h
    M Source/WebCore/layout/formattingContexts/grid/GridLayout.cpp
    M Source/WebCore/layout/formattingContexts/grid/GridLayout.h
    A Source/WebCore/layout/formattingContexts/grid/GridLayoutState.h
    M Source/WebCore/layout/integration/grid/LayoutIntegrationGridLayout.cpp

  Log Message:
  -----------
  [GFC] Introduce GridLayoutState
https://bugs.webkit.org/show_bug.cgi?id=307085
rdar://169720941

Reviewed by Alan Baradlay, Vitor Roriz, and Brandon Stewart.

There are many pieces of data that the formatting context receives (e.g.
layout constraints) or can compute before layout occurs (e.g. grid
definition) that layout may need. Currently we pass these pieces of data
individually into GridLayout::layout, but we can clean this up slightly
by introducing a new helper structure that aggregates these pieces of
information and pass that in instead.

Here we add GridLayoutState to serve that purpose. This should be an
immutable structure that GridLayout can query for different pieces of
information in order to make certain decisions during layout. We can
choose to continue to thread this structure throughout different places
in layout, but I choose to just unpack it at GridLayout::layout for now
for simplicity.

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



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

Reply via email to