Support closest-corner/farthest-corner for circle()/ellipse() [chromium/src : main]

0 views
Skip to first unread message

Rune Lillesveen (Gerrit)

unread,
May 4, 2026, 5:28:07 AM (11 days ago) May 4
to Helmut Januschka, Rune Lillesveen, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, zol...@webkit.org
Attention needed from Helmut Januschka

Rune Lillesveen added 1 comment

Patchset-level comments
File-level comment, Patchset 4 (Latest):
Rune Lillesveen . unresolved

drive-by: this change should go through the I2S process with a runtime flag.

Open in Gerrit

Related details

Attention is currently required from:
  • Helmut Januschka
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: I8d2dce599f2f1cc3960dc178cc73b63d569d3429
Gerrit-Change-Number: 7767079
Gerrit-PatchSet: 4
Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
Gerrit-CC: Menard, Alexis <alexis...@intel.com>
Gerrit-CC: Rune Lillesveen <fut...@chromium.org>
Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
Gerrit-Comment-Date: Mon, 04 May 2026 09:27:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Helmut Januschka (Gerrit)

unread,
May 6, 2026, 1:56:22 PM (9 days ago) May 6
to Helmut Januschka, Rune Lillesveen, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, kinuko...@chromium.org, jmedle...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, zol...@webkit.org
Attention needed from Rune Lillesveen

Helmut Januschka added 1 comment

Patchset-level comments
File-level comment, Patchset 4:
Rune Lillesveen . resolved

drive-by: this change should go through the I2S process with a runtime flag.

Helmut Januschka

added a flag and filed a feature entry https://chromestatus.com/feature/5100672946143232 (will finish it till the end of the week)

Open in Gerrit

Related details

Attention is currently required from:
  • Rune Lillesveen
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: I8d2dce599f2f1cc3960dc178cc73b63d569d3429
    Gerrit-Change-Number: 7767079
    Gerrit-PatchSet: 6
    Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
    Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
    Gerrit-Reviewer: Rune Lillesveen <fut...@chromium.org>
    Gerrit-CC: Menard, Alexis <alexis...@intel.com>
    Gerrit-Attention: Rune Lillesveen <fut...@chromium.org>
    Gerrit-Comment-Date: Wed, 06 May 2026 17:56:07 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Rune Lillesveen <fut...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Rune Lillesveen (Gerrit)

    unread,
    May 7, 2026, 5:27:24 AM (8 days ago) May 7
    to Helmut Januschka, Rune Lillesveen, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, kinuko...@chromium.org, jmedle...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, zol...@webkit.org
    Attention needed from Helmut Januschka

    Rune Lillesveen added 2 comments

    File third_party/blink/renderer/core/css/properties/css_parsing_utils.cc
    Line 485, Patchset 6 (Latest): args.Peek().Id())) {
    Rune Lillesveen . unresolved

    Merge this into the if () above for a single ConsumeIdent().

    File third_party/blink/renderer/core/style/basic_shapes.cc
    Line 135, Patchset 6 (Latest):}
    Rune Lillesveen . unresolved

    Why not just:

    ```
    float dx = closest ? std::min(dx0, dx1) : std::max(dx0, dx1);
    float dy = closest ? std::min(dy0, dy1) : std::max(dy0, dy1);
    return hypotf(dx, dy);
    ```
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Helmut Januschka
    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: I8d2dce599f2f1cc3960dc178cc73b63d569d3429
      Gerrit-Change-Number: 7767079
      Gerrit-PatchSet: 6
      Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Rune Lillesveen <fut...@chromium.org>
      Gerrit-CC: Menard, Alexis <alexis...@intel.com>
      Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
      Gerrit-Comment-Date: Thu, 07 May 2026 09:27:07 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      一丝 (Gerrit)

      unread,
      May 7, 2026, 5:45:40 AM (8 days ago) May 7
      to Helmut Januschka, Rune Lillesveen, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, kinuko...@chromium.org, jmedle...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, zol...@webkit.org
      Attention needed from Helmut Januschka and Rune Lillesveen

      一丝 added 1 comment

      Patchset-level comments
      Rune Lillesveen . resolved

      drive-by: this change should go through the I2S process with a runtime flag.

      Helmut Januschka

      added a flag and filed a feature entry https://chromestatus.com/feature/5100672946143232 (will finish it till the end of the week)

      一丝

      Please note that there is currently an issue with the specifications that needs to be resolved.
      https://github.com/w3c/csswg-drafts/issues/10812

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Helmut Januschka
      • Rune Lillesveen
      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: I8d2dce599f2f1cc3960dc178cc73b63d569d3429
      Gerrit-Change-Number: 7767079
      Gerrit-PatchSet: 6
      Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Rune Lillesveen <fut...@chromium.org>
      Gerrit-CC: Menard, Alexis <alexis...@intel.com>
      Gerrit-CC: 一丝 <yio...@gmail.com>
      Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
      Gerrit-Attention: Rune Lillesveen <fut...@chromium.org>
      Gerrit-Comment-Date: Thu, 07 May 2026 09:45:28 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Helmut Januschka <hel...@januschka.com>
      Comment-In-Reply-To: Rune Lillesveen <fut...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Rune Lillesveen (Gerrit)

      unread,
      May 7, 2026, 6:22:19 AM (8 days ago) May 7
      to Helmut Januschka, Fredrik Söderquist, 一丝, Rune Lillesveen, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, kinuko...@chromium.org, jmedle...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, zol...@webkit.org
      Attention needed from Fredrik Söderquist and Helmut Januschka

      Rune Lillesveen added 1 comment

      Patchset-level comments
      File-level comment, Patchset 6 (Latest):
      Rune Lillesveen . resolved

      Looping in fs@ who reviewed https://crrev.com/c/7754379

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Fredrik Söderquist
      • Helmut Januschka
      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: I8d2dce599f2f1cc3960dc178cc73b63d569d3429
      Gerrit-Change-Number: 7767079
      Gerrit-PatchSet: 6
      Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Fredrik Söderquist <f...@opera.com>
      Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Rune Lillesveen <fut...@chromium.org>
      Gerrit-CC: Menard, Alexis <alexis...@intel.com>
      Gerrit-CC: 一丝 <yio...@gmail.com>
      Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
      Gerrit-Attention: Fredrik Söderquist <f...@opera.com>
      Gerrit-Comment-Date: Thu, 07 May 2026 10:21:56 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Fredrik Söderquist (Gerrit)

      unread,
      May 7, 2026, 8:03:20 AM (8 days ago) May 7
      to Helmut Januschka, 一丝, Rune Lillesveen, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, kinuko...@chromium.org, jmedle...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, zol...@webkit.org
      Attention needed from Helmut Januschka and Rune Lillesveen

      Fredrik Söderquist added 1 comment

      Patchset-level comments
      Rune Lillesveen . resolved

      Looping in fs@ who reviewed https://crrev.com/c/7754379

      Fredrik Söderquist

      This seems to introduce basically the same changes as that CL, could we resolve this first so that we don't have two outstanding changes for the same thing?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Helmut Januschka
      • Rune Lillesveen
      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: I8d2dce599f2f1cc3960dc178cc73b63d569d3429
      Gerrit-Change-Number: 7767079
      Gerrit-PatchSet: 6
      Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Fredrik Söderquist <f...@opera.com>
      Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Rune Lillesveen <fut...@chromium.org>
      Gerrit-CC: Menard, Alexis <alexis...@intel.com>
      Gerrit-CC: 一丝 <yio...@gmail.com>
      Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
      Gerrit-Attention: Rune Lillesveen <fut...@chromium.org>
      Gerrit-Comment-Date: Thu, 07 May 2026 12:03:00 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Rune Lillesveen <fut...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Helmut Januschka (Gerrit)

      unread,
      May 7, 2026, 9:49:12 AM (8 days ago) May 7
      to Helmut Januschka, Fredrik Söderquist, 一丝, Rune Lillesveen, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, kinuko...@chromium.org, jmedle...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, zol...@webkit.org
      Attention needed from Fredrik Söderquist and Rune Lillesveen

      Helmut Januschka added 3 comments

      Patchset-level comments
      File-level comment, Patchset 6:
      Rune Lillesveen . unresolved

      Looping in fs@ who reviewed https://crrev.com/c/7754379

      Fredrik Söderquist

      This seems to introduce basically the same changes as that CL, could we resolve this first so that we don't have two outstanding changes for the same thing?

      Helmut Januschka

      Thanks. I had not seen [https://crrev.com/c/7754379](https://crrev.com/c/7754379) when I picked this up, and the bug was unassigned at the time, so I assigned it to myself and started from there.

      I think [this-cl](https://crrev.com/c/7767079) may be the better consolidation point because it already includes the runtime flag / I2S, and it also updates the shape-outside code path in addition to the clip-path path.

      That said, I do not want to have any bad mood or troubles. If you would prefer consolidating on [https://crrev.com/c/7754379](https://crrev.com/c/7754379) instead, I am going to step back, reassign the bug, and (if wanted) help fold the missing pieces over there. Please let me know which direction you would like me to take.

      File-level comment, Patchset 7 (Latest):
      Helmut Januschka . resolved

      feedback addressed

      File third_party/blink/renderer/core/css/properties/css_parsing_utils.cc
      Line 485, Patchset 6: args.Peek().Id())) {
      Rune Lillesveen . resolved

      Merge this into the if () above for a single ConsumeIdent().

      Helmut Januschka

      Marked as resolved.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Fredrik Söderquist
      • Rune Lillesveen
      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: I8d2dce599f2f1cc3960dc178cc73b63d569d3429
      Gerrit-Change-Number: 7767079
      Gerrit-PatchSet: 7
      Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Fredrik Söderquist <f...@opera.com>
      Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Rune Lillesveen <fut...@chromium.org>
      Gerrit-CC: Menard, Alexis <alexis...@intel.com>
      Gerrit-CC: 一丝 <yio...@gmail.com>
      Gerrit-Attention: Rune Lillesveen <fut...@chromium.org>
      Gerrit-Attention: Fredrik Söderquist <f...@opera.com>
      Gerrit-Comment-Date: Thu, 07 May 2026 13:48:58 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Rune Lillesveen <fut...@chromium.org>
      Comment-In-Reply-To: Fredrik Söderquist <f...@opera.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Helmut Januschka (Gerrit)

      unread,
      May 7, 2026, 9:49:24 AM (8 days ago) May 7
      to Helmut Januschka, Fredrik Söderquist, 一丝, Rune Lillesveen, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, kinuko...@chromium.org, jmedle...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, zol...@webkit.org
      Attention needed from Fredrik Söderquist and Rune Lillesveen

      Helmut Januschka added 1 comment

      File third_party/blink/renderer/core/style/basic_shapes.cc
      Line 135, Patchset 6:}
      Rune Lillesveen . resolved

      Why not just:

      ```
      float dx = closest ? std::min(dx0, dx1) : std::max(dx0, dx1);
      float dy = closest ? std::min(dy0, dy1) : std::max(dy0, dy1);
      return hypotf(dx, dy);
      ```
      Helmut Januschka

      Done

      Gerrit-Comment-Date: Thu, 07 May 2026 13:49:08 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Fredrik Söderquist (Gerrit)

      unread,
      May 7, 2026, 10:27:01 AM (8 days ago) May 7
      to Helmut Januschka, Hyowon Kim, 一丝, Rune Lillesveen, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, kinuko...@chromium.org, jmedle...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, zol...@webkit.org
      Attention needed from Helmut Januschka and Rune Lillesveen

      Fredrik Söderquist added 6 comments

      Patchset-level comments
      Rune Lillesveen . unresolved

      Looping in fs@ who reviewed https://crrev.com/c/7754379

      Fredrik Söderquist

      This seems to introduce basically the same changes as that CL, could we resolve this first so that we don't have two outstanding changes for the same thing?

      Helmut Januschka

      Thanks. I had not seen [https://crrev.com/c/7754379](https://crrev.com/c/7754379) when I picked this up, and the bug was unassigned at the time, so I assigned it to myself and started from there.

      I think [this-cl](https://crrev.com/c/7767079) may be the better consolidation point because it already includes the runtime flag / I2S, and it also updates the shape-outside code path in addition to the clip-path path.

      That said, I do not want to have any bad mood or troubles. If you would prefer consolidating on [https://crrev.com/c/7754379](https://crrev.com/c/7754379) instead, I am going to step back, reassign the bug, and (if wanted) help fold the missing pieces over there. Please let me know which direction you would like me to take.

      Fredrik Söderquist

      I agree with your take on completeness, and I did explicitly say that the other person [should assign the bug](https://chromium-review.googlesource.com/c/chromium/src/+/7754379/comments/9761b01b_5dbbd618). That CL was "stuck" waiting on CSS WG feedback though (as mentioned by Yisi) - something that would affect this CL as well. I will CC Hyowon.

      File third_party/blink/renderer/core/layout/shapes/shape.cc
      Line 180, Patchset 7 (Latest): float radius_x = radii.width();
      float radius_y = radii.height();
      Fredrik Söderquist . unresolved

      These are kind of unnecessary now - just use `radii` instead.

      File third_party/blink/renderer/core/style/basic_shapes.h
      Line 230, Patchset 7 (Latest): gfx::SizeF FloatSizeForRadiiInBox(const gfx::PointF& center,
      Fredrik Söderquist . unresolved

      I think I'd just call this `ResolveRadii()` or something like that.

      Line 227, Patchset 7 (Latest): float FloatValueForRadiusInBox(const BasicShapeRadius&,
      float center,
      float box_width_or_height) const;
      Fredrik Söderquist . unresolved

      This can be made private now.

      File third_party/blink/renderer/core/style/basic_shapes.cc
      Line 210, Patchset 7 (Latest): if (radius.GetType() == BasicShapeRadius::kFarthestSide) {
      return std::max(center, width_or_height_delta);
      }

      // closest-corner/farthest-corner require both axes for Euclidean distance.
      // Use FloatSizeForRadiiInBox() for those values.
      NOTREACHED();
      }

      gfx::SizeF BasicShapeEllipse::FloatSizeForRadiiInBox(
      const gfx::PointF& center,
      const gfx::SizeF& box_size) const {
      auto resolve_radius = [&](const BasicShapeRadius& radius, float center_coord,
      float box_dim) -> float {
      if (radius.GetType() == BasicShapeRadius::kClosestCorner) {
      return RadiusToCorner(center, box_size, /*closest=*/true);
      }
      if (radius.GetType() == BasicShapeRadius::kFarthestCorner) {
      return RadiusToCorner(center, box_size, /*closest=*/false);
      }
      return FloatValueForRadiusInBox(radius, center_coord, box_dim);
      };
      Fredrik Söderquist . unresolved

      This looks awkward - why not just extend the existing function and then call it twice? (I.e quite similar to the circle case.)

      Line 251, Patchset 7 (Latest): const gfx::Vector2dF scaled_radius = gfx::ScaleVector2d(
      Fredrik Söderquist . unresolved

      This can now just use `gfx::ScaleSize()` instead of passing through a `gfx::Vector2dF`.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Helmut Januschka
      • Rune Lillesveen
      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: I8d2dce599f2f1cc3960dc178cc73b63d569d3429
      Gerrit-Change-Number: 7767079
      Gerrit-PatchSet: 7
      Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Fredrik Söderquist <f...@opera.com>
      Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Rune Lillesveen <fut...@chromium.org>
      Gerrit-CC: Hyowon Kim <hyo...@igalia.com>
      Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
      Gerrit-Attention: Rune Lillesveen <fut...@chromium.org>
      Gerrit-Comment-Date: Thu, 07 May 2026 14:26:28 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Helmut Januschka <hel...@januschka.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Hyowon Kim (Gerrit)

      unread,
      May 7, 2026, 11:37:26 PM (7 days ago) May 7
      to Helmut Januschka, Fredrik Söderquist, 一丝, Rune Lillesveen, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, kinuko...@chromium.org, jmedle...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, zol...@webkit.org
      Attention needed from Helmut Januschka and Rune Lillesveen

      Hyowon Kim added 1 comment

      Patchset-level comments
      Rune Lillesveen . unresolved

      Looping in fs@ who reviewed https://crrev.com/c/7754379

      Fredrik Söderquist

      This seems to introduce basically the same changes as that CL, could we resolve this first so that we don't have two outstanding changes for the same thing?

      Helmut Januschka

      Thanks. I had not seen [https://crrev.com/c/7754379](https://crrev.com/c/7754379) when I picked this up, and the bug was unassigned at the time, so I assigned it to myself and started from there.

      I think [this-cl](https://crrev.com/c/7767079) may be the better consolidation point because it already includes the runtime flag / I2S, and it also updates the shape-outside code path in addition to the clip-path path.

      That said, I do not want to have any bad mood or troubles. If you would prefer consolidating on [https://crrev.com/c/7754379](https://crrev.com/c/7754379) instead, I am going to step back, reassign the bug, and (if wanted) help fold the missing pieces over there. Please let me know which direction you would like me to take.

      Fredrik Söderquist

      I agree with your take on completeness, and I did explicitly say that the other person [should assign the bug](https://chromium-review.googlesource.com/c/chromium/src/+/7754379/comments/9761b01b_5dbbd618). That CL was "stuck" waiting on CSS WG feedback though (as mentioned by Yisi) - something that would affect this CL as well. I will CC Hyowon.

      Hyowon Kim

      Thanks for looping me in. Happy to abandon mine. I left my thought on the spec/implementation mismatch as a comment on the issue.
      https://github.com/w3c/csswg-drafts/issues/10812#issuecomment-4285488054
      Thanks :)

      Gerrit-Comment-Date: Fri, 08 May 2026 03:36:52 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Helmut Januschka (Gerrit)

      unread,
      May 11, 2026, 7:24:31 PM (3 days ago) May 11
      to Helmut Januschka, Hyowon Kim, Fredrik Söderquist, 一丝, Rune Lillesveen, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, kinuko...@chromium.org, jmedle...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, zol...@webkit.org
      Attention needed from Fredrik Söderquist

      Helmut Januschka added 5 comments

      File third_party/blink/renderer/core/layout/shapes/shape.cc
      Line 180, Patchset 7 (Latest): float radius_x = radii.width();
      float radius_y = radii.height();
      Fredrik Söderquist . resolved

      These are kind of unnecessary now - just use `radii` instead.

      Helmut Januschka

      Done

      File third_party/blink/renderer/core/style/basic_shapes.h
      Line 230, Patchset 7 (Latest): gfx::SizeF FloatSizeForRadiiInBox(const gfx::PointF& center,
      Fredrik Söderquist . resolved

      I think I'd just call this `ResolveRadii()` or something like that.

      Helmut Januschka

      Done

      Line 227, Patchset 7 (Latest): float FloatValueForRadiusInBox(const BasicShapeRadius&,
      float center,
      float box_width_or_height) const;
      Fredrik Söderquist . resolved

      This can be made private now.

      Helmut Januschka

      Done

      File third_party/blink/renderer/core/style/basic_shapes.cc
      Line 210, Patchset 7 (Latest): if (radius.GetType() == BasicShapeRadius::kFarthestSide) {
      return std::max(center, width_or_height_delta);
      }

      // closest-corner/farthest-corner require both axes for Euclidean distance.
      // Use FloatSizeForRadiiInBox() for those values.
      NOTREACHED();
      }

      gfx::SizeF BasicShapeEllipse::FloatSizeForRadiiInBox(
      const gfx::PointF& center,
      const gfx::SizeF& box_size) const {
      auto resolve_radius = [&](const BasicShapeRadius& radius, float center_coord,
      float box_dim) -> float {
      if (radius.GetType() == BasicShapeRadius::kClosestCorner) {
      return RadiusToCorner(center, box_size, /*closest=*/true);
      }
      if (radius.GetType() == BasicShapeRadius::kFarthestCorner) {
      return RadiusToCorner(center, box_size, /*closest=*/false);
      }
      return FloatValueForRadiusInBox(radius, center_coord, box_dim);
      };
      Fredrik Söderquist . resolved

      This looks awkward - why not just extend the existing function and then call it twice? (I.e quite similar to the circle case.)

      Helmut Januschka
      done. per-axis helper is reused for the simple cases, and
      ResolveRadii() calls that logic for each axis while handling the corner cases centrally.
      Line 251, Patchset 7 (Latest): const gfx::Vector2dF scaled_radius = gfx::ScaleVector2d(
      Fredrik Söderquist . resolved

      This can now just use `gfx::ScaleSize()` instead of passing through a `gfx::Vector2dF`.

      Helmut Januschka

      Done

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Fredrik Söderquist
      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: I8d2dce599f2f1cc3960dc178cc73b63d569d3429
      Gerrit-Change-Number: 7767079
      Gerrit-PatchSet: 7
      Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Fredrik Söderquist <f...@opera.com>
      Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Rune Lillesveen <fut...@chromium.org>
      Gerrit-CC: Hyowon Kim <hyo...@igalia.com>
      Gerrit-CC: Menard, Alexis <alexis...@intel.com>
      Gerrit-CC: 一丝 <yio...@gmail.com>
      Gerrit-Attention: Fredrik Söderquist <f...@opera.com>
      Gerrit-Comment-Date: Mon, 11 May 2026 23:24:11 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Fredrik Söderquist <f...@opera.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Fredrik Söderquist (Gerrit)

      unread,
      May 12, 2026, 7:30:40 AM (3 days ago) May 12
      to Helmut Januschka, Hyowon Kim, 一丝, Rune Lillesveen, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, kinuko...@chromium.org, jmedle...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, zol...@webkit.org
      Attention needed from Helmut Januschka

      Fredrik Söderquist added 2 comments

      Patchset-level comments
      File-level comment, Patchset 7 (Latest):
      Fredrik Söderquist . resolved

      Did you miss to upload a new patchset?

      File third_party/blink/renderer/core/layout/shapes/shape.cc
      Line 180, Patchset 7 (Latest): float radius_x = radii.width();
      float radius_y = radii.height();
      Fredrik Söderquist . unresolved

      These are kind of unnecessary now - just use `radii` instead.

      Helmut Januschka

      Done

      Fredrik Söderquist

      Is it? Looks the same to me.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Helmut Januschka
      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: I8d2dce599f2f1cc3960dc178cc73b63d569d3429
      Gerrit-Change-Number: 7767079
      Gerrit-PatchSet: 7
      Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Fredrik Söderquist <f...@opera.com>
      Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Rune Lillesveen <fut...@chromium.org>
      Gerrit-CC: Hyowon Kim <hyo...@igalia.com>
      Gerrit-CC: Menard, Alexis <alexis...@intel.com>
      Gerrit-CC: 一丝 <yio...@gmail.com>
      Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
      Gerrit-Comment-Date: Tue, 12 May 2026 11:30:11 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Helmut Januschka <hel...@januschka.com>
      Comment-In-Reply-To: Fredrik Söderquist <f...@opera.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages