| 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-2011, 2014 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 // These should all actually return a node, but this is only important for l
anguage bindings, | 161 // These should all actually return a node, but this is only important for l
anguage bindings, |
| 162 // which will already know and hold a ref on the right node to return. | 162 // which will already know and hold a ref on the right node to return. |
| 163 PassRefPtr<Node> insertBefore(PassRefPtr<Node> newChild, Node* refChild, Exc
eptionState& = ASSERT_NO_EXCEPTION); | 163 PassRefPtr<Node> insertBefore(PassRefPtr<Node> newChild, Node* refChild, Exc
eptionState& = ASSERT_NO_EXCEPTION); |
| 164 PassRefPtr<Node> replaceChild(PassRefPtr<Node> newChild, PassRefPtr<Node> ol
dChild, ExceptionState& = ASSERT_NO_EXCEPTION); | 164 PassRefPtr<Node> replaceChild(PassRefPtr<Node> newChild, PassRefPtr<Node> ol
dChild, ExceptionState& = ASSERT_NO_EXCEPTION); |
| 165 PassRefPtr<Node> removeChild(PassRefPtr<Node> child, ExceptionState& = ASSER
T_NO_EXCEPTION); | 165 PassRefPtr<Node> removeChild(PassRefPtr<Node> child, ExceptionState& = ASSER
T_NO_EXCEPTION); |
| 166 PassRefPtr<Node> appendChild(PassRefPtr<Node> newChild, ExceptionState& = AS
SERT_NO_EXCEPTION); | 166 PassRefPtr<Node> appendChild(PassRefPtr<Node> newChild, ExceptionState& = AS
SERT_NO_EXCEPTION); |
| 167 | 167 |
| 168 bool hasChildren() const { return firstChild(); } | 168 bool hasChildren() const { return firstChild(); } |
| 169 virtual PassRefPtr<Node> cloneNode(bool deep = false) = 0; | 169 virtual PassRefPtr<Node> cloneNode(bool deep = false) = 0; |
| 170 virtual const AtomicString& localName() const; | 170 virtual const AtomicString& localName() const; |
| 171 void normalize(); | |
| 172 | 171 |
| 173 bool isSameNode(Node* other) const { return this == other; } | 172 bool isSameNode(Node* other) const { return this == other; } |
| 174 bool isEqualNode(Node*) const; | 173 bool isEqualNode(Node*) const; |
| 175 | 174 |
| 176 String textContent(bool convertBRsToNewlines = false) const; | 175 String textContent(bool convertBRsToNewlines = false) const; |
| 177 void setTextContent(const String&); | 176 void setTextContent(const String&); |
| 178 | 177 |
| 179 // Other methods (not part of DOM) | 178 // Other methods (not part of DOM) |
| 180 | 179 |
| 181 bool isElementNode() const { return getFlag(IsElementFlag); } | 180 bool isElementNode() const { return getFlag(IsElementFlag); } |
| (...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 784 } // namespace blink | 783 } // namespace blink |
| 785 | 784 |
| 786 #ifndef NDEBUG | 785 #ifndef NDEBUG |
| 787 // Outside the WebCore namespace for ease of invocation from gdb. | 786 // Outside the WebCore namespace for ease of invocation from gdb. |
| 788 void showNode(const blink::Node*); | 787 void showNode(const blink::Node*); |
| 789 void showTree(const blink::Node*); | 788 void showTree(const blink::Node*); |
| 790 void showNodePath(const blink::Node*); | 789 void showNodePath(const blink::Node*); |
| 791 #endif | 790 #endif |
| 792 | 791 |
| 793 #endif // Node_h | 792 #endif // Node_h |
| OLD | NEW |