Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: Source/core/dom/TreeScope.h

Issue 14508005: Support an Event Path API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Introduce TreeScope::isInclusiveAncestorOf Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/EventContext.cpp ('k') | Source/core/dom/TreeScope.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/dom/EventContext.cpp ('k') | Source/core/dom/TreeScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698