| 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, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
| 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 164 |
| 165 virtual ~Node(); | 165 virtual ~Node(); |
| 166 | 166 |
| 167 // DOM methods & attributes for Node | 167 // DOM methods & attributes for Node |
| 168 | 168 |
| 169 bool hasTagName(const QualifiedName&) const; | 169 bool hasTagName(const QualifiedName&) const; |
| 170 virtual String nodeName() const = 0; | 170 virtual String nodeName() const = 0; |
| 171 virtual String nodeValue() const; | 171 virtual String nodeValue() const; |
| 172 virtual void setNodeValue(const String&); | 172 virtual void setNodeValue(const String&); |
| 173 virtual NodeType nodeType() const = 0; | 173 virtual NodeType nodeType() const = 0; |
| 174 // FIXME: We should get rid of parentNode() usage and replace with parent() | |
| 175 // to bring us inline with the API of other tree structures in the codebase. | |
| 176 ContainerNode* parent() const { return parentNode(); } | |
| 177 ContainerNode* parentNode() const; | 174 ContainerNode* parentNode() const; |
| 178 Element* parentElement() const; | 175 Element* parentElement() const; |
| 179 Node* previousSibling() const { return m_previous; } | 176 Node* previousSibling() const { return m_previous; } |
| 180 Node* nextSibling() const { return m_next; } | 177 Node* nextSibling() const { return m_next; } |
| 181 PassRefPtr<NodeList> childNodes(); | 178 PassRefPtr<NodeList> childNodes(); |
| 182 Node* firstChild() const; | 179 Node* firstChild() const; |
| 183 Node* lastChild() const; | 180 Node* lastChild() const; |
| 184 | 181 |
| 185 // ChildNode interface API | 182 // ChildNode interface API |
| 186 Element* previousElementSibling() const; | 183 Element* previousElementSibling() const; |
| (...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 918 | 915 |
| 919 } // namespace WebCore | 916 } // namespace WebCore |
| 920 | 917 |
| 921 #ifndef NDEBUG | 918 #ifndef NDEBUG |
| 922 // Outside the WebCore namespace for ease of invocation from gdb. | 919 // Outside the WebCore namespace for ease of invocation from gdb. |
| 923 void showTree(const WebCore::Node*); | 920 void showTree(const WebCore::Node*); |
| 924 void showNodePath(const WebCore::Node*); | 921 void showNodePath(const WebCore::Node*); |
| 925 #endif | 922 #endif |
| 926 | 923 |
| 927 #endif | 924 #endif |
| OLD | NEW |