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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 class ContainerNode; | 36 class ContainerNode; |
37 class DOMSelection; | 37 class DOMSelection; |
38 class Document; | 38 class Document; |
39 class Element; | 39 class Element; |
40 class HTMLLabelElement; | 40 class HTMLLabelElement; |
41 class HTMLMapElement; | 41 class HTMLMapElement; |
42 class LayoutPoint; | 42 class LayoutPoint; |
43 class IdTargetObserverRegistry; | 43 class IdTargetObserverRegistry; |
44 class Node; | 44 class Node; |
| 45 class RenderObject; |
45 | 46 |
46 // A class which inherits both Node and TreeScope must call clearRareData() in i
ts destructor | 47 // A class which inherits both Node and TreeScope must call clearRareData() in i
ts destructor |
47 // so that the Node destructor no longer does problematic NodeList cache manipul
ation in | 48 // so that the Node destructor no longer does problematic NodeList cache manipul
ation in |
48 // the destructor. | 49 // the destructor. |
49 class TreeScope { | 50 class TreeScope { |
50 friend class Document; | 51 friend class Document; |
51 friend class TreeScopeAdopter; | 52 friend class TreeScopeAdopter; |
52 | 53 |
53 public: | 54 public: |
54 TreeScope* parentTreeScope() const { return m_parentTreeScope; } | 55 TreeScope* parentTreeScope() const { return m_parentTreeScope; } |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 { | 180 { |
180 ASSERT(id); | 181 ASSERT(id); |
181 return m_elementsById && m_elementsById->contains(id); | 182 return m_elementsById && m_elementsById->contains(id); |
182 } | 183 } |
183 | 184 |
184 inline bool TreeScope::containsMultipleElementsWithId(const AtomicString& id) co
nst | 185 inline bool TreeScope::containsMultipleElementsWithId(const AtomicString& id) co
nst |
185 { | 186 { |
186 return m_elementsById && m_elementsById->containsMultiple(id.impl()); | 187 return m_elementsById && m_elementsById->containsMultiple(id.impl()); |
187 } | 188 } |
188 | 189 |
189 Node* nodeFromPoint(Document*, int x, int y, LayoutPoint* localPoint = 0); | 190 RenderObject* rendererFromPoint(Document*, int x, int y, LayoutPoint* localPoint
= 0); |
190 TreeScope* commonTreeScope(Node*, Node*); | 191 TreeScope* commonTreeScope(Node*, Node*); |
191 | 192 |
192 } // namespace WebCore | 193 } // namespace WebCore |
193 | 194 |
194 #endif // TreeScope_h | 195 #endif // TreeScope_h |
OLD | NEW |