| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 bool isSameNode(Node* other) const { return this == other; } | 209 bool isSameNode(Node* other) const { return this == other; } |
| 210 bool isEqualNode(Node*) const; | 210 bool isEqualNode(Node*) const; |
| 211 bool isDefaultNamespace(const AtomicString& namespaceURI) const; | 211 bool isDefaultNamespace(const AtomicString& namespaceURI) const; |
| 212 String lookupPrefix(const AtomicString& namespaceURI) const; | 212 String lookupPrefix(const AtomicString& namespaceURI) const; |
| 213 String lookupNamespaceURI(const String& prefix) const; | 213 String lookupNamespaceURI(const String& prefix) const; |
| 214 String lookupNamespacePrefix(const AtomicString& namespaceURI, const Element
* originalElement) const; | 214 String lookupNamespacePrefix(const AtomicString& namespaceURI, const Element
* originalElement) const; |
| 215 | 215 |
| 216 String textContent(bool convertBRsToNewlines = false) const; | 216 String textContent(bool convertBRsToNewlines = false) const; |
| 217 void setTextContent(const String&, ExceptionState&); | 217 void setTextContent(const String&, ExceptionState&); |
| 218 | 218 |
| 219 Node* lastDescendant() const; | 219 Node& lastDescendant() const; |
| 220 Node* firstDescendant() const; | |
| 221 | 220 |
| 222 // Other methods (not part of DOM) | 221 // Other methods (not part of DOM) |
| 223 | 222 |
| 224 bool isElementNode() const { return getFlag(IsElementFlag); } | 223 bool isElementNode() const { return getFlag(IsElementFlag); } |
| 225 bool isContainerNode() const { return getFlag(IsContainerFlag); } | 224 bool isContainerNode() const { return getFlag(IsContainerFlag); } |
| 226 bool isTextNode() const { return getFlag(IsTextFlag); } | 225 bool isTextNode() const { return getFlag(IsTextFlag); } |
| 227 bool isHTMLElement() const { return getFlag(IsHTMLFlag); } | 226 bool isHTMLElement() const { return getFlag(IsHTMLFlag); } |
| 228 bool isSVGElement() const { return getFlag(IsSVGFlag); } | 227 bool isSVGElement() const { return getFlag(IsSVGFlag); } |
| 229 | 228 |
| 230 bool isPseudoElement() const { return pseudoId() != NOPSEUDO; } | 229 bool isPseudoElement() const { return pseudoId() != NOPSEUDO; } |
| (...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 939 | 938 |
| 940 } // namespace WebCore | 939 } // namespace WebCore |
| 941 | 940 |
| 942 #ifndef NDEBUG | 941 #ifndef NDEBUG |
| 943 // Outside the WebCore namespace for ease of invocation from gdb. | 942 // Outside the WebCore namespace for ease of invocation from gdb. |
| 944 void showTree(const WebCore::Node*); | 943 void showTree(const WebCore::Node*); |
| 945 void showNodePath(const WebCore::Node*); | 944 void showNodePath(const WebCore::Node*); |
| 946 #endif | 945 #endif |
| 947 | 946 |
| 948 #endif | 947 #endif |
| OLD | NEW |