Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f9f7258103d2bdb1fc701b99ca22ece641318ebb
https://github.com/WebKit/WebKit/commit/f9f7258103d2bdb1fc701b99ca22ece641318ebb
Author: Yulun Wu <[email protected]>
Date: 2026-02-27 (Fri, 27 Feb 2026)
Changed paths:
M Source/WebCore/layout/formattingContexts/grid/ImplicitGrid.cpp
M Source/WebCore/layout/formattingContexts/grid/ImplicitGrid.h
Log Message:
-----------
[GFC] Fix columnsCount() returning 0 when grid has no explicit rows.
https://bugs.webkit.org/show_bug.cgi?id=308575
<rdar://171102859>
Reviewed by Sammy Gill.
This PR fixes a bug where ImplicitGrid::columnsCount() incorrectly
returns 0 the implicit grid is constructed with zero rows.
We fix this by adding m_initialColumnsCount to the ImplicitGrid
which will track the totalColumnsCount passed in during construction
and save that information regardless of whether we we construct the
first row in m_gridMatrix.
Combined changes:
* Source/WebCore/layout/formattingContexts/grid/ImplicitGrid.cpp:
(WebCore::Layout::ImplicitGrid::ImplicitGrid):
* Source/WebCore/layout/formattingContexts/grid/ImplicitGrid.h:
(WebCore::Layout::ImplicitGrid::columnsCount const):
Canonical link: https://commits.webkit.org/308381@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications