~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/3rdparty/webkit/WebCore/html/HTMLFormCollection.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include "config.h"
24
24
#include "HTMLFormCollection.h"
25
25
 
 
26
#include "CollectionCache.h"
26
27
#include "HTMLFormControlElement.h"
27
28
#include "HTMLFormElement.h"
28
29
#include "HTMLImageElement.h"
35
36
// Since the collections are to be "live", we have to do the
36
37
// calculation every time if anything has changed.
37
38
 
38
 
inline HTMLCollection::CollectionInfo* HTMLFormCollection::formCollectionInfo(HTMLFormElement* form)
 
39
inline CollectionCache* HTMLFormCollection::formCollectionInfo(HTMLFormElement* form)
39
40
{
40
41
    if (!form->collectionInfo)
41
 
        form->collectionInfo = new CollectionInfo;
 
42
        form->collectionInfo = new CollectionCache;
42
43
    return form->collectionInfo;
43
44
}
44
45
 
45
46
HTMLFormCollection::HTMLFormCollection(PassRefPtr<HTMLFormElement> form)
46
 
    : HTMLCollection(form.get(), Other, formCollectionInfo(form.get()))
 
47
    : HTMLCollection(form.get(), OtherCollection, formCollectionInfo(form.get()))
47
48
{
48
49
}
49
50