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

« back to all changes in this revision

Viewing changes to src/3rdparty/webkit/WebCore/dom/Comment.h

  • 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
 
 * This file is part of the DOM implementation for KDE.
3
 
 *
4
2
 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
5
3
 *           (C) 1999 Antti Koivisto (koivisto@kde.org)
6
 
 * Copyright (C) 2003 Apple Computer, Inc.
 
4
 * Copyright (C) 2003, 2009 Apple Inc. All rights reserved.
7
5
 *
8
6
 * This library is free software; you can redistribute it and/or
9
7
 * modify it under the terms of the GNU Library General Public
29
27
 
30
28
namespace WebCore {
31
29
 
32
 
class Comment : public CharacterData
33
 
{
 
30
class Comment : public CharacterData {
34
31
public:
35
 
    Comment(Document*, const String &_text);
36
 
    Comment(Document*);
37
 
    virtual ~Comment();
38
 
 
39
 
    // DOM methods overridden from  parent classes
 
32
    static PassRefPtr<Comment> create(Document*, const String&);
 
33
 
 
34
private:
 
35
    Comment(Document*, const String&);
 
36
 
40
37
    virtual String nodeName() const;
41
38
    virtual NodeType nodeType() const;
42
39
    virtual PassRefPtr<Node> cloneNode(bool deep);
43
 
 
44
 
    // Other methods (not part of DOM)
45
40
    virtual bool isCommentNode() const { return true; }
46
41
    virtual bool childTypeAllowed(NodeType);
47
42
};