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 Apple Inc. All rights
reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 bool hasChildCount(unsigned) const; | 74 bool hasChildCount(unsigned) const; |
75 | 75 |
76 PassRefPtrWillBeRawPtr<HTMLCollection> children(); | 76 PassRefPtrWillBeRawPtr<HTMLCollection> children(); |
77 | 77 |
78 unsigned countChildren() const; | 78 unsigned countChildren() const; |
79 Node* traverseToChildAt(unsigned index) const; | 79 Node* traverseToChildAt(unsigned index) const; |
80 | 80 |
81 PassRefPtrWillBeRawPtr<Element> querySelector(const AtomicString& selectors,
ExceptionState&); | 81 PassRefPtrWillBeRawPtr<Element> querySelector(const AtomicString& selectors,
ExceptionState&); |
82 PassRefPtrWillBeRawPtr<NodeList> querySelectorAll(const AtomicString& select
ors, ExceptionState&); | 82 PassRefPtrWillBeRawPtr<NodeList> querySelectorAll(const AtomicString& select
ors, ExceptionState&); |
83 | 83 |
84 void insertBefore(PassRefPtr<Node> newChild, Node* refChild, ExceptionState&
= ASSERT_NO_EXCEPTION); | 84 void insertBefore(PassRefPtrWillBeRawPtr<Node> newChild, Node* refChild, Exc
eptionState& = ASSERT_NO_EXCEPTION); |
85 void replaceChild(PassRefPtr<Node> newChild, Node* oldChild, ExceptionState&
= ASSERT_NO_EXCEPTION); | 85 void replaceChild(PassRefPtrWillBeRawPtr<Node> newChild, Node* oldChild, Exc
eptionState& = ASSERT_NO_EXCEPTION); |
86 void removeChild(Node* child, ExceptionState& = ASSERT_NO_EXCEPTION); | 86 void removeChild(Node* child, ExceptionState& = ASSERT_NO_EXCEPTION); |
87 void appendChild(PassRefPtr<Node> newChild, ExceptionState& = ASSERT_NO_EXCE
PTION); | 87 void appendChild(PassRefPtrWillBeRawPtr<Node> newChild, ExceptionState& = AS
SERT_NO_EXCEPTION); |
88 | 88 |
89 Element* getElementById(const AtomicString& id) const; | 89 Element* getElementById(const AtomicString& id) const; |
90 PassRefPtrWillBeRawPtr<HTMLCollection> getElementsByTagName(const AtomicStri
ng&); | 90 PassRefPtrWillBeRawPtr<HTMLCollection> getElementsByTagName(const AtomicStri
ng&); |
91 PassRefPtrWillBeRawPtr<HTMLCollection> getElementsByTagNameNS(const AtomicSt
ring& namespaceURI, const AtomicString& localName); | 91 PassRefPtrWillBeRawPtr<HTMLCollection> getElementsByTagNameNS(const AtomicSt
ring& namespaceURI, const AtomicString& localName); |
92 PassRefPtrWillBeRawPtr<NodeList> getElementsByName(const AtomicString& eleme
ntName); | 92 PassRefPtrWillBeRawPtr<NodeList> getElementsByName(const AtomicString& eleme
ntName); |
93 PassRefPtrWillBeRawPtr<HTMLCollection> getElementsByClassName(const AtomicSt
ring& classNames); | 93 PassRefPtrWillBeRawPtr<HTMLCollection> getElementsByClassName(const AtomicSt
ring& classNames); |
94 PassRefPtrWillBeRawPtr<RadioNodeList> radioNodeList(const AtomicString&, boo
l onlyMatchImgElements = false); | 94 PassRefPtrWillBeRawPtr<RadioNodeList> radioNodeList(const AtomicString&, boo
l onlyMatchImgElements = false); |
95 | 95 |
96 // These methods are only used during parsing. | 96 // These methods are only used during parsing. |
97 // They don't send DOM mutation events or handle reparenting. | 97 // They don't send DOM mutation events or handle reparenting. |
98 void parserAppendChild(PassRefPtr<Node>); | 98 void parserAppendChild(PassRefPtrWillBeRawPtr<Node>); |
99 void parserRemoveChild(Node&); | 99 void parserRemoveChild(Node&); |
100 void parserInsertBefore(PassRefPtr<Node> newChild, Node& refChild); | 100 void parserInsertBefore(PassRefPtrWillBeRawPtr<Node> newChild, Node& refChil
d); |
101 void parserTakeAllChildrenFrom(ContainerNode&); | 101 void parserTakeAllChildrenFrom(ContainerNode&); |
102 | 102 |
103 void removeChildren(); | 103 void removeChildren(); |
104 | 104 |
105 void cloneChildNodes(ContainerNode* clone); | 105 void cloneChildNodes(ContainerNode* clone); |
106 | 106 |
107 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; | 107 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; |
108 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE; | 108 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE; |
109 virtual LayoutRect boundingBox() const OVERRIDE FINAL; | 109 virtual LayoutRect boundingBox() const OVERRIDE FINAL; |
110 virtual void setFocus(bool) OVERRIDE; | 110 virtual void setFocus(bool) OVERRIDE; |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 inline void getChildNodes(Node& node, NodeVector& nodes) | 307 inline void getChildNodes(Node& node, NodeVector& nodes) |
308 { | 308 { |
309 ASSERT(!nodes.size()); | 309 ASSERT(!nodes.size()); |
310 for (Node* child = node.firstChild(); child; child = child->nextSibling()) | 310 for (Node* child = node.firstChild(); child; child = child->nextSibling()) |
311 nodes.append(child); | 311 nodes.append(child); |
312 } | 312 } |
313 | 313 |
314 } // namespace WebCore | 314 } // namespace WebCore |
315 | 315 |
316 #endif // ContainerNode_h | 316 #endif // ContainerNode_h |
OLD | NEW |