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

« back to all changes in this revision

Viewing changes to src/3rdparty/webkit/WebCore/bindings/js/JSNodeIteratorCustom.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:
1
1
/*
2
 
 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
 
2
 * Copyright (C) 2006, 2008, 2009 Apple Inc. All rights reserved.
3
3
 *
4
4
 * This library is free software; you can redistribute it and/or
5
5
 * modify it under the terms of the GNU Library General Public
29
29
 
30
30
namespace WebCore {
31
31
 
32
 
void JSNodeIterator::mark()
 
32
void JSNodeIterator::markChildren(MarkStack& markStack)
33
33
{
 
34
    Base::markChildren(markStack);
 
35
 
34
36
    if (NodeFilter* filter = m_impl->filter())
35
 
        filter->mark();
36
 
    
37
 
    DOMObject::mark();
 
37
        filter->markAggregate(markStack);
38
38
}
39
39
 
40
 
JSValuePtr JSNodeIterator::nextNode(ExecState* exec, const ArgList&)
 
40
JSValue JSNodeIterator::nextNode(ExecState* exec, const ArgList&)
41
41
{
42
42
    ExceptionCode ec = 0;
43
43
    RefPtr<Node> node = impl()->nextNode(exec, ec);
52
52
    return toJS(exec, node.get());
53
53
}
54
54
 
55
 
JSValuePtr JSNodeIterator::previousNode(ExecState* exec, const ArgList&)
 
55
JSValue JSNodeIterator::previousNode(ExecState* exec, const ArgList&)
56
56
{
57
57
    ExceptionCode ec = 0;
58
58
    RefPtr<Node> node = impl()->previousNode(exec, ec);