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

Side by Side Diff: third_party/WebKit/Source/core/dom/shadow/ShadowRoot.h

Issue 1884333002: Remove OILPAN from core/dom/shadow/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/shadow/InsertionPoint.cpp ('k') | third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698