Remove Document::collectionInfo() and let collections manage their caches.
authorkling@webkit.org <kling@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 1 Jan 2012 00:50:00 +0000 (00:50 +0000)
committerkling@webkit.org <kling@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 1 Jan 2012 00:50:00 +0000 (00:50 +0000)
commite0a8518970640f71f07e30dc5b642e2db639eb57
treec9a6ac468f3e6937145ec7d6ec42785b3beb649d
parentb09d78f693fa7dfb3496016852fcdd5e726c3dbd
Remove Document::collectionInfo() and let collections manage their caches.
<http://webkit.org/b/75401>

Reviewed by Anders Carlsson.

Remove the CollectionCaches from Document and have the document's collections
create and manage the caches on-demand instead. This is a step towards merging
CollectionCache into HTMLCollection.

* dom/Document.h:
* dom/Document.cpp:
* html/HTMLCollection.cpp:
(WebCore::HTMLCollection::HTMLCollection):
* html/HTMLOptionsCollection.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@103864 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/dom/Document.cpp
Source/WebCore/dom/Document.h
Source/WebCore/html/HTMLCollection.cpp
Source/WebCore/html/HTMLOptionsCollection.cpp