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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 virtual bool applyAuthorStyles() const; | 89 virtual bool applyAuthorStyles() const; |
90 virtual bool resetStyleInheritance() const; | 90 virtual bool resetStyleInheritance() const; |
91 | 91 |
92 // Used by the basic DOM mutation methods (e.g., appendChild()). | 92 // Used by the basic DOM mutation methods (e.g., appendChild()). |
93 void adoptIfNeeded(Node*); | 93 void adoptIfNeeded(Node*); |
94 | 94 |
95 Node* rootNode() const { return m_rootNode; } | 95 Node* rootNode() const { return m_rootNode; } |
96 | 96 |
97 IdTargetObserverRegistry& idTargetObserverRegistry() const { return *m_idTar
getObserverRegistry.get(); } | 97 IdTargetObserverRegistry& idTargetObserverRegistry() const { return *m_idTar
getObserverRegistry.get(); } |
98 | 98 |
99 virtual void reportMemoryUsage(MemoryObjectInfo*) const; | |
100 | |
101 static TreeScope* noDocumentInstance() | 99 static TreeScope* noDocumentInstance() |
102 { | 100 { |
103 DEFINE_STATIC_LOCAL(TreeScope, instance, ()); | 101 DEFINE_STATIC_LOCAL(TreeScope, instance, ()); |
104 return &instance; | 102 return &instance; |
105 } | 103 } |
106 | 104 |
107 // Nodes belonging to this scope hold guard references - | 105 // Nodes belonging to this scope hold guard references - |
108 // these are enough to keep the scope from being destroyed, but | 106 // these are enough to keep the scope from being destroyed, but |
109 // not enough to keep it from removing its children. This allows a | 107 // not enough to keep it from removing its children. This allows a |
110 // node that outlives its scope to still have a valid document | 108 // node that outlives its scope to still have a valid document |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 { | 179 { |
182 return m_elementsById && m_elementsById->containsMultiple(id.impl()); | 180 return m_elementsById && m_elementsById->containsMultiple(id.impl()); |
183 } | 181 } |
184 | 182 |
185 Node* nodeFromPoint(Document*, int x, int y, LayoutPoint* localPoint = 0); | 183 Node* nodeFromPoint(Document*, int x, int y, LayoutPoint* localPoint = 0); |
186 TreeScope* commonTreeScope(Node*, Node*); | 184 TreeScope* commonTreeScope(Node*, Node*); |
187 | 185 |
188 } // namespace WebCore | 186 } // namespace WebCore |
189 | 187 |
190 #endif // TreeScope_h | 188 #endif // TreeScope_h |
OLD | NEW |