OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. |
3 * Copyright (C) 2014 Samsung Electronics. All rights reserved. | 3 * Copyright (C) 2014 Samsung Electronics. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "wtf/Vector.h" | 33 #include "wtf/Vector.h" |
34 #include "wtf/text/AtomicStringHash.h" | 34 #include "wtf/text/AtomicStringHash.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace WebCore { |
37 | 37 |
38 class CSSSelector; | 38 class CSSSelector; |
39 class ContainerNode; | 39 class ContainerNode; |
40 class Document; | 40 class Document; |
41 class Element; | 41 class Element; |
42 class ExceptionState; | 42 class ExceptionState; |
43 class Node; | |
44 class SimpleNodeList; | |
45 class StaticNodeList; | 43 class StaticNodeList; |
46 class SpaceSplitString; | |
47 | 44 |
48 class SelectorDataList { | 45 class SelectorDataList { |
49 public: | 46 public: |
50 void initialize(const CSSSelectorList&); | 47 void initialize(const CSSSelectorList&); |
51 bool matches(Element&) const; | 48 bool matches(Element&) const; |
52 PassRefPtrWillBeRawPtr<StaticNodeList> queryAll(ContainerNode& rootNode) con
st; | 49 PassRefPtrWillBeRawPtr<StaticNodeList> queryAll(ContainerNode& rootNode) con
st; |
53 PassRefPtrWillBeRawPtr<Element> queryFirst(ContainerNode& rootNode) const; | 50 PassRefPtrWillBeRawPtr<Element> queryFirst(ContainerNode& rootNode) const; |
54 | 51 |
55 private: | 52 private: |
56 bool canUseFastQuery(const ContainerNode& rootNode) const; | 53 bool canUseFastQuery(const ContainerNode& rootNode) const; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 SelectorQuery* add(const AtomicString&, const Document&, ExceptionState&); | 103 SelectorQuery* add(const AtomicString&, const Document&, ExceptionState&); |
107 void invalidate(); | 104 void invalidate(); |
108 | 105 |
109 private: | 106 private: |
110 HashMap<AtomicString, OwnPtr<SelectorQuery> > m_entries; | 107 HashMap<AtomicString, OwnPtr<SelectorQuery> > m_entries; |
111 }; | 108 }; |
112 | 109 |
113 } | 110 } |
114 | 111 |
115 #endif | 112 #endif |
OLD | NEW |