[style] Fix serialization for CSS will-change. [chromium/src : main]

0 views
Skip to first unread message

Ian Kilpatrick (Gerrit)

unread,
Mar 10, 2026, 2:12:23 PM (21 hours ago) Mar 10
to Philip Rogers, Anders Hartvoll Ruud, chrom...@appspot.gserviceaccount.com, Chromium LUCI CQ, AyeAye, Menard, Alexis, chromium...@chromium.org, blink-revie...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, zol...@webkit.org
Attention needed from Anders Hartvoll Ruud and Philip Rogers

New activity on the change

Open in Gerrit

Related details

Attention is currently required from:
  • Anders Hartvoll Ruud
  • Philip Rogers
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: I521418b8a368380d7623e1321abbd7e3dedd1915
Gerrit-Change-Number: 7650675
Gerrit-PatchSet: 6
Gerrit-Owner: Ian Kilpatrick <ikilp...@chromium.org>
Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
Gerrit-Reviewer: Ian Kilpatrick <ikilp...@chromium.org>
Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
Gerrit-CC: Menard, Alexis <alexis...@intel.com>
Gerrit-Attention: Philip Rogers <p...@chromium.org>
Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
Gerrit-Comment-Date: Tue, 10 Mar 2026 18:12:15 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Ian Kilpatrick (Gerrit)

unread,
Mar 10, 2026, 2:14:37 PM (21 hours ago) Mar 10
to Philip Rogers, Anders Hartvoll Ruud, chrom...@appspot.gserviceaccount.com, Chromium LUCI CQ, AyeAye, Menard, Alexis, chromium...@chromium.org, blink-revie...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, zol...@webkit.org
Attention needed from Anders Hartvoll Ruud and Philip Rogers

Ian Kilpatrick voted and added 1 comment

Votes added by Ian Kilpatrick

Commit-Queue+1

1 comment

File third_party/blink/renderer/core/style/computed_style.cc
Line 1308, Patchset 7 (Latest):static bool HasPropertyThatCreatesStackingContext(
Ian Kilpatrick . unresolved

@pdr I could precompute this as well in WillChange::ApplyValue let me know if you think its worth it.

Open in Gerrit

Related details

Attention is currently required from:
  • Anders Hartvoll Ruud
  • Philip Rogers
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement 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: I521418b8a368380d7623e1321abbd7e3dedd1915
    Gerrit-Change-Number: 7650675
    Gerrit-PatchSet: 7
    Gerrit-Owner: Ian Kilpatrick <ikilp...@chromium.org>
    Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-Reviewer: Ian Kilpatrick <ikilp...@chromium.org>
    Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
    Gerrit-CC: Menard, Alexis <alexis...@intel.com>
    Gerrit-Attention: Philip Rogers <p...@chromium.org>
    Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-Comment-Date: Tue, 10 Mar 2026 18:14:29 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Philip Rogers (Gerrit)

    unread,
    Mar 10, 2026, 2:49:48 PM (20 hours ago) Mar 10
    to Ian Kilpatrick, Anders Hartvoll Ruud, chrom...@appspot.gserviceaccount.com, Chromium LUCI CQ, AyeAye, Menard, Alexis, chromium...@chromium.org, blink-revie...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, zol...@webkit.org
    Attention needed from Anders Hartvoll Ruud and Ian Kilpatrick

    Philip Rogers added 1 comment

    File third_party/blink/renderer/core/style/style_will_change_data.h
    Line 37, Patchset 7 (Latest): StyleWillChangeData(const Vector<WillChangeValue>& values,
    Philip Rogers . unresolved

    I think this can be optimized a bit? WDYT of one of the following?

    • Take these by value and std::move them into the members. I.e., `StyleWillChangeData(Vector<WillChangeValue> values,`
    • Pass by r-value references, and std::move them into the members. I.e., `StyleWillChangeData(Vector<WillChangeValue>&& values,`
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Anders Hartvoll Ruud
    • Ian Kilpatrick
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement 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: I521418b8a368380d7623e1321abbd7e3dedd1915
    Gerrit-Change-Number: 7650675
    Gerrit-PatchSet: 7
    Gerrit-Owner: Ian Kilpatrick <ikilp...@chromium.org>
    Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-Reviewer: Ian Kilpatrick <ikilp...@chromium.org>
    Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
    Gerrit-CC: Menard, Alexis <alexis...@intel.com>
    Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-Attention: Ian Kilpatrick <ikilp...@chromium.org>
    Gerrit-Comment-Date: Tue, 10 Mar 2026 18:49:38 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Philip Rogers (Gerrit)

    unread,
    Mar 10, 2026, 2:58:07 PM (20 hours ago) Mar 10
    to Ian Kilpatrick, Anders Hartvoll Ruud, chrom...@appspot.gserviceaccount.com, Chromium LUCI CQ, AyeAye, Menard, Alexis, chromium...@chromium.org, blink-revie...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, zol...@webkit.org
    Attention needed from Anders Hartvoll Ruud and Ian Kilpatrick

    Philip Rogers added 1 comment

    File third_party/blink/renderer/core/style/computed_style.cc
    Line 1308, Patchset 7 (Latest):static bool HasPropertyThatCreatesStackingContext(
    Ian Kilpatrick . resolved

    @pdr I could precompute this as well in WillChange::ApplyValue let me know if you think its worth it.

    Philip Rogers

    It seems like it could be a small win to do the pre-computation, but I looked up the profiles and this looks to be insignificant. I think better to not do this now.

    Gerrit-Comment-Date: Tue, 10 Mar 2026 18:57:58 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Ian Kilpatrick <ikilp...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Ian Kilpatrick (Gerrit)

    unread,
    Mar 10, 2026, 5:03:36 PM (18 hours ago) Mar 10
    to Philip Rogers, Anders Hartvoll Ruud, chrom...@appspot.gserviceaccount.com, Chromium LUCI CQ, AyeAye, Menard, Alexis, chromium...@chromium.org, blink-revie...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, zol...@webkit.org
    Attention needed from Anders Hartvoll Ruud and Philip Rogers

    Ian Kilpatrick added 1 comment

    File third_party/blink/renderer/core/style/style_will_change_data.h
    Line 37, Patchset 7: StyleWillChangeData(const Vector<WillChangeValue>& values,
    Philip Rogers . resolved

    I think this can be optimized a bit? WDYT of one of the following?

    • Take these by value and std::move them into the members. I.e., `StyleWillChangeData(Vector<WillChangeValue> values,`
    • Pass by r-value references, and std::move them into the members. I.e., `StyleWillChangeData(Vector<WillChangeValue>&& values,`
    Ian Kilpatrick

    Done!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Anders Hartvoll Ruud
    • Philip Rogers
    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: I521418b8a368380d7623e1321abbd7e3dedd1915
      Gerrit-Change-Number: 7650675
      Gerrit-PatchSet: 9
      Gerrit-Owner: Ian Kilpatrick <ikilp...@chromium.org>
      Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Reviewer: Ian Kilpatrick <ikilp...@chromium.org>
      Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
      Gerrit-CC: Menard, Alexis <alexis...@intel.com>
      Gerrit-Attention: Philip Rogers <p...@chromium.org>
      Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Comment-Date: Tue, 10 Mar 2026 21:03:21 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Philip Rogers <p...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Philip Rogers (Gerrit)

      unread,
      Mar 10, 2026, 5:14:25 PM (18 hours ago) Mar 10
      to Ian Kilpatrick, Anders Hartvoll Ruud, chrom...@appspot.gserviceaccount.com, Chromium LUCI CQ, AyeAye, Menard, Alexis, chromium...@chromium.org, blink-revie...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, zol...@webkit.org
      Attention needed from Anders Hartvoll Ruud and Ian Kilpatrick

      Philip Rogers added 1 comment

      Patchset-level comments
      File-level comment, Patchset 9 (Latest):
      Philip Rogers . resolved

      Hi Ian, this looks good to me at a high level. Can I defer to Anders for the final review?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Anders Hartvoll Ruud
      • Ian Kilpatrick
      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: I521418b8a368380d7623e1321abbd7e3dedd1915
      Gerrit-Change-Number: 7650675
      Gerrit-PatchSet: 9
      Gerrit-Owner: Ian Kilpatrick <ikilp...@chromium.org>
      Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Reviewer: Ian Kilpatrick <ikilp...@chromium.org>
      Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
      Gerrit-CC: Menard, Alexis <alexis...@intel.com>
      Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Attention: Ian Kilpatrick <ikilp...@chromium.org>
      Gerrit-Comment-Date: Tue, 10 Mar 2026 21:14:15 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Anders Hartvoll Ruud (Gerrit)

      unread,
      Mar 10, 2026, 5:57:42 PM (17 hours ago) Mar 10
      to Ian Kilpatrick, Philip Rogers, chrom...@appspot.gserviceaccount.com, Chromium LUCI CQ, AyeAye, Menard, Alexis, chromium...@chromium.org, blink-revie...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, zol...@webkit.org
      Attention needed from Ian Kilpatrick

      Anders Hartvoll Ruud voted and added 2 comments

      Votes added by Anders Hartvoll Ruud

      Code-Review+1

      2 comments

      File third_party/blink/renderer/core/style/style_will_change_data.h
      Line 58, Patchset 8: // The bitset only contains resolved CSSPropertyID(s). No aliases.
      Anders Hartvoll Ruud . unresolved

      Maybe also document whether it contains only longhands, only shorthands (not likely), or both.

      Line 20, Patchset 8: uint16_t property_id : kCSSPropertyIDBitLength =
      static_cast<uint16_t>(CSSPropertyID::kInvalid);
      Anders Hartvoll Ruud . resolved

      Looks like this should actually be `AtomicString`, since (apparently) e.g. `will-change: not-supported` should compute to `not-supported` (though it has no effect).

      _But_, this CL is about fixing _serialization_ order, and the above would scope-creep the CL to also modify parsing, probably.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Ian Kilpatrick
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Owners
        • requirement satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • 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: I521418b8a368380d7623e1321abbd7e3dedd1915
        Gerrit-Change-Number: 7650675
        Gerrit-PatchSet: 9
        Gerrit-Owner: Ian Kilpatrick <ikilp...@chromium.org>
        Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
        Gerrit-Reviewer: Ian Kilpatrick <ikilp...@chromium.org>
        Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
        Gerrit-CC: Menard, Alexis <alexis...@intel.com>
        Gerrit-Attention: Ian Kilpatrick <ikilp...@chromium.org>
        Gerrit-Comment-Date: Tue, 10 Mar 2026 21:57:23 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        chromeperf@appspot.gserviceaccount.com (Gerrit)

        unread,
        Mar 10, 2026, 6:09:29 PM (17 hours ago) Mar 10
        to Ian Kilpatrick, Anders Hartvoll Ruud, Philip Rogers, Chromium LUCI CQ, AyeAye, Menard, Alexis, chromium...@chromium.org, blink-revie...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, zol...@webkit.org
        Attention needed from Ian Kilpatrick

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

        📍 Job mac-m1_mini_2020-perf/speedometer3 complete.

        See results at: https://pinpoint-dot-chromeperf.appspot.com/job/1481a702090000

        Gerrit-Comment-Date: Tue, 10 Mar 2026 22:09:18 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Ian Kilpatrick (Gerrit)

        unread,
        Mar 10, 2026, 10:59:35 PM (12 hours ago) Mar 10
        to Stephen Chenney, Dirk Schulze, Anders Hartvoll Ruud, Philip Rogers, chrom...@appspot.gserviceaccount.com, Chromium LUCI CQ, AyeAye, Menard, Alexis, chromium...@chromium.org, kinuko...@chromium.org, blink-reviews-p...@chromium.org, fserb...@chromium.org, fmalit...@chromium.org, drott+bl...@chromium.org, blink-revie...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, zol...@webkit.org
        Attention needed from Anders Hartvoll Ruud

        Ian Kilpatrick voted and added 7 comments

        Votes added by Ian Kilpatrick

        Commit-Queue+1

        7 comments

        Patchset-level comments
        File-level comment, Patchset 10:
        Ian Kilpatrick . resolved

        PTAL

        File third_party/blink/renderer/core/paint/compositing/compositing_reason_finder.cc
        Line 123, Patchset 10: has_will_change_other = true;
        Ian Kilpatrick . unresolved

        @pdr What is the purpose of CompositingReason::kWillChangeOther ?

        E.g. I created a patch to remove kWillChangeOther - and it seemed fine?

        https://chromium-review.googlesource.com/c/chromium/src/+/7654382

        Its a bit weird that if top:0px isn't a compositing reason, but will-change:top is.

        File third_party/blink/renderer/core/style/computed_style.h
        Line 1252, Patchset 10: DCHECK(!IsPropertyAlias(id));
        Ian Kilpatrick . unresolved

        @andruud - is there an easy way to DCEHCK a CSSPropertyID is a longhand?

        (except for: `DCHECK(!shorthandForProperty(resolved_id).length())` )

        File third_party/blink/renderer/core/style/computed_style.cc
        Line 1323, Patchset 10 (Parent): case CSSPropertyID::kWebkitMaskBoxImage: // Matches longhand
        Ian Kilpatrick . unresolved

        @pdr I removed kMask, and kWebkitMaskBoxImage as now we only have longhands.

        File third_party/blink/renderer/core/style/style_will_change_data.h
        Line 58, Patchset 8: // The bitset only contains resolved CSSPropertyID(s). No aliases.
        Anders Hartvoll Ruud . unresolved

        Maybe also document whether it contains only longhands, only shorthands (not likely), or both.

        Ian Kilpatrick

        Ah thanks for the reminder - I missed that.

        See diff https://chromium-review.googlesource.com/c/chromium/src/+/7650675/8..11

        I expand out the shorthand in ApplyValue now.

        Line 20, Patchset 8: uint16_t property_id : kCSSPropertyIDBitLength =
        static_cast<uint16_t>(CSSPropertyID::kInvalid);
        Anders Hartvoll Ruud . resolved

        Looks like this should actually be `AtomicString`, since (apparently) e.g. `will-change: not-supported` should compute to `not-supported` (though it has no effect).

        _But_, this CL is about fixing _serialization_ order, and the above would scope-creep the CL to also modify parsing, probably.

        Ian Kilpatrick

        So this should be relatively simple after this patch. I'll do a followup. The parsing already works, but we just drop the values (we also lose the caseness), e.g. `will-change: TOP` (but `will-change: SCROLL-POSITION` shouldn't work?)

        File third_party/blink/renderer/platform/graphics/compositing_reasons.cc
        Line 83, Patchset 10 (Parent): "Has a will-change: mask-image compositing hint."},
        Ian Kilpatrick . unresolved

        @pdr Now that we are just iterating over resolved longhands it didn't make much sense to keep this. Do you agree?

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Anders Hartvoll Ruud
        Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement 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: I521418b8a368380d7623e1321abbd7e3dedd1915
          Gerrit-Change-Number: 7650675
          Gerrit-PatchSet: 10
          Gerrit-Owner: Ian Kilpatrick <ikilp...@chromium.org>
          Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
          Gerrit-Reviewer: Ian Kilpatrick <ikilp...@chromium.org>
          Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
          Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
          Gerrit-CC: Menard, Alexis <alexis...@intel.com>
          Gerrit-CC: Stephen Chenney <sche...@chromium.org>
          Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
          Gerrit-Comment-Date: Wed, 11 Mar 2026 02:59:25 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          Comment-In-Reply-To: Anders Hartvoll Ruud <and...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Ian Kilpatrick (Gerrit)

          unread,
          Mar 10, 2026, 11:00:07 PM (12 hours ago) Mar 10
          to Stephen Chenney, Dirk Schulze, Anders Hartvoll Ruud, Philip Rogers, chrom...@appspot.gserviceaccount.com, Chromium LUCI CQ, AyeAye, Menard, Alexis, chromium...@chromium.org, kinuko...@chromium.org, blink-reviews-p...@chromium.org, fserb...@chromium.org, fmalit...@chromium.org, drott+bl...@chromium.org, blink-revie...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, zol...@webkit.org
          Attention needed from Anders Hartvoll Ruud and Philip Rogers

          Ian Kilpatrick added 1 comment

          Patchset-level comments
          File-level comment, Patchset 9:
          Philip Rogers . unresolved

          Hi Ian, this looks good to me at a high level. Can I defer to Anders for the final review?

          Ian Kilpatrick

          Thanks for the review - just need your input on a couple more things.

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Anders Hartvoll Ruud
          • Philip Rogers
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement 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: I521418b8a368380d7623e1321abbd7e3dedd1915
          Gerrit-Change-Number: 7650675
          Gerrit-PatchSet: 11
          Gerrit-Owner: Ian Kilpatrick <ikilp...@chromium.org>
          Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
          Gerrit-Reviewer: Ian Kilpatrick <ikilp...@chromium.org>
          Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
          Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
          Gerrit-CC: Menard, Alexis <alexis...@intel.com>
          Gerrit-CC: Stephen Chenney <sche...@chromium.org>
          Gerrit-Attention: Philip Rogers <p...@chromium.org>
          Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
          Gerrit-Comment-Date: Wed, 11 Mar 2026 02:59:58 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Philip Rogers <p...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Anders Hartvoll Ruud (Gerrit)

          unread,
          5:32 AM (5 hours ago) 5:32 AM
          to Ian Kilpatrick, Stephen Chenney, Dirk Schulze, Philip Rogers, chrom...@appspot.gserviceaccount.com, Chromium LUCI CQ, AyeAye, Menard, Alexis, chromium...@chromium.org, kinuko...@chromium.org, blink-reviews-p...@chromium.org, fserb...@chromium.org, fmalit...@chromium.org, drott+bl...@chromium.org, blink-revie...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, zol...@webkit.org
          Attention needed from Ian Kilpatrick and Philip Rogers

          Anders Hartvoll Ruud voted and added 2 comments

          Votes added by Anders Hartvoll Ruud

          Code-Review+1

          2 comments

          File third_party/blink/renderer/core/style/computed_style.h
          Line 1252, Patchset 10: DCHECK(!IsPropertyAlias(id));
          Ian Kilpatrick . unresolved

          @andruud - is there an easy way to DCEHCK a CSSPropertyID is a longhand?

          (except for: `DCHECK(!shorthandForProperty(resolved_id).length())` )

          Anders Hartvoll Ruud

          Hmm, I guess this would read well enough:

          ```
          DCHECK_NE(id, CSSPropertyID::kInvalid);
          DCHECK(CSSProperty::Get(id).IsShorthand());
          ```

          If that's still not easy enough, you could add an additional `IsShorthand()` util to `CSSProperty` that accepts `CSSPropertyID` and doesn't explode on `kInvalid`.

          File third_party/blink/renderer/core/style/style_will_change_data.h
          Line 58, Patchset 8: // The bitset only contains resolved CSSPropertyID(s). No aliases.
          Anders Hartvoll Ruud . resolved

          Maybe also document whether it contains only longhands, only shorthands (not likely), or both.

          Ian Kilpatrick

          Ah thanks for the reminder - I missed that.

          See diff https://chromium-review.googlesource.com/c/chromium/src/+/7650675/8..11

          I expand out the shorthand in ApplyValue now.

          Anders Hartvoll Ruud

          Acknowledged

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Ian Kilpatrick
          • Philip Rogers
          Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement satisfiedCode-Owners
            • requirement satisfiedCode-Review
            • requirement is not satisfiedNo-Unresolved-Comments
            • 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: I521418b8a368380d7623e1321abbd7e3dedd1915
            Gerrit-Change-Number: 7650675
            Gerrit-PatchSet: 11
            Gerrit-Owner: Ian Kilpatrick <ikilp...@chromium.org>
            Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
            Gerrit-Reviewer: Ian Kilpatrick <ikilp...@chromium.org>
            Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
            Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
            Gerrit-CC: Menard, Alexis <alexis...@intel.com>
            Gerrit-CC: Stephen Chenney <sche...@chromium.org>
            Gerrit-Attention: Philip Rogers <p...@chromium.org>
            Gerrit-Attention: Ian Kilpatrick <ikilp...@chromium.org>
            Gerrit-Comment-Date: Wed, 11 Mar 2026 09:32:29 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            Comment-In-Reply-To: Anders Hartvoll Ruud <and...@chromium.org>
            Comment-In-Reply-To: Ian Kilpatrick <ikilp...@chromium.org>
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy
            Reply all
            Reply to author
            Forward
            0 new messages