Check negative margin sizes for min-content while computing indent position [chromium/src : main]

0 views
Skip to first unread message

Nishaanth Shriram M S (Gerrit)

unread,
Mar 26, 2026, 8:15:57 AMMar 26
to Fredrik Söderquist, Kent Tamura, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
Attention needed from Fredrik Söderquist and Kent Tamura

Nishaanth Shriram M S voted

Auto-Submit+1
Commit-Queue+2
Open in Gerrit

Related details

Attention is currently required from:
  • Fredrik Söderquist
  • Kent Tamura
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
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: Id954d9463407ef4f858005026692398fdd91b296
Gerrit-Change-Number: 7703993
Gerrit-PatchSet: 3
Gerrit-Owner: Nishaanth Shriram M S <nishaanth...@gmail.com>
Gerrit-Reviewer: Fredrik Söderquist <f...@opera.com>
Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
Gerrit-Reviewer: Nishaanth Shriram M S <nishaanth...@gmail.com>
Gerrit-Attention: Fredrik Söderquist <f...@opera.com>
Gerrit-Attention: Kent Tamura <tk...@chromium.org>
Gerrit-Comment-Date: Thu, 26 Mar 2026 12:15:50 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Fredrik Söderquist (Gerrit)

unread,
Mar 26, 2026, 8:38:48 AMMar 26
to Nishaanth Shriram M S, Koji Ishii, Kent Tamura, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
Attention needed from Kent Tamura, Koji Ishii and Nishaanth Shriram M S

Fredrik Söderquist added 1 comment

Commit Message
Line 9, Patchset 4 (Latest):Bug: Using negative margins can offset the indent position which isn't checked in debug builds
Change-Id: Id954d9463407ef4f858005026692398fdd91b296
Failing DCHECK:
DCHECK_EQ(should_break_at_first_opportunity,
is_at_mid_word ||
(has_cloned_box_decorations_ &&
cloned_box_decorations_initial_size_ > LayoutUnit()));


How to produce the issue: In debug/component build and visit accounts.zoho.com
Fredrik Söderquist . unresolved

This commit message looks supremely weird. Let's keep the `Change-Id` as the last line. I'd also suggest actually filing a bug. otherwise drop the `Bug:` directive.

Open in Gerrit

Related details

