| Code-Review | +1 |
}I mildly prefer a lambda for this type of thing, e.g.
```
auto blah = [&](direction) {
};
blah(kForColumns);
blah(kForRows);
```
but up to you.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Exportable changes to web-platform-tests were detected in this CL and a pull request in the upstream repo has been made: https://github.com/web-platform-tests/wpt/pull/60705.
When this CL lands, the bot will automatically merge the PR on GitHub if the required GitHub checks pass; otherwise, ecosystem-infra@ team will triage the failures and may contact you.
WPT Export docs:
https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md#Automatic-export-process
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
I mildly prefer a lambda for this type of thing, e.g.
```
auto blah = [&](direction) {};
blah(kForColumns);
blah(kForRows);
```
but up to you.
Yeah that's a bit more explicit. Updated!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
2 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: third_party/blink/renderer/core/layout/grid_lanes/grid_lanes_layout_algorithm.cc
Insertions: 12, Deletions: 9.
@@ -301,15 +301,18 @@
GridLayoutData& layout_data = sizing_subtree.LayoutData();
// Rebuild inherited track collections for each subgridded axis.
- for (const auto direction : {kForColumns, kForRows}) {
- if (!layout_data.HasSubgriddedAxis(direction)) {
- continue;
- }
- layout_data.SetTrackCollection(CreateSubgridTrackCollection(
- subgridded_item_data, item.node.Style(), algorithm.GetConstraintSpace(),
- algorithm.BorderScrollbarPadding(), algorithm.GetGridAvailableSize(),
- direction));
- }
+ auto UpdateSubgridTrackCollectionForDirection =
+ [&](GridTrackSizingDirection direction) {
+ if (!layout_data.HasSubgriddedAxis(direction)) {
+ return;
+ }
+ layout_data.SetTrackCollection(CreateSubgridTrackCollection(
+ subgridded_item_data, item.node.Style(),
+ algorithm.GetConstraintSpace(), algorithm.BorderScrollbarPadding(),
+ algorithm.GetGridAvailableSize(), direction));
+ };
+ UpdateSubgridTrackCollectionForDirection(kForColumns);
+ UpdateSubgridTrackCollectionForDirection(kForRows);
// The subgrid's min/max sizes were cached during initial sizing against
// stale inherited tracks. Invalidate the cache so the standalone axis
```
[Masonry] Nested subgrid track rebuild for auto-placed subgrids
This is a follow up to CL:7946360.
`RebuildSubgridLayoutDataForResolvedPlacement` only updated the
immediate auto-placed subgrid's track collection after placement
resolved. Nested subgrids deeper in the subtree retained stale
collections built against placeholder tracks.
Add `RebuildNestedSubgridLayoutData` which recursively rebuilds
inherited track collections for each layer of nested subgrid, and
invalidates each subgrid's cached min/max sizes so the standalone axis
re-sizing sees the updated tracks.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
The WPT PR for this CL has been merged upstream! https://github.com/web-platform-tests/wpt/pull/60705
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |