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

Issue 215073003: Move HTMLCollection's id / name cache to a new NamedItemCache class (Closed)

Created:
6 years, 9 months ago by Inactive
Modified:
6 years, 8 months ago
Reviewers:
esprehn, eseidel
CC:
blink-reviews, dglazkov+blink, adamk+blink_chromium.org, adamk
Visibility:
Public.

Description

Move HTMLCollection's id / name cache to a new NamedItemCache class Move HTMLCollection's id / name cache to a new class. HTML's collection m_hasValidIdNameCache, m_idCache and m_nameCache members were replaced by a single OwnPtr that holds an instance of NamedItemCache when populated. Most HTMLCollections do not have a valid namedItemCache so we end up saving some memory. This also makes the code a bit clearer. This patch is based on the following WebKit revision by rniwa@webkit.org: http://trac.webkit.org/changeset/164772 R= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170592

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -49 lines) Patch
M Source/core/html/HTMLAllCollection.cpp View 1 chunk +8 lines, -7 lines 0 comments Download
M Source/core/html/HTMLCollection.h View 2 chunks +36 lines, -19 lines 0 comments Download
M Source/core/html/HTMLCollection.cpp View 5 chunks +9 lines, -17 lines 0 comments Download
M Source/core/html/HTMLFormControlsCollection.cpp View 3 chunks +5 lines, -6 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Inactive
6 years, 9 months ago (2014-03-27 21:41:12 UTC) #1
Inactive
ping review.
6 years, 8 months ago (2014-04-01 17:49:11 UTC) #2
eseidel
lgtm
6 years, 8 months ago (2014-04-01 17:53:15 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/215073003/1
6 years, 8 months ago (2014-04-01 17:53:26 UTC) #4
commit-bot: I haz the power
6 years, 8 months ago (2014-04-01 18:23:57 UTC) #5
Message was sent while issue was closed.
Change committed as 170592

Powered by Google App Engine
This is Rietveld 408576698