OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Neither the name of Google Inc. nor the names of its | 10 * * Neither the name of Google Inc. nor the names of its |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 147 |
148 void setDelegatesFocus(bool flag) { m_delegatesFocus = flag; } | 148 void setDelegatesFocus(bool flag) { m_delegatesFocus = flag; } |
149 bool delegatesFocus() const { return m_delegatesFocus; } | 149 bool delegatesFocus() const { return m_delegatesFocus; } |
150 | 150 |
151 DECLARE_VIRTUAL_TRACE(); | 151 DECLARE_VIRTUAL_TRACE(); |
152 | 152 |
153 private: | 153 private: |
154 ShadowRoot(Document&, ShadowRootType); | 154 ShadowRoot(Document&, ShadowRootType); |
155 ~ShadowRoot() override; | 155 ~ShadowRoot() override; |
156 | 156 |
157 #if !ENABLE(OILPAN) | |
158 void dispose() override; | |
159 #endif | |
160 | |
161 void childrenChanged(const ChildrenChange&) override; | 157 void childrenChanged(const ChildrenChange&) override; |
162 | 158 |
163 ShadowRootRareData* ensureShadowRootRareData(); | 159 ShadowRootRareData* ensureShadowRootRareData(); |
164 | 160 |
165 void addChildShadowRoot(); | 161 void addChildShadowRoot(); |
166 void removeChildShadowRoot(); | 162 void removeChildShadowRoot(); |
167 void invalidateDescendantInsertionPoints(); | 163 void invalidateDescendantInsertionPoints(); |
168 | 164 |
169 // ShadowRoots should never be cloned. | 165 // ShadowRoots should never be cloned. |
170 Node* cloneNode(bool) override { return nullptr; } | 166 Node* cloneNode(bool) override { return nullptr; } |
(...skipping 29 matching lines...) Expand all Loading... |
200 return nullptr; | 196 return nullptr; |
201 } | 197 } |
202 | 198 |
203 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); | 199 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); |
204 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); | 200 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); |
205 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true); | 201 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true); |
206 | 202 |
207 } // namespace blink | 203 } // namespace blink |
208 | 204 |
209 #endif // ShadowRoot_h | 205 #endif // ShadowRoot_h |
OLD | NEW |