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

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

Issue 926913002: Oilpan: leave out TreeScope::dispose(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | « no previous file | no next file » | 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // quirks mode for historical compatibility reasons. 91 // quirks mode for historical compatibility reasons.
92 Element* findAnchor(const String& name); 92 Element* findAnchor(const String& name);
93 93
94 // Used by the basic DOM mutation methods (e.g., appendChild()). 94 // Used by the basic DOM mutation methods (e.g., appendChild()).
95 void adoptIfNeeded(Node&); 95 void adoptIfNeeded(Node&);
96 96
97 ContainerNode& rootNode() const { return *m_rootNode; } 97 ContainerNode& rootNode() const { return *m_rootNode; }
98 98
99 IdTargetObserverRegistry& idTargetObserverRegistry() const { return *m_idTar getObserverRegistry.get(); } 99 IdTargetObserverRegistry& idTargetObserverRegistry() const { return *m_idTar getObserverRegistry.get(); }
100 100
101
102 #if !ENABLE(OILPAN) 101 #if !ENABLE(OILPAN)
103 // Nodes belonging to this scope hold guard references - 102 // Nodes belonging to this scope hold guard references -
104 // these are enough to keep the scope from being destroyed, but 103 // these are enough to keep the scope from being destroyed, but
105 // not enough to keep it from removing its children. This allows a 104 // not enough to keep it from removing its children. This allows a
106 // node that outlives its scope to still have a valid document 105 // node that outlives its scope to still have a valid document
107 // pointer without introducing reference cycles. 106 // pointer without introducing reference cycles.
108 void guardRef() 107 void guardRef()
109 { 108 {
110 ASSERT(!deletionHasBegun()); 109 ASSERT(!deletionHasBegun());
111 ++m_guardRefCount; 110 ++m_guardRefCount;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 void setDocument(Document& document) { m_document = &document; } 150 void setDocument(Document& document) { m_document = &document; }
152 void setParentTreeScope(TreeScope&); 151 void setParentTreeScope(TreeScope&);
153 152
154 #if !ENABLE(OILPAN) 153 #if !ENABLE(OILPAN)
155 bool hasGuardRefCount() const { return m_guardRefCount; } 154 bool hasGuardRefCount() const { return m_guardRefCount; }
156 #endif 155 #endif
157 156
158 void setNeedsStyleRecalcForViewportUnits(); 157 void setNeedsStyleRecalcForViewportUnits();
159 158
160 private: 159 private:
160 #if !ENABLE(OILPAN)
161 virtual void dispose() { } 161 virtual void dispose() { }
162 162
163 #if !ENABLE(OILPAN)
164 int refCount() const; 163 int refCount() const;
165 164
166 #if ENABLE(SECURITY_ASSERT) 165 #if ENABLE(SECURITY_ASSERT)
167 bool deletionHasBegun(); 166 bool deletionHasBegun();
168 void beginDeletion(); 167 void beginDeletion();
169 #else 168 #else
170 bool deletionHasBegun() { return false; } 169 bool deletionHasBegun() { return false; }
171 void beginDeletion() { } 170 void beginDeletion() { }
172 #endif 171 #endif
173 #endif 172 #endif
(...skipping 30 matching lines...) Expand all
204 return m_elementsById && m_elementsById->containsMultiple(id); 203 return m_elementsById && m_elementsById->containsMultiple(id);
205 } 204 }
206 205
207 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(TreeScope) 206 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(TreeScope)
208 207
209 HitTestResult hitTestInDocument(const Document*, int x, int y); 208 HitTestResult hitTestInDocument(const Document*, int x, int y);
210 209
211 } // namespace blink 210 } // namespace blink
212 211
213 #endif // TreeScope_h 212 #endif // TreeScope_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698