OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004, 2005, 2006, 2008, 2009 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2008, 2009 Apple Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 class NamedNodeMap; | 31 class NamedNodeMap; |
32 | 32 |
33 class DocumentType FINAL : public Node { | 33 class DocumentType FINAL : public Node { |
34 public: | 34 public: |
35 static PassRefPtr<DocumentType> create(Document* document, const String& nam
e, const String& publicId, const String& systemId) | 35 static PassRefPtr<DocumentType> create(Document* document, const String& nam
e, const String& publicId, const String& systemId) |
36 { | 36 { |
37 return adoptRef(new DocumentType(document, name, publicId, systemId)); | 37 return adoptRef(new DocumentType(document, name, publicId, systemId)); |
38 } | 38 } |
39 | 39 |
40 // FIXME: These wre removed from DOM4, we should add a UseCounter and see if | |
41 // we can remove them since they never worked anyway. | |
42 NamedNodeMap* entities() const { return 0; } | |
43 | |
44 const String& name() const { return m_name; } | 40 const String& name() const { return m_name; } |
45 const String& publicId() const { return m_publicId; } | 41 const String& publicId() const { return m_publicId; } |
46 const String& systemId() const { return m_systemId; } | 42 const String& systemId() const { return m_systemId; } |
47 const String& internalSubset() const { return m_subset; } | 43 const String& internalSubset() const { return m_subset; } |
48 | 44 |
49 private: | 45 private: |
50 DocumentType(Document*, const String& name, const String& publicId, const St
ring& systemId); | 46 DocumentType(Document*, const String& name, const String& publicId, const St
ring& systemId); |
51 | 47 |
52 virtual KURL baseURI() const OVERRIDE; | 48 virtual KURL baseURI() const OVERRIDE; |
53 virtual String nodeName() const OVERRIDE; | 49 virtual String nodeName() const OVERRIDE; |
54 virtual NodeType nodeType() const OVERRIDE; | 50 virtual NodeType nodeType() const OVERRIDE; |
55 virtual PassRefPtr<Node> cloneNode(bool deep) OVERRIDE; | 51 virtual PassRefPtr<Node> cloneNode(bool deep) OVERRIDE; |
56 | 52 |
57 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 53 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
58 virtual void removedFrom(ContainerNode*) OVERRIDE; | 54 virtual void removedFrom(ContainerNode*) OVERRIDE; |
59 | 55 |
60 String m_name; | 56 String m_name; |
61 String m_publicId; | 57 String m_publicId; |
62 String m_systemId; | 58 String m_systemId; |
63 String m_subset; | 59 String m_subset; |
64 }; | 60 }; |
65 | 61 |
66 DEFINE_NODE_TYPE_CASTS(DocumentType, isDocumentTypeNode()); | 62 DEFINE_NODE_TYPE_CASTS(DocumentType, isDocumentTypeNode()); |
67 | 63 |
68 } // namespace WebCore | 64 } // namespace WebCore |
69 | 65 |
70 #endif | 66 #endif |
OLD | NEW |