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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 bool hasChildCount(unsigned) const; | 77 bool hasChildCount(unsigned) const; |
78 | 78 |
79 PassRefPtrWillBeRawPtr<HTMLCollection> children(); | 79 PassRefPtrWillBeRawPtr<HTMLCollection> children(); |
80 | 80 |
81 unsigned countChildren() const; | 81 unsigned countChildren() const; |
82 Node* traverseToChildAt(unsigned index) const; | 82 Node* traverseToChildAt(unsigned index) const; |
83 | 83 |
84 PassRefPtrWillBeRawPtr<Element> querySelector(const AtomicString& selectors,
ExceptionState&); | 84 PassRefPtrWillBeRawPtr<Element> querySelector(const AtomicString& selectors,
ExceptionState&); |
85 PassRefPtrWillBeRawPtr<StaticNodeList> querySelectorAll(const AtomicString&
selectors, ExceptionState&); | 85 PassRefPtrWillBeRawPtr<StaticNodeList> querySelectorAll(const AtomicString&
selectors, ExceptionState&); |
86 | 86 |
87 void insertBefore(PassRefPtrWillBeRawPtr<Node> newChild, Node* refChild, Exc
eptionState& = ASSERT_NO_EXCEPTION); | 87 PassRefPtrWillBeRawPtr<Node> insertBefore(PassRefPtrWillBeRawPtr<Node> newCh
ild, Node* refChild, ExceptionState& = ASSERT_NO_EXCEPTION); |
88 void replaceChild(PassRefPtrWillBeRawPtr<Node> newChild, Node* oldChild, Exc
eptionState& = ASSERT_NO_EXCEPTION); | 88 void replaceChild(PassRefPtrWillBeRawPtr<Node> newChild, Node* oldChild, Exc
eptionState& = ASSERT_NO_EXCEPTION); |
89 void removeChild(Node* child, ExceptionState& = ASSERT_NO_EXCEPTION); | 89 void removeChild(Node* child, ExceptionState& = ASSERT_NO_EXCEPTION); |
90 void appendChild(PassRefPtrWillBeRawPtr<Node> newChild, ExceptionState& = AS
SERT_NO_EXCEPTION); | 90 PassRefPtrWillBeRawPtr<Node> appendChild(PassRefPtrWillBeRawPtr<Node> newChi
ld, ExceptionState& = ASSERT_NO_EXCEPTION); |
91 | 91 |
92 Element* getElementById(const AtomicString& id) const; | 92 Element* getElementById(const AtomicString& id) const; |
93 PassRefPtrWillBeRawPtr<TagCollection> getElementsByTagName(const AtomicStrin
g&); | 93 PassRefPtrWillBeRawPtr<TagCollection> getElementsByTagName(const AtomicStrin
g&); |
94 PassRefPtrWillBeRawPtr<TagCollection> getElementsByTagNameNS(const AtomicStr
ing& namespaceURI, const AtomicString& localName); | 94 PassRefPtrWillBeRawPtr<TagCollection> getElementsByTagNameNS(const AtomicStr
ing& namespaceURI, const AtomicString& localName); |
95 PassRefPtrWillBeRawPtr<NameNodeList> getElementsByName(const AtomicString& e
lementName); | 95 PassRefPtrWillBeRawPtr<NameNodeList> getElementsByName(const AtomicString& e
lementName); |
96 PassRefPtrWillBeRawPtr<ClassCollection> getElementsByClassName(const AtomicS
tring& classNames); | 96 PassRefPtrWillBeRawPtr<ClassCollection> getElementsByClassName(const AtomicS
tring& classNames); |
97 PassRefPtrWillBeRawPtr<RadioNodeList> radioNodeList(const AtomicString&, boo
l onlyMatchImgElements = false); | 97 PassRefPtrWillBeRawPtr<RadioNodeList> radioNodeList(const AtomicString&, boo
l onlyMatchImgElements = false); |
98 | 98 |
99 // These methods are only used during parsing. | 99 // These methods are only used during parsing. |
100 // They don't send DOM mutation events or handle reparenting. | 100 // They don't send DOM mutation events or handle reparenting. |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 inline void getChildNodes(Node& node, NodeVector& nodes) | 325 inline void getChildNodes(Node& node, NodeVector& nodes) |
326 { | 326 { |
327 ASSERT(!nodes.size()); | 327 ASSERT(!nodes.size()); |
328 for (Node* child = node.firstChild(); child; child = child->nextSibling()) | 328 for (Node* child = node.firstChild(); child; child = child->nextSibling()) |
329 nodes.append(child); | 329 nodes.append(child); |
330 } | 330 } |
331 | 331 |
332 } // namespace WebCore | 332 } // namespace WebCore |
333 | 333 |
334 #endif // ContainerNode_h | 334 #endif // ContainerNode_h |
OLD | NEW |