OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 Apple Inc. 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 PassRefPtr<NodeList> queryAll(Node* rootNode) const; | 81 PassRefPtr<NodeList> queryAll(Node* rootNode) const; |
82 PassRefPtr<Element> queryFirst(Node* rootNode) const; | 82 PassRefPtr<Element> queryFirst(Node* rootNode) const; |
83 private: | 83 private: |
84 SelectorDataList m_selectors; | 84 SelectorDataList m_selectors; |
85 CSSSelectorList m_selectorList; | 85 CSSSelectorList m_selectorList; |
86 }; | 86 }; |
87 | 87 |
88 class SelectorQueryCache { | 88 class SelectorQueryCache { |
89 WTF_MAKE_FAST_ALLOCATED; | 89 WTF_MAKE_FAST_ALLOCATED; |
90 public: | 90 public: |
91 SelectorQuery* add(const AtomicString&, Document*, ExceptionState&); | 91 SelectorQuery* add(const AtomicString&, const Document&, ExceptionState&); |
92 void invalidate(); | 92 void invalidate(); |
93 | 93 |
94 private: | 94 private: |
95 HashMap<AtomicString, OwnPtr<SelectorQuery> > m_entries; | 95 HashMap<AtomicString, OwnPtr<SelectorQuery> > m_entries; |
96 }; | 96 }; |
97 | 97 |
98 } | 98 } |
99 | 99 |
100 #endif | 100 #endif |
OLD | NEW |