[APC] Improve performance by using fewer DOMNodeIDs [chromium/src : main]

0 views
Skip to first unread message

AI Code Reviewer (Gerrit)

unread,
Feb 7, 2026, 10:19:09 AM (yesterday) Feb 7
to Aaron Leventhal, Chromium LUCI CQ, chromium...@chromium.org, aleventh...@chromium.org, blink-...@chromium.org, mfoltz+wa...@chromium.org

AI Code Reviewer added 1 comment

File third_party/blink/renderer/modules/content_extraction/ai_page_content_agent.h
Line 195, Patchset 1 (Latest): HashMap<uintptr_t, int32_t> dom_node_to_z_order_;
AI Code Reviewer . unresolved

Blink Style Guide: Prefer blink:: types over STL and base types. Consider using 'HeapHashMap<Member<Node>, int32_t>' instead of 'HashMap<uintptr_t, int32_t>' to ensure proper handling of GarbageCollected objects and avoid raw pointer casting.

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)_

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 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: I0415a855f77e6717af74e80469a0271b623e6023
Gerrit-Change-Number: 7552157
Gerrit-PatchSet: 1
Gerrit-Owner: Aaron Leventhal <aleve...@google.com>
Gerrit-Reviewer: Aaron Leventhal <aleve...@google.com>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
Gerrit-Comment-Date: Sat, 07 Feb 2026 15:19:04 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Aaron Leventhal (Gerrit)

unread,
Feb 7, 2026, 3:04:52 PM (23 hours ago) Feb 7
to AI Code Reviewer, Chromium LUCI CQ, chromium...@chromium.org, aleventh...@chromium.org, blink-...@chromium.org, mfoltz+wa...@chromium.org

Aaron Leventhal added 1 comment

File third_party/blink/renderer/modules/content_extraction/ai_page_content_agent.h
Line 195, Patchset 1: HashMap<uintptr_t, int32_t> dom_node_to_z_order_;
AI Code Reviewer . resolved

Blink Style Guide: Prefer blink:: types over STL and base types. Consider using 'HeapHashMap<Member<Node>, int32_t>' instead of 'HashMap<uintptr_t, int32_t>' to ensure proper handling of GarbageCollected objects and avoid raw pointer casting.

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)_

Aaron Leventhal
OK But Won't Fix: ContentBuilder is a short-lived, stack-scoped helper (not an Oilpan heap object), and this map is used only for transient
pointer-identity lookup during a single extraction pass. We intentionally avoid GC-traced Node references here to keep bookkeeping
lightweight and to avoid introducing additional GC/tracing overhead for this hot path.
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: I0415a855f77e6717af74e80469a0271b623e6023
    Gerrit-Change-Number: 7552157
    Gerrit-PatchSet: 3
    Gerrit-Owner: Aaron Leventhal <aleve...@google.com>
    Gerrit-Reviewer: Aaron Leventhal <aleve...@google.com>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-Comment-Date: Sat, 07 Feb 2026 20:04:46 +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
    Reply all
    Reply to author
    Forward
    0 new messages