Add `normal` keyword for interest-*-delay properties [chromium/src : main]

0 views
Skip to first unread message

AI Code Reviewer (Gerrit)

unread,
Aug 29, 2025, 8:40:46 PM (11 days ago) Aug 29
to Mason Freed, Chromium LUCI CQ, Alexis Menard, chromium...@chromium.org, Olga Gerchikov, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org

AI Code Reviewer added 2 comments

File third_party/blink/renderer/core/css/resolver/style_builder_converter.h
Line 224, Patchset 1 (Latest): static StyleInterestDelay ConvertInterestDelayValue(const StyleResolverState&,
AI Code Reviewer . unresolved

Blink Style Guide: Naming - May leave obvious parameter names out of function declarations. For clarity, please add parameter names to this function declaration. The roles of `StyleResolverState&` and `CSSValue&` are not obvious from the types alone.
***

_To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options: \
**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reason \
\
This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent). \
AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve. \
[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_
File third_party/blink/renderer/core/style/style_interest_delay.h
Line 21, Patchset 1 (Latest): unsigned DelaySeconds() const { return seconds_; }
AI Code Reviewer . unresolved

nit: Blink Style Guide: Naming - Precede setters with the word “Set”; use bare words for getters. Please consider renaming this getter to `Seconds()` to match the member variable `seconds_` and follow the 'bare words for getters' convention.
***

_To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options: \
**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reason \
\
This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent). \
AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve. \
[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ic93ad5ad8aa91502a2cc663085e1d4ced8bd7f0b
Gerrit-Change-Number: 6902219
Gerrit-PatchSet: 1
Gerrit-Owner: Mason Freed <mas...@chromium.org>
Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
Gerrit-CC: Alexis Menard <alexis...@intel.com>
Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
Gerrit-Comment-Date: Sat, 30 Aug 2025 00:40:42 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Mason Freed (Gerrit)

unread,
Sep 8, 2025, 8:35:05 PM (22 hours ago) Sep 8
to Anders Hartvoll Ruud, AI Code Reviewer, Chromium LUCI CQ, Alexis Menard, chromium...@chromium.org, Olga Gerchikov, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org
Attention needed from Anders Hartvoll Ruud

Mason Freed added 1 comment

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Mason Freed . resolved

Hey andruud@ I'm hoping you can help me with this CL. Mostly to review it, but actually first to help me stop flailing around to fix the last couple tests. Something is odd about serialization of the shorthand, and maybe the longhands too, I'm not sure. The `normal` keyword is maybe not round-tripping, but I cannot figure out why, despite digging into the test's [RoundTripProperty()](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/css/parser/css_parser_impl_test.cc;l=1214;drc=ee6f23f5d4fd4999d26400e5ab390d9daa56accf) function to see why it returns `""` for `interest-delay: normal`.

In particular, these two tests still fail:

  • CSSParserImplTest.AllPropertiesCanParseImportant
  • external/wpt/css/cssom/cssom-getPropertyValue-common-checks.html

Can you take a look and maybe start reviewing what I've done to see where I've gone horribly wrong? Did I do the `StyleInterestDelay` thing correctly? Or should that be derived from `CSSValue`? I thought for a `normal` value I could get away without doing that.

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
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: Ic93ad5ad8aa91502a2cc663085e1d4ced8bd7f0b
Gerrit-Change-Number: 6902219
Gerrit-PatchSet: 3
Gerrit-Owner: Mason Freed <mas...@chromium.org>
Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
Gerrit-CC: Alexis Menard <alexis...@intel.com>
Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
Gerrit-Comment-Date: Tue, 09 Sep 2025 00:34:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages