| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 ASSERT(!deletionHasBegun()); | 120 ASSERT(!deletionHasBegun()); |
| 121 --m_guardRefCount; | 121 --m_guardRefCount; |
| 122 if (!m_guardRefCount && !refCount() && this != noDocumentInstance()) { | 122 if (!m_guardRefCount && !refCount() && this != noDocumentInstance()) { |
| 123 beginDeletion(); | 123 beginDeletion(); |
| 124 delete this; | 124 delete this; |
| 125 } | 125 } |
| 126 } | 126 } |
| 127 | 127 |
| 128 void removedLastRefToScope(); | 128 void removedLastRefToScope(); |
| 129 | 129 |
| 130 bool isInclusiveAncestorOf(const TreeScope*) const; |
| 131 |
| 130 protected: | 132 protected: |
| 131 TreeScope(ContainerNode*, Document*); | 133 TreeScope(ContainerNode*, Document*); |
| 132 TreeScope(Document*); | 134 TreeScope(Document*); |
| 133 virtual ~TreeScope(); | 135 virtual ~TreeScope(); |
| 134 | 136 |
| 135 void destroyTreeScopeData(); | 137 void destroyTreeScopeData(); |
| 136 void clearDocumentScope(); | 138 void clearDocumentScope(); |
| 137 void setDocumentScope(Document* document) | 139 void setDocumentScope(Document* document) |
| 138 { | 140 { |
| 139 ASSERT(document); | 141 ASSERT(document); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 { | 183 { |
| 182 return m_elementsById && m_elementsById->containsMultiple(id.impl()); | 184 return m_elementsById && m_elementsById->containsMultiple(id.impl()); |
| 183 } | 185 } |
| 184 | 186 |
| 185 Node* nodeFromPoint(Document*, int x, int y, LayoutPoint* localPoint = 0); | 187 Node* nodeFromPoint(Document*, int x, int y, LayoutPoint* localPoint = 0); |
| 186 TreeScope* commonTreeScope(Node*, Node*); | 188 TreeScope* commonTreeScope(Node*, Node*); |
| 187 | 189 |
| 188 } // namespace WebCore | 190 } // namespace WebCore |
| 189 | 191 |
| 190 #endif // TreeScope_h | 192 #endif // TreeScope_h |
| OLD | NEW |