| 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 21 matching lines...) Expand all Loading... |
| 32 #include "wtf/text/AtomicString.h" | 32 #include "wtf/text/AtomicString.h" |
| 33 | 33 |
| 34 namespace WebCore { | 34 namespace WebCore { |
| 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 HitTestResult; |
| 42 class LayoutPoint; | 43 class LayoutPoint; |
| 43 class IdTargetObserverRegistry; | 44 class IdTargetObserverRegistry; |
| 44 class Node; | 45 class Node; |
| 45 class RenderObject; | 46 class RenderObject; |
| 46 | 47 |
| 47 // A class which inherits both Node and TreeScope must call clearRareData() in i
ts destructor | 48 // A class which inherits both Node and TreeScope must call clearRareData() in i
ts destructor |
| 48 // so that the Node destructor no longer does problematic NodeList cache manipul
ation in | 49 // so that the Node destructor no longer does problematic NodeList cache manipul
ation in |
| 49 // the destructor. | 50 // the destructor. |
| 50 class TreeScope { | 51 class TreeScope { |
| 51 friend class Document; | 52 friend class Document; |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 return m_elementsById && m_elementsById->containsMultiple(id.impl()); | 188 return m_elementsById && m_elementsById->containsMultiple(id.impl()); |
| 188 } | 189 } |
| 189 | 190 |
| 190 inline bool operator==(const TreeScope& a, const TreeScope& b) { return &a == &b
; } | 191 inline bool operator==(const TreeScope& a, const TreeScope& b) { return &a == &b
; } |
| 191 inline bool operator==(const TreeScope& a, const TreeScope* b) { return &a == b;
} | 192 inline bool operator==(const TreeScope& a, const TreeScope* b) { return &a == b;
} |
| 192 inline bool operator==(const TreeScope* a, const TreeScope& b) { return a == &b;
} | 193 inline bool operator==(const TreeScope* a, const TreeScope& b) { return a == &b;
} |
| 193 inline bool operator!=(const TreeScope& a, const TreeScope& b) { return !(a == b
); } | 194 inline bool operator!=(const TreeScope& a, const TreeScope& b) { return !(a == b
); } |
| 194 inline bool operator!=(const TreeScope& a, const TreeScope* b) { return !(a == b
); } | 195 inline bool operator!=(const TreeScope& a, const TreeScope* b) { return !(a == b
); } |
| 195 inline bool operator!=(const TreeScope* a, const TreeScope& b) { return !(a == b
); } | 196 inline bool operator!=(const TreeScope* a, const TreeScope& b) { return !(a == b
); } |
| 196 | 197 |
| 197 RenderObject* rendererFromPoint(Document*, int x, int y, LayoutPoint* localPoint
= 0); | 198 HitTestResult hitTestInDocument(const Document&, int x, int y); |
| 198 TreeScope* commonTreeScope(Node*, Node*); | 199 TreeScope* commonTreeScope(Node*, Node*); |
| 199 | 200 |
| 200 } // namespace WebCore | 201 } // namespace WebCore |
| 201 | 202 |
| 202 #endif // TreeScope_h | 203 #endif // TreeScope_h |
| OLD | NEW |