[Masonry] Account for specified-tracks when in dense-packing [chromium/src : main]

0 views
Skip to first unread message

Celeste Pan (Gerrit)

unread,
Sep 18, 2025, 6:50:09 PM (5 days ago) Sep 18
to Alison Maher, Kurt Catti-Schmidt, Yanling Wang, Ian Kilpatrick, Hoch Hochkeppel, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
Attention needed from Alison Maher and Kurt Catti-Schmidt

New activity on the change

Open in Gerrit

Related details

Attention is currently required from:
  • Alison Maher
  • Kurt Catti-Schmidt
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I30428056a7ed9ea6cf92df4bddcf7a9e18b25574
Gerrit-Change-Number: 6967678
Gerrit-PatchSet: 2
Gerrit-Owner: Celeste Pan <celes...@microsoft.com>
Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
Gerrit-Reviewer: Celeste Pan <celes...@microsoft.com>
Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
Gerrit-CC: Hoch Hochkeppel <mho...@microsoft.com>
Gerrit-CC: Ian Kilpatrick <ikilp...@chromium.org>
Gerrit-CC: Yanling Wang <yanli...@microsoft.com>
Gerrit-Attention: Alison Maher <alm...@microsoft.com>
Gerrit-Attention: Kurt Catti-Schmidt <ksc...@microsoft.com>
Gerrit-Comment-Date: Thu, 18 Sep 2025 22:49:58 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Kurt Catti-Schmidt (Gerrit)

unread,
Sep 18, 2025, 8:02:27 PM (5 days ago) Sep 18
to Celeste Pan, Alison Maher, Yanling Wang, Ian Kilpatrick, Hoch Hochkeppel, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
Attention needed from Alison Maher and Celeste Pan

Kurt Catti-Schmidt added 3 comments

File third_party/blink/renderer/core/layout/masonry/masonry_layout_algorithm.cc
Line 302, Patchset 2 (Latest): bool has_user_specified_position = false;
Kurt Catti-Schmidt . unresolved

This variable is not used in this method. I think for encapsulation purposes, this makes more sense to be a private member variable in `MasonryRunningPositions`.

File third_party/blink/renderer/core/layout/masonry/masonry_running_positions.cc
Line 191, Patchset 2 (Latest): if (has_user_specified_position && item_span != initial_span) {
++item_span;
continue;
}

if (CalculateUsedTrackSize(item_span) != used_track_size) {
++item_span;
continue;
}
Kurt Catti-Schmidt . unresolved

These two can be combined into one condition:

```
if ((CalculateUsedTrackSize(item_span) != used_track_size) || (has_user_specified_position && (item_span != initial_span))) {
++item_span;
continue;
}
```

That'll read more literally like your comment too.

File third_party/blink/web_tests/wpt_internal/css/css-masonry/column-dense-packing-006.html
Line 1, Patchset 2 (Latest):<!DOCTYPE html>
<html>
<link rel="help" href="https://drafts.csswg.org/css-grid-3">
<link rel="match" href="column-dense-packing-006-ref.html">
<link rel="author" title="Celeste Pan" href="mailto:celes...@microsoft.com">
<style>
.masonry {
display: masonry;
item-tolerance: 0;
grid-template-columns: repeat(4, 50px);
grid-auto-flow: dense;
}
</style>
Kurt Catti-Schmidt . unresolved

Do you need row tests?

Open in Gerrit

Related details

