http://trac.webkit.org/changeset/122345 introduced HTMLCollectionWithArrayStorage to share more code between HTMLFormCollection::item and HTMLPropertiesCollection::item. But we can do better by merging it to HTMLCollection::item. In fact, we can also get rid of HTMLCollection::calcLength as well.
Created attachment 152076 [details] Patch
Comment on attachment 152076 [details] Patch Attachment 152076 [details] did not pass gtk-ews (gtk): Output: http://queues.webkit.org/results/13202856
Comment on attachment 152076 [details] Patch (In reply to comment #2) > (From update of attachment 152076 [details]) > Attachment 152076 [details] did not pass gtk-ews (gtk): > Output: http://queues.webkit.org/results/13202856 Oh, oops. A bad merge :( Fixing now.
Created attachment 152080 [details] Patch
Committed r122518: <http://trac.webkit.org/changeset/122518>
FYI this change causes http://code.google.com/p/chromium/issues/detail?id=137488
(In reply to comment #6) > FYI this change causes http://code.google.com/p/chromium/issues/detail?id=137488 Ah, I think I know what's happening there. Try adding arrayOffset = 0 to http://trac.webkit.org/browser/trunk/Source/WebCore/html/HTMLCollection.cpp?rev=122518#L323