Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2a296bbd1d209a42092f6e66720bbaf9d4b2cf83
https://github.com/WebKit/WebKit/commit/2a296bbd1d209a42092f6e66720bbaf9d4b2cf83
Author: Ahmad Saleem <[email protected]>
Date: 2026-06-09 (Tue, 09 Jun 2026)
Changed paths:
M Source/WebCore/rendering/AutoTableLayout.cpp
Log Message:
-----------
Share the percentage distribution loop in
AutoTableLayout::calcEffectiveLogicalWidth
https://bugs.webkit.org/show_bug.cgi?id=316662
rdar://179115241
Reviewed by Alan Baradlay.
The allColsArePercent branch and the converted-auto branch ran the same
loop distributing a spanning cell's min/max widths across its columns in
proportion to each column's percentage, differing only in the denominator
and how each column's percentage is sourced. Factor it into a
distributeByPercent() lambda parameterized by the total and a
percentForColumn callback (which returns std::nullopt to skip a column).
No change in behavior.
* Source/WebCore/rendering/AutoTableLayout.cpp:
(WebCore::AutoTableLayout::calcEffectiveLogicalWidth):
Canonical link: https://commits.webkit.org/314842@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications