~ubuntu-branches/ubuntu/gutsy/kde4libs/gutsy

« back to all changes in this revision

Viewing changes to khtml/html/html_miscimpl.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-02-21 11:00:12 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070221110012-6kw8khr9knv6lmg1
Tags: 3.80.3-0ubuntu1
New upstream unstable release

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
#include <kdebug.h>
36
36
 
37
 
HTMLBaseFontElementImpl::HTMLBaseFontElementImpl(DocumentPtr *doc)
 
37
HTMLBaseFontElementImpl::HTMLBaseFontElementImpl(DocumentImpl *doc)
38
38
    : HTMLElementImpl(doc)
39
39
{
40
40
}
91
91
        if(e->id() == ID_IMG)
92
92
            check = true;
93
93
        break;
 
94
    case DOC_SCRIPTS:
 
95
        if(e->id() == ID_SCRIPT)
 
96
            check = true;
 
97
        break;
94
98
    case DOC_FORMS:
95
99
        if(e->id() == ID_FORM)
96
100
            check = true;
213
217
        return NodeListImpl::item(index);
214
218
 
215
219
    //For table.rows, we first need to check header, then bodies, then footer.
216
 
    //we pack any extra headers/footer with bodies. This matches IE, and 
 
220
    //we pack any extra headers/footer with bodies. This matches IE, and
217
221
    //means doing the usual thing with length is right
218
222
    const HTMLTableElementImpl* table = static_cast<const HTMLTableElementImpl*>(m_refNode);
219
223
 
396
400
}
397
401
 
398
402
// -------------------------------------------------------------------------
399
 
HTMLMappedNameCollectionImpl::HTMLMappedNameCollectionImpl(NodeImpl* _base, int _type, const DOMString& _name): 
400
 
    HTMLCollectionImpl(_base, NodeListImpl::UNCACHEABLE), name(_name) 
 
403
HTMLMappedNameCollectionImpl::HTMLMappedNameCollectionImpl(NodeImpl* _base, int _type, const DOMString& _name):
 
404
    HTMLCollectionImpl(_base, NodeListImpl::UNCACHEABLE), name(_name)
401
405
{
402
406
    type = _type; //We pass uncacheable to collection, but need our own type internally.
403
407
}
411
415
    }
412
416
 
413
417
    HTMLElementImpl *e = static_cast<HTMLElementImpl *>(current);
414
 
    
 
418
 
415
419
    return matchesName(e, type, name);
416
420
}
417
421