Move patching to own file in html/parser [chromium/src : main]

0 views
Skip to first unread message

Noam Rosenthal (Gerrit)

unread,
Mar 11, 2026, 5:47:15 PM (yesterday) Mar 11
to Chromium LUCI CQ, AI Code Reviewer, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org

Noam Rosenthal added 2 comments

File third_party/blink/renderer/core/html/html_template_element.h
Line 76, Patchset 1: ParserPatch* CurrentParserPatch() const { return parser_patch_; }
AI Code Reviewer . resolved

nit: Blink Style Guide: Precede setters with the word “Set”; use bare words for getters. Setter and getter names should match the names of the variable being accessed/mutated. Since the getter name would collide with the type name `ParserPatch`, consider naming it `GetParserPatch()` instead of `CurrentParserPatch()`.

To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **OK But Won't Fix**: reason | **Later**: 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)_

Noam Rosenthal

Done

File third_party/blink/renderer/core/html/parser/parser_patch.h
Line 21, Patchset 1: ParserPatch(ContainerNode* host,
AI Code Reviewer . resolved

Blink Style Guide: Don't mix Create () factory methods and public constructors in one class. Since `ParserPatch` has a factory method (`MaybeCreate`), its constructor should not be public. Consider using the `base::PassKey` pattern to restrict access to the constructor while still allowing `MakeGarbageCollected` to work.

To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **OK But Won't Fix**: reason | **Later**: 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)_

Noam Rosenthal

Done

Open in Gerrit

Related details

Attention set is empty
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: I3921cfed43ad13706b9be727fb04b87118a32c5f
Gerrit-Change-Number: 7645949
Gerrit-PatchSet: 3
Gerrit-Owner: Noam Rosenthal <nrose...@google.com>
Gerrit-Reviewer: Noam Rosenthal <nrose...@google.com>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
Gerrit-Comment-Date: Wed, 11 Mar 2026 21:47:03 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Philip Jägenstedt (Gerrit)

unread,
6:10 AM (16 hours ago) 6:10 AM
to Noam Rosenthal, Chromium LUCI CQ, AI Code Reviewer, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org
Attention needed from Noam Rosenthal

Philip Jägenstedt voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Noam Rosenthal
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: I3921cfed43ad13706b9be727fb04b87118a32c5f
Gerrit-Change-Number: 7645949
Gerrit-PatchSet: 4
Gerrit-Owner: Noam Rosenthal <nrose...@google.com>
Gerrit-Reviewer: Noam Rosenthal <nrose...@google.com>
Gerrit-Reviewer: Philip Jägenstedt <foo...@chromium.org>
Gerrit-Attention: Noam Rosenthal <nrose...@google.com>
Gerrit-Comment-Date: Thu, 12 Mar 2026 10:10:13 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Noam Rosenthal (Gerrit)

unread,
6:11 AM (16 hours ago) 6:11 AM
to Philip Jägenstedt, Chromium LUCI CQ, AI Code Reviewer, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org

Noam Rosenthal voted Commit-Queue+2

Commit-Queue+2
Open in Gerrit

Related details

Attention set is empty
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: I3921cfed43ad13706b9be727fb04b87118a32c5f
Gerrit-Change-Number: 7645949
Gerrit-PatchSet: 5
Gerrit-Owner: Noam Rosenthal <nrose...@google.com>
Gerrit-Reviewer: Noam Rosenthal <nrose...@google.com>
Gerrit-Reviewer: Philip Jägenstedt <foo...@chromium.org>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
Gerrit-Comment-Date: Thu, 12 Mar 2026 10:11:04 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Chromium LUCI CQ (Gerrit)

unread,
6:14 AM (16 hours ago) 6:14 AM
to Noam Rosenthal, Philip Jägenstedt, AI Code Reviewer, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org

Chromium LUCI CQ submitted the change

Unreviewed changes

4 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.

Change information

Commit message:
Move patching to own file in html/parser
Bug: 431374376
Change-Id: I3921cfed43ad13706b9be727fb04b87118a32c5f
Reviewed-by: Philip Jägenstedt <foo...@chromium.org>
Commit-Queue: Noam Rosenthal <nrose...@google.com>
Cr-Commit-Position: refs/heads/main@{#1598316}
Files:
  • M third_party/blink/renderer/core/html/build.gni
  • M third_party/blink/renderer/core/html/html_template_element.cc
  • M third_party/blink/renderer/core/html/html_template_element.h
  • M third_party/blink/renderer/core/html/parser/html_construction_site.cc
  • A third_party/blink/renderer/core/html/parser/patch.cc
  • A third_party/blink/renderer/core/html/parser/patch.h
Change size: L
Delta: 6 files changed, 217 insertions(+), 181 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Philip Jägenstedt
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: I3921cfed43ad13706b9be727fb04b87118a32c5f
Gerrit-Change-Number: 7645949
Gerrit-PatchSet: 6
Gerrit-Owner: Noam Rosenthal <nrose...@google.com>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Noam Rosenthal <nrose...@google.com>
Gerrit-Reviewer: Philip Jägenstedt <foo...@chromium.org>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages