| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 137 |
| 138 Element* getElementByAccessKey(const String& key) const; | 138 Element* getElementByAccessKey(const String& key) const; |
| 139 | 139 |
| 140 virtual void trace(Visitor*); | 140 virtual void trace(Visitor*); |
| 141 | 141 |
| 142 protected: | 142 protected: |
| 143 TreeScope(ContainerNode&, Document&); | 143 TreeScope(ContainerNode&, Document&); |
| 144 TreeScope(Document&); | 144 TreeScope(Document&); |
| 145 virtual ~TreeScope(); | 145 virtual ~TreeScope(); |
| 146 | 146 |
| 147 #if !ENABLE(OILPAN) |
| 147 void destroyTreeScopeData(); | 148 void destroyTreeScopeData(); |
| 149 #endif |
| 150 |
| 148 void setDocument(Document& document) { m_document = &document; } | 151 void setDocument(Document& document) { m_document = &document; } |
| 149 void setParentTreeScope(TreeScope&); | 152 void setParentTreeScope(TreeScope&); |
| 150 | 153 |
| 151 #if !ENABLE(OILPAN) | 154 #if !ENABLE(OILPAN) |
| 152 bool hasGuardRefCount() const { return m_guardRefCount; } | 155 bool hasGuardRefCount() const { return m_guardRefCount; } |
| 153 #endif | 156 #endif |
| 154 | 157 |
| 155 void setNeedsStyleRecalcForViewportUnits(); | 158 void setNeedsStyleRecalcForViewportUnits(); |
| 156 | 159 |
| 157 private: | 160 private: |
| 158 virtual void dispose() { } | 161 virtual void dispose() { } |
| 159 | 162 |
| 160 #if !ENABLE(OILPAN) | 163 #if !ENABLE(OILPAN) |
| 161 int refCount() const; | 164 int refCount() const; |
| 162 #endif | |
| 163 | 165 |
| 164 #if SECURITY_ASSERT_ENABLED && !ENABLE(OILPAN) | 166 #if SECURITY_ASSERT_ENABLED |
| 165 bool deletionHasBegun(); | 167 bool deletionHasBegun(); |
| 166 void beginDeletion(); | 168 void beginDeletion(); |
| 167 #else | 169 #else |
| 168 bool deletionHasBegun() { return false; } | 170 bool deletionHasBegun() { return false; } |
| 169 void beginDeletion() { } | 171 void beginDeletion() { } |
| 170 #endif | 172 #endif |
| 173 #endif |
| 171 | 174 |
| 172 bool rootNodeHasTreeSharedParent() const; | 175 bool rootNodeHasTreeSharedParent() const; |
| 173 | 176 |
| 174 RawPtrWillBeMember<Node> m_rootNode; | 177 RawPtrWillBeMember<Node> m_rootNode; |
| 175 RawPtrWillBeMember<Document> m_document; | 178 RawPtrWillBeMember<Document> m_document; |
| 176 RawPtrWillBeMember<TreeScope> m_parentTreeScope; | 179 RawPtrWillBeMember<TreeScope> m_parentTreeScope; |
| 177 | 180 |
| 178 #if !ENABLE(OILPAN) | 181 #if !ENABLE(OILPAN) |
| 179 int m_guardRefCount; | 182 int m_guardRefCount; |
| 180 #endif | 183 #endif |
| (...skipping 24 matching lines...) Expand all Loading... |
| 205 inline bool operator!=(const TreeScope& a, const TreeScope& b) { return !(a == b
); } | 208 inline bool operator!=(const TreeScope& a, const TreeScope& b) { return !(a == b
); } |
| 206 inline bool operator!=(const TreeScope& a, const TreeScope* b) { return !(a == b
); } | 209 inline bool operator!=(const TreeScope& a, const TreeScope* b) { return !(a == b
); } |
| 207 inline bool operator!=(const TreeScope* a, const TreeScope& b) { return !(a == b
); } | 210 inline bool operator!=(const TreeScope* a, const TreeScope& b) { return !(a == b
); } |
| 208 | 211 |
| 209 HitTestResult hitTestInDocument(const Document*, int x, int y); | 212 HitTestResult hitTestInDocument(const Document*, int x, int y); |
| 210 TreeScope* commonTreeScope(Node*, Node*); | 213 TreeScope* commonTreeScope(Node*, Node*); |
| 211 | 214 |
| 212 } // namespace WebCore | 215 } // namespace WebCore |
| 213 | 216 |
| 214 #endif // TreeScope_h | 217 #endif // TreeScope_h |
| OLD | NEW |