Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Issue 2765653002: Remove a level of indirection in HTMLCollection. (Closed)

Created:
3 years, 9 months ago by jbroman
Modified:
3 years, 9 months ago
Reviewers:
tkent, dglazkov
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove a level of indirection in HTMLCollection. It's not necessary to give HeapVector a separate allocation (itself, it's only a pointer and two integers). Fixing this requires us to make the code const-correct. While here, it's easy to replace repeated push_back with appendVector, which is more efficient. Review-Url: https://codereview.chromium.org/2765653002 Cr-Commit-Position: refs/heads/master@{#458496} Committed: https://chromium.googlesource.com/chromium/src/+/0f1cedecb0e3586a32ed44d5064f82ff8f8eac5f

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -24 lines) Patch
M third_party/WebKit/Source/core/html/HTMLAllCollection.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLCollection.h View 2 chunks +16 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLCollection.cpp View 2 chunks +6 lines, -11 lines 0 comments Download

Messages

Total messages: 13 (9 generated)
jbroman
Not important, but spotted a pointer-to-vector use and thought it might be simpler this way. ...
3 years, 9 months ago (2017-03-21 13:58:48 UTC) #6
dglazkov
lgtm
3 years, 9 months ago (2017-03-21 14:34:45 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2765653002/1
3 years, 9 months ago (2017-03-21 18:48:04 UTC) #10
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 18:59:00 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/0f1cedecb0e3586a32ed44d5064f...

Powered by Google App Engine
This is Rietveld 408576698