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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 #if !ENABLE(OILPAN) | 183 #if !ENABLE(OILPAN) |
184 int m_guardRefCount; | 184 int m_guardRefCount; |
185 #endif | 185 #endif |
186 | 186 |
187 OwnPtrWillBeMember<DocumentOrderedMap> m_elementsById; | 187 OwnPtrWillBeMember<DocumentOrderedMap> m_elementsById; |
188 OwnPtrWillBeMember<DocumentOrderedMap> m_imageMapsByName; | 188 OwnPtrWillBeMember<DocumentOrderedMap> m_imageMapsByName; |
189 OwnPtrWillBeMember<DocumentOrderedMap> m_labelsByForAttribute; | 189 OwnPtrWillBeMember<DocumentOrderedMap> m_labelsByForAttribute; |
190 | 190 |
191 OwnPtrWillBeMember<IdTargetObserverRegistry> m_idTargetObserverRegistry; | 191 OwnPtrWillBeMember<IdTargetObserverRegistry> m_idTargetObserverRegistry; |
192 | 192 |
193 OwnPtr<ScopedStyleResolver> m_scopedStyleResolver; | 193 OwnPtrWillBeMember<ScopedStyleResolver> m_scopedStyleResolver; |
194 | 194 |
195 mutable RefPtrWillBeMember<DOMSelection> m_selection; | 195 mutable RefPtrWillBeMember<DOMSelection> m_selection; |
196 }; | 196 }; |
197 | 197 |
198 inline bool TreeScope::hasElementWithId(StringImpl* id) const | 198 inline bool TreeScope::hasElementWithId(StringImpl* id) const |
199 { | 199 { |
200 ASSERT(id); | 200 ASSERT(id); |
201 return m_elementsById && m_elementsById->contains(id); | 201 return m_elementsById && m_elementsById->contains(id); |
202 } | 202 } |
203 | 203 |
204 inline bool TreeScope::containsMultipleElementsWithId(const AtomicString& id) co
nst | 204 inline bool TreeScope::containsMultipleElementsWithId(const AtomicString& id) co
nst |
205 { | 205 { |
206 return m_elementsById && m_elementsById->containsMultiple(id.impl()); | 206 return m_elementsById && m_elementsById->containsMultiple(id.impl()); |
207 } | 207 } |
208 | 208 |
209 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(TreeScope) | 209 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(TreeScope) |
210 | 210 |
211 HitTestResult hitTestInDocument(const Document*, int x, int y); | 211 HitTestResult hitTestInDocument(const Document*, int x, int y); |
212 TreeScope* commonTreeScope(Node*, Node*); | 212 TreeScope* commonTreeScope(Node*, Node*); |
213 | 213 |
214 } // namespace blink | 214 } // namespace blink |
215 | 215 |
216 #endif // TreeScope_h | 216 #endif // TreeScope_h |
OLD | NEW |