OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2013 Samsung Electronics. All rights reserved. | 2 * Copyright (C) 2013 Samsung Electronics. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 13 matching lines...) Expand all Loading... | |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef ParentNode_h | 31 #ifndef ParentNode_h |
32 #define ParentNode_h | 32 #define ParentNode_h |
33 | 33 |
34 #include "core/dom/ClassCollection.h" | |
34 #include "core/dom/ContainerNode.h" | 35 #include "core/dom/ContainerNode.h" |
35 #include "core/dom/ElementTraversal.h" | 36 #include "core/dom/ElementTraversal.h" |
37 #include "core/dom/NameNodeList.h" | |
38 #include "core/dom/TagCollection.h" | |
adamk
2014/06/16 20:23:17
Why are these additional #includes needed? I under
Inactive
2014/06/16 20:35:50
This is needed so that the generated V8Document.cp
| |
36 #include "platform/heap/Handle.h" | 39 #include "platform/heap/Handle.h" |
37 | 40 |
38 namespace WebCore { | 41 namespace WebCore { |
39 | 42 |
40 class ParentNode { | 43 class ParentNode { |
41 public: | 44 public: |
42 static PassRefPtrWillBeRawPtr<HTMLCollection> children(ContainerNode& node) | 45 static PassRefPtrWillBeRawPtr<HTMLCollection> children(ContainerNode& node) |
43 { | 46 { |
44 return node.children(); | 47 return node.children(); |
45 } | 48 } |
(...skipping 14 matching lines...) Expand all Loading... | |
60 for (Element* child = ElementTraversal::firstWithin(node); child; child = ElementTraversal::nextSibling(*child)) | 63 for (Element* child = ElementTraversal::firstWithin(node); child; child = ElementTraversal::nextSibling(*child)) |
61 ++count; | 64 ++count; |
62 return count; | 65 return count; |
63 } | 66 } |
64 | 67 |
65 static PassRefPtrWillBeRawPtr<Element> querySelector(ContainerNode& node, co nst AtomicString& selectors, ExceptionState& exceptionState) | 68 static PassRefPtrWillBeRawPtr<Element> querySelector(ContainerNode& node, co nst AtomicString& selectors, ExceptionState& exceptionState) |
66 { | 69 { |
67 return node.querySelector(selectors, exceptionState); | 70 return node.querySelector(selectors, exceptionState); |
68 } | 71 } |
69 | 72 |
70 static PassRefPtrWillBeRawPtr<NodeList> querySelectorAll(ContainerNode& node , const AtomicString& selectors, ExceptionState& exceptionState) | 73 static PassRefPtrWillBeRawPtr<StaticNodeList> querySelectorAll(ContainerNode & node, const AtomicString& selectors, ExceptionState& exceptionState) |
71 { | 74 { |
72 return node.querySelectorAll(selectors, exceptionState); | 75 return node.querySelectorAll(selectors, exceptionState); |
73 } | 76 } |
74 }; | 77 }; |
75 | 78 |
76 } // namespace WebCore | 79 } // namespace WebCore |
77 | 80 |
78 #endif // ParentNode_h | 81 #endif // ParentNode_h |
OLD | NEW |