Attention is currently required from:
  • Kent Tamura
  • Koji Ishii
  • Nishaanth Shriram M S
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    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: Id954d9463407ef4f858005026692398fdd91b296
    Gerrit-Change-Number: 7703993
    Gerrit-PatchSet: 4
    Gerrit-Owner: Nishaanth Shriram M S <nishaanth...@gmail.com>
    Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
    Gerrit-Reviewer: Koji Ishii <ko...@chromium.org>
    Gerrit-Reviewer: Nishaanth Shriram M S <nishaanth...@gmail.com>
    Gerrit-CC: Fredrik Söderquist <f...@opera.com>
    Gerrit-Attention: Nishaanth Shriram M S <nishaanth...@gmail.com>
    Gerrit-Attention: Koji Ishii <ko...@chromium.org>
    Gerrit-Attention: Kent Tamura <tk...@chromium.org>
    Gerrit-Comment-Date: Thu, 26 Mar 2026 12:38:37 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Kent Tamura (Gerrit)

    unread,
    Mar 26, 2026, 7:51:21 PMMar 26
    to Nishaanth Shriram M S, Koji Ishii, Fredrik Söderquist, Kent Tamura, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
    Attention needed from Koji Ishii and Nishaanth Shriram M S

    Kent Tamura added 1 comment

    Patchset-level comments
    File-level comment, Patchset 4 (Latest):
    Kent Tamura . unresolved

    Please add a test.

    Open in Gerrit

    Related details

    Attention is currently required from:
    Gerrit-Comment-Date: Thu, 26 Mar 2026 23:50:41 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Nishaanth Shriram M S (Gerrit)

    unread,
    Mar 27, 2026, 1:07:25 AMMar 27
    to Koji Ishii, Fredrik Söderquist, Kent Tamura, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
    Attention needed from Fredrik Söderquist and Koji Ishii

    Nishaanth Shriram M S voted and added 1 comment

    Votes added by Nishaanth Shriram M S

    Auto-Submit+1

    1 comment

    Commit Message
    Line 9, Patchset 4:Bug: Using negative margins can offset the indent position which isn't checked in debug builds

    Change-Id: Id954d9463407ef4f858005026692398fdd91b296
    Failing DCHECK:
    DCHECK_EQ(should_break_at_first_opportunity,
    is_at_mid_word ||
    (has_cloned_box_decorations_ &&
    cloned_box_decorations_initial_size_ > LayoutUnit()));


    How to produce the issue: In debug/component build and visit accounts.zoho.com
    Fredrik Söderquist . resolved

    This commit message looks supremely weird. Let's keep the `Change-Id` as the last line. I'd also suggest actually filing a bug. otherwise drop the `Bug:` directive.

    Nishaanth Shriram M S

    Sorry about that, I edited the message in the end.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Fredrik Söderquist
    • Koji Ishii
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    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: Id954d9463407ef4f858005026692398fdd91b296
    Gerrit-Change-Number: 7703993
    Gerrit-PatchSet: 7
    Gerrit-Owner: Nishaanth Shriram M S <nishaanth...@gmail.com>
    Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
    Gerrit-Reviewer: Koji Ishii <ko...@chromium.org>
    Gerrit-Reviewer: Nishaanth Shriram M S <nishaanth...@gmail.com>
    Gerrit-CC: Fredrik Söderquist <f...@opera.com>
    Gerrit-Attention: Fredrik Söderquist <f...@opera.com>
    Gerrit-Attention: Koji Ishii <ko...@chromium.org>
    Gerrit-Comment-Date: Fri, 27 Mar 2026 05:06:57 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Fredrik Söderquist <f...@opera.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Nishaanth Shriram M S (Gerrit)

    unread,
    Mar 27, 2026, 1:09:26 AMMar 27
    to Koji Ishii, Fredrik Söderquist, Kent Tamura, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
    Attention needed from Fredrik Söderquist, Kent Tamura and Koji Ishii

    Nishaanth Shriram M S voted and added 1 comment

    Votes added by Nishaanth Shriram M S

    Auto-Submit+1
    Commit-Queue+2

    1 comment

    Patchset-level comments
    File-level comment, Patchset 4:
    Kent Tamura . resolved

    Please add a test.

    Nishaanth Shriram M S

    Added it. Thanks! Do you normally run tests with EXPENSIVE_DCHECKS on?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Fredrik Söderquist
    • Kent Tamura
    • Koji Ishii
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      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: Id954d9463407ef4f858005026692398fdd91b296
      Gerrit-Change-Number: 7703993
      Gerrit-PatchSet: 7
      Gerrit-Owner: Nishaanth Shriram M S <nishaanth...@gmail.com>
      Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
      Gerrit-Reviewer: Koji Ishii <ko...@chromium.org>
      Gerrit-Reviewer: Nishaanth Shriram M S <nishaanth...@gmail.com>
      Gerrit-CC: Fredrik Söderquist <f...@opera.com>
      Gerrit-Attention: Fredrik Söderquist <f...@opera.com>
      Gerrit-Attention: Kent Tamura <tk...@chromium.org>
      Gerrit-Attention: Koji Ishii <ko...@chromium.org>
      Gerrit-Comment-Date: Fri, 27 Mar 2026 05:08:48 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Kent Tamura <tk...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Nishaanth Shriram M S (Gerrit)

      unread,
      Mar 27, 2026, 3:56:37 AMMar 27
      to Kent Tamura, Koji Ishii, Fredrik Söderquist, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
      Attention needed from Fredrik Söderquist and Koji Ishii

      Nishaanth Shriram M S voted and added 1 comment

      Votes added by Nishaanth Shriram M S

      Auto-Submit+1

      1 comment

      Commit Message
      Line 9, Patchset 4:Bug: Using negative margins can offset the indent position which isn't checked in debug builds
      Change-Id: Id954d9463407ef4f858005026692398fdd91b296
      Failing DCHECK:
      DCHECK_EQ(should_break_at_first_opportunity,
      is_at_mid_word ||
      (has_cloned_box_decorations_ &&
      cloned_box_decorations_initial_size_ > LayoutUnit()));


      How to produce the issue: In debug/component build and visit accounts.zoho.com
      Fredrik Söderquist . resolved

      This commit message looks supremely weird. Let's keep the `Change-Id` as the last line. I'd also suggest actually filing a bug. otherwise drop the `Bug:` directive.

      Nishaanth Shriram M S

      Sorry about that, I edited the message in the end.

      Nishaanth Shriram M S

      I've filed a bug and linked it. https://issues.chromium.org/issues/496807859

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Fredrik Söderquist
      • Koji Ishii
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      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: Id954d9463407ef4f858005026692398fdd91b296
      Gerrit-Change-Number: 7703993
      Gerrit-PatchSet: 10
      Gerrit-Owner: Nishaanth Shriram M S <nishaanth...@gmail.com>
      Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
      Gerrit-Reviewer: Koji Ishii <ko...@chromium.org>
      Gerrit-Reviewer: Nishaanth Shriram M S <nishaanth...@gmail.com>
      Gerrit-CC: Fredrik Söderquist <f...@opera.com>
      Gerrit-Attention: Fredrik Söderquist <f...@opera.com>
      Gerrit-Attention: Koji Ishii <ko...@chromium.org>
      Gerrit-Comment-Date: Fri, 27 Mar 2026 07:56:11 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Nishaanth Shriram M S <nishaanth...@gmail.com>
      Comment-In-Reply-To: Fredrik Söderquist <f...@opera.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Koji Ishii (Gerrit)

      unread,
      Mar 27, 2026, 7:08:44 AMMar 27
      to Nishaanth Shriram M S, Kent Tamura, Fredrik Söderquist, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
      Attention needed from Fredrik Söderquist and Nishaanth Shriram M S

      Koji Ishii added 4 comments

      Patchset-level comments
      File-level comment, Patchset 10 (Latest):
      Koji Ishii . resolved

      Thanks for finding this issue, filing it, and trying to fix. Please see inline:

      Commit Message
      Line 9, Patchset 10 (Latest):Bug: https://issues.chromium.org/issues/496807859
      Koji Ishii . unresolved

      Can you change this line to:
      ```
      Bug: 496807859
      ```

      Line 10, Patchset 10 (Latest):
      Koji Ishii . unresolved

      Please remove this blank line.

      File third_party/blink/renderer/core/layout/inline/line_breaker.cc
      Line 1846, Patchset 10 (Latest): } else if (line_info->Results().size() > 1) [[unlikely]] {
      Koji Ishii . unresolved

      Hmm...this is quite a common case, no? We will run into this code path for:
      ```html
      <span><span>text</span></span>
      ```
      or
      ```html
      text<span>text</span>
      ```
      correct?

      While fixing the failure is great, I'm afraid of loosing the performance gain by this fast code path in too common cases.

      Can you try to find a way to limit `return false` in more rare cases, or other ways to fix this?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Fredrik Söderquist
      • Nishaanth Shriram M S
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedReview-Enforcement
        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: Id954d9463407ef4f858005026692398fdd91b296
        Gerrit-Change-Number: 7703993
        Gerrit-PatchSet: 10
        Gerrit-Owner: Nishaanth Shriram M S <nishaanth...@gmail.com>
        Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
        Gerrit-Reviewer: Koji Ishii <ko...@chromium.org>
        Gerrit-Reviewer: Nishaanth Shriram M S <nishaanth...@gmail.com>
        Gerrit-CC: Fredrik Söderquist <f...@opera.com>
        Gerrit-Attention: Nishaanth Shriram M S <nishaanth...@gmail.com>
        Gerrit-Attention: Fredrik Söderquist <f...@opera.com>
        Gerrit-Comment-Date: Fri, 27 Mar 2026 11:08:08 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Nishaanth Shriram M S (Gerrit)

        unread,
        Mar 27, 2026, 8:14:07 AMMar 27
        to Kent Tamura, Koji Ishii, Fredrik Söderquist, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
        Attention needed from Fredrik Söderquist and Koji Ishii

        Nishaanth Shriram M S voted and added 3 comments

        Votes added by Nishaanth Shriram M S

        Auto-Submit+1

        3 comments

        Commit Message

        Can you change this line to:
        ```
        Bug: 496807859
        ```

        Nishaanth Shriram M S

        Done

        Line 10, Patchset 10:
        Koji Ishii . resolved

        Please remove this blank line.

        Nishaanth Shriram M S

        Done

        File third_party/blink/renderer/core/layout/inline/line_breaker.cc
        Line 1846, Patchset 10: } else if (line_info->Results().size() > 1) [[unlikely]] {
        Koji Ishii . unresolved

        Hmm...this is quite a common case, no? We will run into this code path for:
        ```html
        <span><span>text</span></span>
        ```
        or
        ```html
        text<span>text</span>
        ```
        correct?

        While fixing the failure is great, I'm afraid of loosing the performance gain by this fast code path in too common cases.

        Can you try to find a way to limit `return false` in more rare cases, or other ways to fix this?

        Nishaanth Shriram M S

        Oh yes. Guess didn't think of its occurrance without the margin values. Then I guess the DCHECK it self must be corrected in that case. What do you think?

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Fredrik Söderquist
        • Koji Ishii
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedReview-Enforcement
        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: Id954d9463407ef4f858005026692398fdd91b296
        Gerrit-Change-Number: 7703993
        Gerrit-PatchSet: 11
        Gerrit-Owner: Nishaanth Shriram M S <nishaanth...@gmail.com>
        Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
        Gerrit-Reviewer: Koji Ishii <ko...@chromium.org>
        Gerrit-Reviewer: Nishaanth Shriram M S <nishaanth...@gmail.com>
        Gerrit-CC: Fredrik Söderquist <f...@opera.com>
        Gerrit-Attention: Fredrik Söderquist <f...@opera.com>
        Gerrit-Attention: Koji Ishii <ko...@chromium.org>
        Gerrit-Comment-Date: Fri, 27 Mar 2026 12:13:31 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: Koji Ishii <ko...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        chromeperf@appspot.gserviceaccount.com (Gerrit)

        unread,
        Mar 27, 2026, 8:29:19 AMMar 27
        to Nishaanth Shriram M S, Kent Tamura, Koji Ishii, Fredrik Söderquist, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
        Attention needed from Fredrik Söderquist, Koji Ishii and Nishaanth Shriram M S

        Message from chrom...@appspot.gserviceaccount.com

        📍 Job mac-m1_mini_2020-perf/speedometer3 complete.

        See results at: https://pinpoint-dot-chromeperf.appspot.com/job/12cd907d090000

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Fredrik Söderquist
        • Koji Ishii
        • Nishaanth Shriram M S
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedReview-Enforcement
        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: Id954d9463407ef4f858005026692398fdd91b296
        Gerrit-Change-Number: 7703993
        Gerrit-PatchSet: 11
        Gerrit-Owner: Nishaanth Shriram M S <nishaanth...@gmail.com>
        Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
        Gerrit-Reviewer: Koji Ishii <ko...@chromium.org>
        Gerrit-Reviewer: Nishaanth Shriram M S <nishaanth...@gmail.com>
        Gerrit-CC: Fredrik Söderquist <f...@opera.com>
        Gerrit-Attention: Fredrik Söderquist <f...@opera.com>
        Gerrit-Attention: Koji Ishii <ko...@chromium.org>
        Gerrit-Comment-Date: Fri, 27 Mar 2026 12:29:08 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        chromeperf@appspot.gserviceaccount.com (Gerrit)

        unread,
        Mar 27, 2026, 8:50:37 AMMar 27
        to Nishaanth Shriram M S, Kent Tamura, Koji Ishii, Fredrik Söderquist, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
        Attention needed from Fredrik Söderquist, Koji Ishii and Nishaanth Shriram M S

        Message from chrom...@appspot.gserviceaccount.com

        😿 Job linux-perf/blink_perf.layout failed.

        See results at: https://pinpoint-dot-chromeperf.appspot.com/job/12143b57090000

        Gerrit-Comment-Date: Fri, 27 Mar 2026 12:50:28 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Nishaanth Shriram M S (Gerrit)

        unread,
        Mar 30, 2026, 1:07:36 AMMar 30
        to chrom...@appspot.gserviceaccount.com, Kent Tamura, Koji Ishii, Fredrik Söderquist, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
        Attention needed from Fredrik Söderquist and Koji Ishii

        Nishaanth Shriram M S voted and added 1 comment

        Votes added by Nishaanth Shriram M S

        Auto-Submit+1

        1 comment

        File third_party/blink/renderer/core/layout/inline/line_breaker.cc
        Line 1846, Patchset 10: } else if (line_info->Results().size() > 1) [[unlikely]] {
        Koji Ishii . resolved

        Hmm...this is quite a common case, no? We will run into this code path for:
        ```html
        <span><span>text</span></span>
        ```
        or
        ```html
        text<span>text</span>
        ```
        correct?

        While fixing the failure is great, I'm afraid of loosing the performance gain by this fast code path in too common cases.

        Can you try to find a way to limit `return false` in more rare cases, or other ways to fix this?

        Nishaanth Shriram M S

        Oh yes. Guess didn't think of its occurrance without the margin values. Then I guess the DCHECK it self must be corrected in that case. What do you think?

        Nishaanth Shriram M S

        I have updated the DCHECK to account for the right width. Can you check?

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Fredrik Söderquist
        • Koji Ishii
        Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedReview-Enforcement
          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: Id954d9463407ef4f858005026692398fdd91b296
          Gerrit-Change-Number: 7703993
          Gerrit-PatchSet: 11
          Gerrit-Owner: Nishaanth Shriram M S <nishaanth...@gmail.com>
          Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
          Gerrit-Reviewer: Koji Ishii <ko...@chromium.org>
          Gerrit-Reviewer: Nishaanth Shriram M S <nishaanth...@gmail.com>
          Gerrit-CC: Fredrik Söderquist <f...@opera.com>
          Gerrit-Attention: Fredrik Söderquist <f...@opera.com>
          Gerrit-Attention: Koji Ishii <ko...@chromium.org>
          Gerrit-Comment-Date: Mon, 30 Mar 2026 05:07:09 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          Comment-In-Reply-To: Nishaanth Shriram M S <nishaanth...@gmail.com>
          Comment-In-Reply-To: Koji Ishii <ko...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Nishaanth Shriram M S (Gerrit)

          unread,
          Apr 1, 2026, 5:13:11 AM (12 days ago) Apr 1
          to chrom...@appspot.gserviceaccount.com, Kent Tamura, Koji Ishii, Fredrik Söderquist, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
          Attention needed from Fredrik Söderquist and Koji Ishii

          Nishaanth Shriram M S voted and added 1 comment

          Votes added by Nishaanth Shriram M S

          Auto-Submit+1

          1 comment

          Patchset-level comments
          File-level comment, Patchset 12 (Latest):
          Nishaanth Shriram M S . resolved

          HI @ko...@chromium.org @tk...@chromium.org @f...@opera.com Any update on this Pull request?

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Fredrik Söderquist
          • Koji Ishii
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedReview-Enforcement
          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: Id954d9463407ef4f858005026692398fdd91b296
          Gerrit-Change-Number: 7703993
          Gerrit-PatchSet: 12
          Gerrit-Owner: Nishaanth Shriram M S <nishaanth...@gmail.com>
          Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
          Gerrit-Reviewer: Koji Ishii <ko...@chromium.org>
          Gerrit-Reviewer: Nishaanth Shriram M S <nishaanth...@gmail.com>
          Gerrit-CC: Fredrik Söderquist <f...@opera.com>
          Gerrit-Attention: Fredrik Söderquist <f...@opera.com>
          Gerrit-Attention: Koji Ishii <ko...@chromium.org>
          Gerrit-Comment-Date: Wed, 01 Apr 2026 09:12:40 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Nishaanth Shriram M S (Gerrit)

          unread,
          Apr 6, 2026, 2:19:23 AM (7 days ago) Apr 6
          to Kent Tamura, chrom...@appspot.gserviceaccount.com, Koji Ishii, Fredrik Söderquist, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
          Attention needed from Fredrik Söderquist and Koji Ishii

          Nishaanth Shriram M S voted and added 1 comment

          Votes added by Nishaanth Shriram M S

          Auto-Submit+1

          1 comment

          Patchset-level comments
          Nishaanth Shriram M S . resolved

          hi @tk...@chromium.orgCan you review this CL?

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Fredrik Söderquist
          • Koji Ishii
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedReview-Enforcement
          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: Id954d9463407ef4f858005026692398fdd91b296
          Gerrit-Change-Number: 7703993
          Gerrit-PatchSet: 13
          Gerrit-Owner: Nishaanth Shriram M S <nishaanth...@gmail.com>
          Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
          Gerrit-Reviewer: Koji Ishii <ko...@chromium.org>
          Gerrit-Reviewer: Nishaanth Shriram M S <nishaanth...@gmail.com>
          Gerrit-CC: Fredrik Söderquist <f...@opera.com>
          Gerrit-Attention: Fredrik Söderquist <f...@opera.com>
          Gerrit-Attention: Koji Ishii <ko...@chromium.org>
          Gerrit-Comment-Date: Mon, 06 Apr 2026 06:18:48 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Nishaanth Shriram M S (Gerrit)

          unread,
          Apr 6, 2026, 2:19:43 AM (7 days ago) Apr 6
          to Kent Tamura, chrom...@appspot.gserviceaccount.com, Koji Ishii, Fredrik Söderquist, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
          Attention needed from Fredrik Söderquist and Koji Ishii

          Nishaanth Shriram M S added 1 comment

          Patchset-level comments
          Nishaanth Shriram M S . resolved

          hi @tk...@chromium.orgCan you review this CL?

          Nishaanth Shriram M S
          Gerrit-Comment-Date: Mon, 06 Apr 2026 06:19:14 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Nishaanth Shriram M S <nishaanth...@gmail.com>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Nishaanth Shriram M S (Gerrit)

          unread,
          Apr 7, 2026, 1:14:50 AM (6 days ago) Apr 7
          to Kent Tamura, chrom...@appspot.gserviceaccount.com, Koji Ishii, Fredrik Söderquist, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
          Attention needed from Fredrik Söderquist, Koji Ishii and Nishaanth Shriram M S

          Nishaanth Shriram M S voted Commit-Queue+2

          Commit-Queue+2
          Open in Gerrit

          Related details

          Attention is currently required from:
          • Fredrik Söderquist
          • Koji Ishii
          • Nishaanth Shriram M S
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedReview-Enforcement
          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: Id954d9463407ef4f858005026692398fdd91b296
          Gerrit-Change-Number: 7703993
          Gerrit-PatchSet: 13
          Gerrit-Owner: Nishaanth Shriram M S <nishaanth...@gmail.com>
          Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
          Gerrit-Reviewer: Koji Ishii <ko...@chromium.org>
          Gerrit-Reviewer: Nishaanth Shriram M S <nishaanth...@gmail.com>
          Gerrit-CC: Fredrik Söderquist <f...@opera.com>
          Gerrit-Attention: Nishaanth Shriram M S <nishaanth...@gmail.com>
          Gerrit-Attention: Fredrik Söderquist <f...@opera.com>
          Gerrit-Attention: Koji Ishii <ko...@chromium.org>
          Gerrit-Comment-Date: Tue, 07 Apr 2026 05:14:21 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Kent Tamura (Gerrit)

          unread,
          Apr 7, 2026, 1:43:58 AM (6 days ago) Apr 7
          to Nishaanth Shriram M S, Kent Tamura, chrom...@appspot.gserviceaccount.com, Koji Ishii, Fredrik Söderquist, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
          Attention needed from Fredrik Söderquist, Koji Ishii and Nishaanth Shriram M S

          Kent Tamura added 1 comment

          Patchset-level comments
          Nishaanth Shriram M S . resolved

          hi @tk...@chromium.orgCan you review this CL?

          Nishaanth Shriram M S

          @tk...@chromium.org

          Kent Tamura

          I'll leave the review of this to @ko...@chromium.org .

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Fredrik Söderquist
          • Koji Ishii
          • Nishaanth Shriram M S
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedReview-Enforcement
          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: Id954d9463407ef4f858005026692398fdd91b296
          Gerrit-Change-Number: 7703993
          Gerrit-PatchSet: 13
          Gerrit-Owner: Nishaanth Shriram M S <nishaanth...@gmail.com>
          Gerrit-Reviewer: Koji Ishii <ko...@chromium.org>
          Gerrit-Reviewer: Nishaanth Shriram M S <nishaanth...@gmail.com>
          Gerrit-CC: Fredrik Söderquist <f...@opera.com>
          Gerrit-CC: Kent Tamura <tk...@chromium.org>
          Gerrit-Attention: Nishaanth Shriram M S <nishaanth...@gmail.com>
          Gerrit-Attention: Fredrik Söderquist <f...@opera.com>
          Gerrit-Attention: Koji Ishii <ko...@chromium.org>
          Gerrit-Comment-Date: Tue, 07 Apr 2026 05:43:27 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Nishaanth Shriram M S <nishaanth...@gmail.com>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Koji Ishii (Gerrit)

          unread,
          12:53 AM (7 hours ago) 12:53 AM
          to Nishaanth Shriram M S, Kent Tamura, chrom...@appspot.gserviceaccount.com, Fredrik Söderquist, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
          Attention needed from Fredrik Söderquist and Nishaanth Shriram M S

          Koji Ishii voted and added 1 comment

          Votes added by Koji Ishii

          Code-Review+1

          1 comment

          Patchset-level comments
          Koji Ishii . resolved

          lgtm, thanks

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Fredrik Söderquist
          • Nishaanth Shriram M S
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedReview-Enforcement
          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: Id954d9463407ef4f858005026692398fdd91b296
          Gerrit-Change-Number: 7703993
          Gerrit-PatchSet: 13
          Gerrit-Owner: Nishaanth Shriram M S <nishaanth...@gmail.com>
          Gerrit-Reviewer: Koji Ishii <ko...@chromium.org>
          Gerrit-Reviewer: Nishaanth Shriram M S <nishaanth...@gmail.com>
          Gerrit-CC: Fredrik Söderquist <f...@opera.com>
          Gerrit-CC: Kent Tamura <tk...@chromium.org>
          Gerrit-Attention: Nishaanth Shriram M S <nishaanth...@gmail.com>
          Gerrit-Attention: Fredrik Söderquist <f...@opera.com>
          Gerrit-Comment-Date: Mon, 13 Apr 2026 04:52:41 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Nishaanth Shriram M S (Gerrit)

          unread,
          5:49 AM (3 hours ago) 5:49 AM
          to Koji Ishii, Kent Tamura, chrom...@appspot.gserviceaccount.com, Fredrik Söderquist, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
          Attention needed from Fredrik Söderquist

          Nishaanth Shriram M S voted and added 1 comment

          Votes added by Nishaanth Shriram M S

          Commit-Queue+2

          1 comment

          Patchset-level comments
          Nishaanth Shriram M S . resolved

          Related details

          Attention is currently required from:
          • Fredrik Söderquist
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedReview-Enforcement
          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: Id954d9463407ef4f858005026692398fdd91b296
          Gerrit-Change-Number: 7703993
          Gerrit-PatchSet: 13
          Gerrit-Owner: Nishaanth Shriram M S <nishaanth...@gmail.com>
          Gerrit-Reviewer: Koji Ishii <ko...@chromium.org>
          Gerrit-Reviewer: Nishaanth Shriram M S <nishaanth...@gmail.com>
          Gerrit-CC: Fredrik Söderquist <f...@opera.com>
          Gerrit-CC: Kent Tamura <tk...@chromium.org>
          Gerrit-Attention: Fredrik Söderquist <f...@opera.com>
          Gerrit-Comment-Date: Mon, 13 Apr 2026 09:48:40 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Fredrik Söderquist (Gerrit)

          unread,
          5:51 AM (2 hours ago) 5:51 AM
          to Nishaanth Shriram M S, Koji Ishii, Kent Tamura, chrom...@appspot.gserviceaccount.com, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
          Attention needed from Nishaanth Shriram M S

          Fredrik Söderquist voted and added 1 comment

          Votes added by Fredrik Söderquist

          Code-Review+1
          Commit-Queue+2

          1 comment

          Patchset-level comments
          Fredrik Söderquist . resolved

          Stamping and CQ+2ing

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Nishaanth Shriram M S
          Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement satisfiedCode-Owners
            • requirement satisfiedCode-Review
            • requirement satisfiedReview-Enforcement
            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: Id954d9463407ef4f858005026692398fdd91b296
            Gerrit-Change-Number: 7703993
            Gerrit-PatchSet: 13
            Gerrit-Owner: Nishaanth Shriram M S <nishaanth...@gmail.com>
            Gerrit-Reviewer: Fredrik Söderquist <f...@opera.com>
            Gerrit-Reviewer: Koji Ishii <ko...@chromium.org>
            Gerrit-Reviewer: Nishaanth Shriram M S <nishaanth...@gmail.com>
            Gerrit-Attention: Nishaanth Shriram M S <nishaanth...@gmail.com>
            Gerrit-Comment-Date: Mon, 13 Apr 2026 09:51:39 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            satisfied_requirement
            open
            diffy

            Blink W3C Test Autoroller (Gerrit)

            unread,
            6:27 AM (2 hours ago) 6:27 AM
            to Nishaanth Shriram M S, Fredrik Söderquist, Koji Ishii, Kent Tamura, chrom...@appspot.gserviceaccount.com, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
            Attention needed from Nishaanth Shriram M S

            Message from Blink W3C Test Autoroller

            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/59140.

            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

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Nishaanth Shriram M S
            Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement satisfiedCode-Owners
            • requirement satisfiedCode-Review
            • requirement satisfiedReview-Enforcement
            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: Id954d9463407ef4f858005026692398fdd91b296
            Gerrit-Change-Number: 7703993
            Gerrit-PatchSet: 13
            Gerrit-Owner: Nishaanth Shriram M S <nishaanth...@gmail.com>
            Gerrit-Reviewer: Fredrik Söderquist <f...@opera.com>
            Gerrit-Reviewer: Koji Ishii <ko...@chromium.org>
            Gerrit-Reviewer: Nishaanth Shriram M S <nishaanth...@gmail.com>
            Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
            Gerrit-Comment-Date: Mon, 13 Apr 2026 10:27:39 +0000
            Gerrit-HasComments: No
            Gerrit-Has-Labels: No
            satisfied_requirement
            open
            diffy

            Chromium LUCI CQ (Gerrit)

            unread,
            6:46 AM (2 hours ago) 6:46 AM
            to Nishaanth Shriram M S, Blink W3C Test Autoroller, Fredrik Söderquist, Koji Ishii, Kent Tamura, chrom...@appspot.gserviceaccount.com, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, blink-revie...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org

            Chromium LUCI CQ submitted the change

            Change information

            Commit message:
            Check negative margin sizes for min-content while computing indent position
            Bug: 496807859
            Change-Id: Id954d9463407ef4f858005026692398fdd91b296
            Reviewed-by: Fredrik Söderquist <f...@opera.com>
            Reviewed-by: Koji Ishii <ko...@chromium.org>
            Commit-Queue: Fredrik Söderquist <f...@opera.com>
            Auto-Submit: Nishaanth Shriram M S <nishaanth...@gmail.com>
            Cr-Commit-Position: refs/heads/main@{#1613611}
            Files:
            • M third_party/blink/renderer/core/layout/inline/line_breaker.cc
            • A third_party/blink/web_tests/external/wpt/css/css-sizing/min-content-negative-margin-inline-crash.html
            Change size: S
            Delta: 2 files changed, 37 insertions(+), 3 deletions(-)
            Branch: refs/heads/main
            Submit Requirements:
            • requirement satisfiedCode-Review: +1 by Fredrik Söderquist, +1 by Koji Ishii
            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: Id954d9463407ef4f858005026692398fdd91b296
            Gerrit-Change-Number: 7703993
            Gerrit-PatchSet: 14
            Gerrit-Owner: Nishaanth Shriram M S <nishaanth...@gmail.com>
            Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
            Gerrit-Reviewer: Fredrik Söderquist <f...@opera.com>
            Gerrit-Reviewer: Koji Ishii <ko...@chromium.org>
            Gerrit-Reviewer: Nishaanth Shriram M S <nishaanth...@gmail.com>
            Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
            open
            diffy
            satisfied_requirement
            Reply all
            Reply to author
            Forward
            0 new messages