DescriptionUpdate HTMLCollection.namedItem() to use the id/name cache. HTMLCollection
maintains an id/name cache internally. It was used by namedItems() method but
strangely not by the namedItem() one.
This change is good for performance as HTMLCollection.namedItem() will now use
the cache when available and thus avoid traversing the DOM tree unnecessarily.
There should be not web-exposed behavior change. This functionality is covered
by a decent amount of layout tests.
The CL also gets rid of HTMLCollection::checkForNameMatch() method as it is no
longer used. HTMLCollection::updateNameCache() already has the same checks
inlined.
R=arv, adamk
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166498
Patch Set 1 #
Messages
Total messages: 14 (0 generated)
|