DescriptionMove 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 #
Messages
Total messages: 5 (0 generated)
|