OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All Rights Reserved. | 2 * Copyright (C) 2011 Google Inc. All Rights Reserved. |
3 * Copyright (C) 2012 Apple Inc. All Rights Reserved. | 3 * Copyright (C) 2012 Apple Inc. 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 * 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 RawPtrWillBeMember<TreeScope> m_parentTreeScope; | 179 RawPtrWillBeMember<TreeScope> m_parentTreeScope; |
180 | 180 |
181 #if !ENABLE(OILPAN) | 181 #if !ENABLE(OILPAN) |
182 int m_guardRefCount; | 182 int m_guardRefCount; |
183 #endif | 183 #endif |
184 | 184 |
185 OwnPtr<DocumentOrderedMap> m_elementsById; | 185 OwnPtr<DocumentOrderedMap> m_elementsById; |
186 OwnPtr<DocumentOrderedMap> m_imageMapsByName; | 186 OwnPtr<DocumentOrderedMap> m_imageMapsByName; |
187 OwnPtr<DocumentOrderedMap> m_labelsByForAttribute; | 187 OwnPtr<DocumentOrderedMap> m_labelsByForAttribute; |
188 | 188 |
189 OwnPtr<IdTargetObserverRegistry> m_idTargetObserverRegistry; | 189 OwnPtrWillBeMember<IdTargetObserverRegistry> m_idTargetObserverRegistry; |
190 | 190 |
191 mutable RefPtrWillBeMember<DOMSelection> m_selection; | 191 mutable RefPtrWillBeMember<DOMSelection> m_selection; |
192 }; | 192 }; |
193 | 193 |
194 inline bool TreeScope::hasElementWithId(StringImpl* id) const | 194 inline bool TreeScope::hasElementWithId(StringImpl* id) const |
195 { | 195 { |
196 ASSERT(id); | 196 ASSERT(id); |
197 return m_elementsById && m_elementsById->contains(id); | 197 return m_elementsById && m_elementsById->contains(id); |
198 } | 198 } |
199 | 199 |
200 inline bool TreeScope::containsMultipleElementsWithId(const AtomicString& id) co
nst | 200 inline bool TreeScope::containsMultipleElementsWithId(const AtomicString& id) co
nst |
201 { | 201 { |
202 return m_elementsById && m_elementsById->containsMultiple(id.impl()); | 202 return m_elementsById && m_elementsById->containsMultiple(id.impl()); |
203 } | 203 } |
204 | 204 |
205 inline bool operator==(const TreeScope& a, const TreeScope& b) { return &a == &b
; } | 205 inline bool operator==(const TreeScope& a, const TreeScope& b) { return &a == &b
; } |
206 inline bool operator==(const TreeScope& a, const TreeScope* b) { return &a == b;
} | 206 inline bool operator==(const TreeScope& a, const TreeScope* b) { return &a == b;
} |
207 inline bool operator==(const TreeScope* a, const TreeScope& b) { return a == &b;
} | 207 inline bool operator==(const TreeScope* a, const TreeScope& b) { return a == &b;
} |
208 inline bool operator!=(const TreeScope& a, const TreeScope& b) { return !(a == b
); } | 208 inline bool operator!=(const TreeScope& a, const TreeScope& b) { return !(a == b
); } |
209 inline bool operator!=(const TreeScope& a, const TreeScope* b) { return !(a == b
); } | 209 inline bool operator!=(const TreeScope& a, const TreeScope* b) { return !(a == b
); } |
210 inline bool operator!=(const TreeScope* a, const TreeScope& b) { return !(a == b
); } | 210 inline bool operator!=(const TreeScope* a, const TreeScope& b) { return !(a == b
); } |
211 | 211 |
212 HitTestResult hitTestInDocument(const Document*, int x, int y); | 212 HitTestResult hitTestInDocument(const Document*, int x, int y); |
213 TreeScope* commonTreeScope(Node*, Node*); | 213 TreeScope* commonTreeScope(Node*, Node*); |
214 | 214 |
215 } // namespace WebCore | 215 } // namespace WebCore |
216 | 216 |
217 #endif // TreeScope_h | 217 #endif // TreeScope_h |
OLD | NEW |