Attention is currently required from:
  • Alison Maher
  • Celeste Pan
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I30428056a7ed9ea6cf92df4bddcf7a9e18b25574
    Gerrit-Change-Number: 6967678
    Gerrit-PatchSet: 2
    Gerrit-Owner: Celeste Pan <celes...@microsoft.com>
    Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
    Gerrit-Reviewer: Celeste Pan <celes...@microsoft.com>
    Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
    Gerrit-CC: Hoch Hochkeppel <mho...@microsoft.com>
    Gerrit-CC: Ian Kilpatrick <ikilp...@chromium.org>
    Gerrit-CC: Yanling Wang <yanli...@microsoft.com>
    Gerrit-Attention: Celeste Pan <celes...@microsoft.com>
    Gerrit-Attention: Alison Maher <alm...@microsoft.com>
    Gerrit-Comment-Date: Fri, 19 Sep 2025 00:02:15 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Alison Maher (Gerrit)

    unread,
    Sep 19, 2025, 11:13:56 AM (5 days ago) Sep 19
    to Celeste Pan, Kurt Catti-Schmidt, Yanling Wang, Ian Kilpatrick, Hoch Hochkeppel, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
    Attention needed from Celeste Pan

    Alison Maher added 3 comments

    File third_party/blink/renderer/core/layout/masonry/masonry_running_positions.h
    Line 120, Patchset 2 (Latest): // `has_user_specified_position` is an output parameter which will be set to
    Alison Maher . unresolved

    This should be has_author_specified_position, although a simpler name could be is_auto_placed and then you'd just need to reverse the logic

    File third_party/blink/renderer/core/layout/masonry/masonry_running_positions.cc
    Line 191, Patchset 2 (Latest): if (has_user_specified_position && item_span != initial_span) {
    ++item_span;
    continue;
    }
    Alison Maher . unresolved

    I'm wondering if another way to do this is by changing the max_iterations in this case before the while loop. Shouldn't the number of iterations in the auto placement case just be 1, in which case, then we'd only check starting in the current track

    File third_party/blink/web_tests/wpt_internal/css/css-masonry/column-dense-packing-multi-span-008-ref.html
    Line 20, Patchset 2 (Latest):</html>
    Alison Maher . unresolved

    missing extra line at the end

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Celeste Pan
    Gerrit-Comment-Date: Fri, 19 Sep 2025 15:13:46 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Celeste Pan (Gerrit)

    unread,
    Sep 22, 2025, 1:26:43 PM (2 days ago) Sep 22
    to Alison Maher, Kurt Catti-Schmidt, Yanling Wang, Ian Kilpatrick, Hoch Hochkeppel, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
    Attention needed from Alison Maher and Kurt Catti-Schmidt

    Celeste Pan added 6 comments

    File third_party/blink/renderer/core/layout/masonry/masonry_layout_algorithm.cc
    Line 302, Patchset 2: bool has_user_specified_position = false;
    Kurt Catti-Schmidt . unresolved

    This variable is not used in this method. I think for encapsulation purposes, this makes more sense to be a private member variable in `MasonryRunningPositions`.

    Celeste Pan

    Hm, it wouldn't really make sense as a private member variable since this is specific to each individual masonry item. This could also be a return value, but it seems a bit weird to have it as a return value because it's not really the whole purpose of the method.

    Personally I thought this was the best way, but if there are suggestions outside of using a private member variable I would love to hear them!

    File third_party/blink/renderer/core/layout/masonry/masonry_running_positions.h
    Line 120, Patchset 2: // `has_user_specified_position` is an output parameter which will be set to
    Alison Maher . resolved

    This should be has_author_specified_position, although a simpler name could be is_auto_placed and then you'd just need to reverse the logic

    Celeste Pan

    I like the `is_auto_placed` suggestion a lot, will use that!

    File third_party/blink/renderer/core/layout/masonry/masonry_running_positions.cc
    Line 191, Patchset 2: if (has_user_specified_position && item_span != initial_span) {
    ++item_span;
    continue;
    }
    Alison Maher . resolved

    I'm wondering if another way to do this is by changing the max_iterations in this case before the while loop. Shouldn't the number of iterations in the auto placement case just be 1, in which case, then we'd only check starting in the current track

    Celeste Pan

    I actually don't think we need to do the whole `max_iterations` business once we stop iterating from after the auto-placement cursor; we can just ensure the endline of `item_span` is within range.

    I think it makes sense to address this in the change where we always start our search for openings from the start of the track; even though the code changes there would be small, there would be a decent amount of test changes, so I think that should be separate from this.

    I'll make a TODO for that!

    Line 191, Patchset 2: if (has_user_specified_position && item_span != initial_span) {
    ++item_span;
    continue;
    }

    if (CalculateUsedTrackSize(item_span) != used_track_size) {
    ++item_span;
    continue;
    }
    Kurt Catti-Schmidt . resolved

    These two can be combined into one condition:

    ```
    if ((CalculateUsedTrackSize(item_span) != used_track_size) || (has_user_specified_position && (item_span != initial_span))) {
    ++item_span;
    continue;
    }
    ```

    That'll read more literally like your comment too.

    Celeste Pan

    Done

    File third_party/blink/web_tests/wpt_internal/css/css-masonry/column-dense-packing-006.html
    Line 1, Patchset 2:<!DOCTYPE html>

    <html>
    <link rel="help" href="https://drafts.csswg.org/css-grid-3">
    <link rel="match" href="column-dense-packing-006-ref.html">
    <link rel="author" title="Celeste Pan" href="mailto:celes...@microsoft.com">
    <style>
    .masonry {
    display: masonry;
    item-tolerance: 0;
    grid-template-columns: repeat(4, 50px);
    grid-auto-flow: dense;
    }
    </style>
    Kurt Catti-Schmidt . resolved

    Do you need row tests?

    Celeste Pan

    Yup, translated these tests into row tests!

    File third_party/blink/web_tests/wpt_internal/css/css-masonry/column-dense-packing-multi-span-008-ref.html
    Line 20, Patchset 2:</html>
    Alison Maher . resolved

    missing extra line at the end

    Celeste Pan

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Alison Maher
    • Kurt Catti-Schmidt
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I30428056a7ed9ea6cf92df4bddcf7a9e18b25574
    Gerrit-Change-Number: 6967678
    Gerrit-PatchSet: 3
    Gerrit-Owner: Celeste Pan <celes...@microsoft.com>
    Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
    Gerrit-Reviewer: Celeste Pan <celes...@microsoft.com>
    Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
    Gerrit-CC: Hoch Hochkeppel <mho...@microsoft.com>
    Gerrit-CC: Ian Kilpatrick <ikilp...@chromium.org>
    Gerrit-CC: Yanling Wang <yanli...@microsoft.com>
    Gerrit-Attention: Alison Maher <alm...@microsoft.com>
    Gerrit-Attention: Kurt Catti-Schmidt <ksc...@microsoft.com>
    Gerrit-Comment-Date: Mon, 22 Sep 2025 17:26:33 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Alison Maher <alm...@microsoft.com>
    Comment-In-Reply-To: Kurt Catti-Schmidt <ksc...@microsoft.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Kurt Catti-Schmidt (Gerrit)

    unread,
    Sep 22, 2025, 1:42:59 PM (2 days ago) Sep 22
    to Celeste Pan, Alison Maher, Yanling Wang, Ian Kilpatrick, Hoch Hochkeppel, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
    Attention needed from Alison Maher and Celeste Pan

    Kurt Catti-Schmidt added 2 comments

    File third_party/blink/renderer/core/layout/masonry/masonry_layout_algorithm.cc
    Line 302, Patchset 2: bool has_user_specified_position = false;
    Kurt Catti-Schmidt . unresolved

    This variable is not used in this method. I think for encapsulation purposes, this makes more sense to be a private member variable in `MasonryRunningPositions`.

    Celeste Pan

    Hm, it wouldn't really make sense as a private member variable since this is specific to each individual masonry item. This could also be a return value, but it seems a bit weird to have it as a return value because it's not really the whole purpose of the method.

    Personally I thought this was the best way, but if there are suggestions outside of using a private member variable I would love to hear them!

    Kurt Catti-Schmidt

    Since this is a property of an individual masonry item, it belongs in `GridItemData`. That way you won't need these out bools that hold state on a specific masonry item.

    It looks like you can't just look at the `resolved_position`, so you'll need to add another bool to `GridItemData`. There are already a bunch of these for similar purposes (e.g. `has_subgridded_columns`), so that seems like the best place to put it.

    File third_party/blink/renderer/core/layout/masonry/masonry_running_positions.h
    Line 121, Patchset 3 (Latest): // true if the item it auto-placed.
    Kurt Catti-Schmidt . unresolved

    Typo: "...is auto placed"

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Alison Maher
    • Celeste Pan
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I30428056a7ed9ea6cf92df4bddcf7a9e18b25574
    Gerrit-Change-Number: 6967678
    Gerrit-PatchSet: 3
    Gerrit-Owner: Celeste Pan <celes...@microsoft.com>
    Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
    Gerrit-Reviewer: Celeste Pan <celes...@microsoft.com>
    Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
    Gerrit-CC: Hoch Hochkeppel <mho...@microsoft.com>
    Gerrit-CC: Ian Kilpatrick <ikilp...@chromium.org>
    Gerrit-CC: Yanling Wang <yanli...@microsoft.com>
    Gerrit-Attention: Celeste Pan <celes...@microsoft.com>
    Gerrit-Attention: Alison Maher <alm...@microsoft.com>
    Gerrit-Comment-Date: Mon, 22 Sep 2025 17:42:47 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Celeste Pan <celes...@microsoft.com>
    Comment-In-Reply-To: Kurt Catti-Schmidt <ksc...@microsoft.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Celeste Pan (Gerrit)

    unread,
    Sep 22, 2025, 6:17:39 PM (2 days ago) Sep 22
    to Javier Fernandez, Alison Maher, Kurt Catti-Schmidt, Yanling Wang, Ian Kilpatrick, Hoch Hochkeppel, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
    Attention needed from Alison Maher and Kurt Catti-Schmidt

    Celeste Pan added 2 comments

    File third_party/blink/renderer/core/layout/masonry/masonry_layout_algorithm.cc
    Line 302, Patchset 2: bool has_user_specified_position = false;
    Kurt Catti-Schmidt . resolved

    This variable is not used in this method. I think for encapsulation purposes, this makes more sense to be a private member variable in `MasonryRunningPositions`.

    Celeste Pan

    Hm, it wouldn't really make sense as a private member variable since this is specific to each individual masonry item. This could also be a return value, but it seems a bit weird to have it as a return value because it's not really the whole purpose of the method.

    Personally I thought this was the best way, but if there are suggestions outside of using a private member variable I would love to hear them!

    Kurt Catti-Schmidt

    Since this is a property of an individual masonry item, it belongs in `GridItemData`. That way you won't need these out bools that hold state on a specific masonry item.

    It looks like you can't just look at the `resolved_position`, so you'll need to add another bool to `GridItemData`. There are already a bunch of these for similar purposes (e.g. `has_subgridded_columns`), so that seems like the best place to put it.

    Celeste Pan

    That's a good idea! I'll also just set the `is_auto_placed` value in the method where we actually resolve the lines for the masonry item.

    File third_party/blink/renderer/core/layout/masonry/masonry_running_positions.h
    Line 121, Patchset 3: // true if the item it auto-placed.
    Kurt Catti-Schmidt . resolved

    Typo: "...is auto placed"

    Celeste Pan

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Alison Maher
    • Kurt Catti-Schmidt
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I30428056a7ed9ea6cf92df4bddcf7a9e18b25574
    Gerrit-Change-Number: 6967678
    Gerrit-PatchSet: 4
    Gerrit-Owner: Celeste Pan <celes...@microsoft.com>
    Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
    Gerrit-Reviewer: Celeste Pan <celes...@microsoft.com>
    Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
    Gerrit-CC: Hoch Hochkeppel <mho...@microsoft.com>
    Gerrit-CC: Ian Kilpatrick <ikilp...@chromium.org>
    Gerrit-CC: Javier Fernandez <jfern...@igalia.com>
    Gerrit-CC: Yanling Wang <yanli...@microsoft.com>
    Gerrit-Attention: Alison Maher <alm...@microsoft.com>
    Gerrit-Attention: Kurt Catti-Schmidt <ksc...@microsoft.com>
    Gerrit-Comment-Date: Mon, 22 Sep 2025 22:17:26 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Kurt Catti-Schmidt (Gerrit)

    unread,
    Sep 22, 2025, 6:33:03 PM (2 days ago) Sep 22
    to Celeste Pan, Javier Fernandez, Alison Maher, Yanling Wang, Ian Kilpatrick, Hoch Hochkeppel, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
    Attention needed from Alison Maher and Celeste Pan

    Kurt Catti-Schmidt voted and added 1 comment

    Votes added by Kurt Catti-Schmidt

    Code-Review+1

    1 comment

    Patchset-level comments
    File-level comment, Patchset 4 (Latest):
    Kurt Catti-Schmidt . resolved

    LGTM but don't land until Alison gives a +1

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Alison Maher
    • Celeste Pan
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I30428056a7ed9ea6cf92df4bddcf7a9e18b25574
    Gerrit-Change-Number: 6967678
    Gerrit-PatchSet: 4
    Gerrit-Owner: Celeste Pan <celes...@microsoft.com>
    Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
    Gerrit-Reviewer: Celeste Pan <celes...@microsoft.com>
    Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
    Gerrit-CC: Hoch Hochkeppel <mho...@microsoft.com>
    Gerrit-CC: Ian Kilpatrick <ikilp...@chromium.org>
    Gerrit-CC: Javier Fernandez <jfern...@igalia.com>
    Gerrit-CC: Yanling Wang <yanli...@microsoft.com>
    Gerrit-Attention: Celeste Pan <celes...@microsoft.com>
    Gerrit-Attention: Alison Maher <alm...@microsoft.com>
    Gerrit-Comment-Date: Mon, 22 Sep 2025 22:32:51 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Alison Maher (Gerrit)

    unread,
    Sep 22, 2025, 7:00:48 PM (2 days ago) Sep 22
    to Celeste Pan, Kurt Catti-Schmidt, Javier Fernandez, Yanling Wang, Ian Kilpatrick, Hoch Hochkeppel, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
    Attention needed from Celeste Pan

    Alison Maher voted and added 2 comments

    Votes added by Alison Maher

    Code-Review+1

    2 comments

    File third_party/blink/renderer/core/layout/masonry/masonry_running_positions.cc
    Line 191, Patchset 4 (Latest): if ((CalculateUsedTrackSize(item_span) != used_track_size) ||
    Alison Maher . unresolved

    nit: I don't think this paren is needed

    Line 192, Patchset 4 (Latest): (!masonry_item.is_auto_placed && (item_span != initial_span))) {
    Alison Maher . unresolved

    nit: I don't think this paren is needed

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Celeste Pan
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I30428056a7ed9ea6cf92df4bddcf7a9e18b25574
      Gerrit-Change-Number: 6967678
      Gerrit-PatchSet: 4
      Gerrit-Owner: Celeste Pan <celes...@microsoft.com>
      Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
      Gerrit-Reviewer: Celeste Pan <celes...@microsoft.com>
      Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
      Gerrit-CC: Hoch Hochkeppel <mho...@microsoft.com>
      Gerrit-CC: Ian Kilpatrick <ikilp...@chromium.org>
      Gerrit-CC: Javier Fernandez <jfern...@igalia.com>
      Gerrit-CC: Yanling Wang <yanli...@microsoft.com>
      Gerrit-Attention: Celeste Pan <celes...@microsoft.com>
      Gerrit-Comment-Date: Mon, 22 Sep 2025 23:00:37 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Celeste Pan (Gerrit)

      unread,
      Sep 23, 2025, 1:45:24 PM (12 hours ago) Sep 23
      to Alison Maher, Kurt Catti-Schmidt, Javier Fernandez, Yanling Wang, Ian Kilpatrick, Hoch Hochkeppel, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org

      Celeste Pan added 2 comments

      File third_party/blink/renderer/core/layout/masonry/masonry_running_positions.cc
      Line 191, Patchset 4: if ((CalculateUsedTrackSize(item_span) != used_track_size) ||
      Alison Maher . resolved

      nit: I don't think this paren is needed

      Celeste Pan

      Done

      Line 192, Patchset 4: (!masonry_item.is_auto_placed && (item_span != initial_span))) {
      Alison Maher . resolved

      nit: I don't think this paren is needed

      Celeste Pan

      Done

      Open in Gerrit

      Related details

      Attention set is empty
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I30428056a7ed9ea6cf92df4bddcf7a9e18b25574
      Gerrit-Change-Number: 6967678
      Gerrit-PatchSet: 5
      Gerrit-Owner: Celeste Pan <celes...@microsoft.com>
      Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
      Gerrit-Reviewer: Celeste Pan <celes...@microsoft.com>
      Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
      Gerrit-CC: Hoch Hochkeppel <mho...@microsoft.com>
      Gerrit-CC: Ian Kilpatrick <ikilp...@chromium.org>
      Gerrit-CC: Javier Fernandez <jfern...@igalia.com>
      Gerrit-CC: Yanling Wang <yanli...@microsoft.com>
      Gerrit-Comment-Date: Tue, 23 Sep 2025 17:45:12 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Alison Maher <alm...@microsoft.com>
      satisfied_requirement
      open
      diffy

      Celeste Pan (Gerrit)

      unread,
      Sep 23, 2025, 1:45:26 PM (12 hours ago) Sep 23
      to Alison Maher, Kurt Catti-Schmidt, Javier Fernandez, Yanling Wang, Ian Kilpatrick, Hoch Hochkeppel, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org

      Celeste Pan voted Commit-Queue+2

      Commit-Queue+2
      Gerrit-Comment-Date: Tue, 23 Sep 2025 17:45:16 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      Sep 23, 2025, 8:30:48 PM (5 hours ago) Sep 23
      to Celeste Pan, Alison Maher, Kurt Catti-Schmidt, Javier Fernandez, Yanling Wang, Ian Kilpatrick, Hoch Hochkeppel, AyeAye, chromium...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org

      Chromium LUCI CQ submitted the change with unreviewed changes

      Unreviewed changes

      4 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/masonry/masonry_running_positions.cc
      Insertions: 2, Deletions: 2.

      @@ -188,8 +188,8 @@
      // If the used track size of the item doesn't match the total track size of
      // the span OR if the item we are attempting to place has a user-specified
      // position that doesn't match the current span, move onto the next span.
      - if ((CalculateUsedTrackSize(item_span) != used_track_size) ||
      - (!masonry_item.is_auto_placed && (item_span != initial_span))) {
      + if (CalculateUsedTrackSize(item_span) != used_track_size ||
      + (!masonry_item.is_auto_placed && item_span != initial_span)) {
      ++item_span;
      continue;
      }
      ```

      Change information

      Commit message:
      [Masonry] Account for specified-tracks when in dense-packing

      If an item has a specified track and dense-packing is enabled, only
      place the item in openings in the specified track.
      Bug: 343257585
      Change-Id: I30428056a7ed9ea6cf92df4bddcf7a9e18b25574
      Commit-Queue: Celeste Pan <celes...@microsoft.com>
      Reviewed-by: Alison Maher <alm...@microsoft.com>
      Reviewed-by: Kurt Catti-Schmidt <ksc...@microsoft.com>
      Cr-Commit-Position: refs/heads/main@{#1519695}
      Files:
      • M third_party/blink/renderer/core/layout/grid/grid_item.h
      • M third_party/blink/renderer/core/layout/masonry/masonry_node.cc
      • M third_party/blink/renderer/core/layout/masonry/masonry_running_positions.cc
      • A third_party/blink/web_tests/wpt_internal/css/css-masonry/column-dense-packing-006-ref.html
      • A third_party/blink/web_tests/wpt_internal/css/css-masonry/column-dense-packing-006.html
      • A third_party/blink/web_tests/wpt_internal/css/css-masonry/column-dense-packing-multi-span-008-ref.html
      • A third_party/blink/web_tests/wpt_internal/css/css-masonry/column-dense-packing-multi-span-008.html
      • A third_party/blink/web_tests/wpt_internal/css/css-masonry/row-dense-packing-004-ref.html
      • A third_party/blink/web_tests/wpt_internal/css/css-masonry/row-dense-packing-004.html
      • A third_party/blink/web_tests/wpt_internal/css/css-masonry/row-dense-packing-multi-span-004-ref.html
      • A third_party/blink/web_tests/wpt_internal/css/css-masonry/row-dense-packing-multi-span-004.html
      Change size: M
      Delta: 11 files changed, 223 insertions(+), 8 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Alison Maher, +1 by Kurt Catti-Schmidt
      Open in Gerrit
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: merged
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I30428056a7ed9ea6cf92df4bddcf7a9e18b25574
      Gerrit-Change-Number: 6967678
      Gerrit-PatchSet: 6
      Gerrit-Owner: Celeste Pan <celes...@microsoft.com>
      Gerrit-Reviewer: Alison Maher <alm...@microsoft.com>
      Gerrit-Reviewer: Celeste Pan <celes...@microsoft.com>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Kurt Catti-Schmidt <ksc...@microsoft.com>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages