| 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, 2009, 2010, 2011, 2013 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011, 2013 Apple Inc. All r
ights 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 bool hasChildren() const { return m_firstChild; } | 76 bool hasChildren() const { return m_firstChild; } |
| 77 | 77 |
| 78 bool hasOneChild() const { return m_firstChild && !m_firstChild->nextSibling
(); } | 78 bool hasOneChild() const { return m_firstChild && !m_firstChild->nextSibling
(); } |
| 79 bool hasOneTextChild() const { return hasOneChild() && m_firstChild->isTextN
ode(); } | 79 bool hasOneTextChild() const { return hasOneChild() && m_firstChild->isTextN
ode(); } |
| 80 bool hasChildCount(unsigned) const; | 80 bool hasChildCount(unsigned) const; |
| 81 | 81 |
| 82 HTMLCollection* children(); | 82 HTMLCollection* children(); |
| 83 | 83 |
| 84 unsigned countChildren() const; | 84 unsigned countChildren() const; |
| 85 | 85 |
| 86 Element* querySelector(const AtomicString& selectors, ExceptionState&); | 86 Element* querySelector(const AtomicString& selectors, ExceptionState& = ASSE
RT_NO_EXCEPTION); |
| 87 StaticElementList* querySelectorAll(const AtomicString& selectors, Exception
State&); | 87 StaticElementList* querySelectorAll(const AtomicString& selectors, Exception
State&); |
| 88 | 88 |
| 89 Node* insertBefore(Node* newChild, Node* refChild, ExceptionState& = ASSERT_
NO_EXCEPTION); | 89 Node* insertBefore(Node* newChild, Node* refChild, ExceptionState& = ASSERT_
NO_EXCEPTION); |
| 90 Node* replaceChild(Node* newChild, Node* oldChild, ExceptionState& = ASSERT_
NO_EXCEPTION); | 90 Node* replaceChild(Node* newChild, Node* oldChild, ExceptionState& = ASSERT_
NO_EXCEPTION); |
| 91 Node* removeChild(Node* child, ExceptionState& = ASSERT_NO_EXCEPTION); | 91 Node* removeChild(Node* child, ExceptionState& = ASSERT_NO_EXCEPTION); |
| 92 Node* appendChild(Node* newChild, ExceptionState& = ASSERT_NO_EXCEPTION); | 92 Node* appendChild(Node* newChild, ExceptionState& = ASSERT_NO_EXCEPTION); |
| 93 | 93 |
| 94 Element* getElementById(const AtomicString& id) const; | 94 Element* getElementById(const AtomicString& id) const; |
| 95 TagCollection* getElementsByTagName(const AtomicString&); | 95 TagCollection* getElementsByTagName(const AtomicString&); |
| 96 TagCollection* getElementsByTagNameNS(const AtomicString& namespaceURI, cons
t AtomicString& localName); | 96 TagCollection* getElementsByTagNameNS(const AtomicString& namespaceURI, cons
t AtomicString& localName); |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 inline void getChildNodes(ContainerNode& node, NodeVector& nodes) | 338 inline void getChildNodes(ContainerNode& node, NodeVector& nodes) |
| 339 { | 339 { |
| 340 DCHECK(!nodes.size()); | 340 DCHECK(!nodes.size()); |
| 341 for (Node* child = node.firstChild(); child; child = child->nextSibling()) | 341 for (Node* child = node.firstChild(); child; child = child->nextSibling()) |
| 342 nodes.append(child); | 342 nodes.append(child); |
| 343 } | 343 } |
| 344 | 344 |
| 345 } // namespace blink | 345 } // namespace blink |
| 346 | 346 |
| 347 #endif // ContainerNode_h | 347 #endif // ContainerNode_h |
| OLD | NEW |