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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 virtual void trace(Visitor*) OVERRIDE; | 127 virtual void trace(Visitor*) OVERRIDE; |
128 | 128 |
129 private: | 129 private: |
130 ShadowRoot(Document&, ShadowRootType); | 130 ShadowRoot(Document&, ShadowRootType); |
131 virtual ~ShadowRoot(); | 131 virtual ~ShadowRoot(); |
132 | 132 |
133 #if !ENABLE(OILPAN) | 133 #if !ENABLE(OILPAN) |
134 virtual void dispose() OVERRIDE; | 134 virtual void dispose() OVERRIDE; |
135 #endif | 135 #endif |
136 | 136 |
137 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node*
afterChange, int childCountDelta) OVERRIDE; | 137 virtual void childrenChanged(const ChildrenChange&) OVERRIDE; |
138 | 138 |
139 ShadowRootRareData* ensureShadowRootRareData(); | 139 ShadowRootRareData* ensureShadowRootRareData(); |
140 | 140 |
141 void addChildShadowRoot(); | 141 void addChildShadowRoot(); |
142 void removeChildShadowRoot(); | 142 void removeChildShadowRoot(); |
143 void invalidateDescendantInsertionPoints(); | 143 void invalidateDescendantInsertionPoints(); |
144 | 144 |
145 // ShadowRoots should never be cloned. | 145 // ShadowRoots should never be cloned. |
146 virtual PassRefPtrWillBeRawPtr<Node> cloneNode(bool) OVERRIDE { return nullp
tr; } | 146 virtual PassRefPtrWillBeRawPtr<Node> cloneNode(bool) OVERRIDE { return nullp
tr; } |
147 | 147 |
(...skipping 13 matching lines...) Expand all Loading... |
161 { | 161 { |
162 return adjustedFocusedElement(); | 162 return adjustedFocusedElement(); |
163 } | 163 } |
164 | 164 |
165 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); | 165 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); |
166 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); | 166 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); |
167 | 167 |
168 } // namespace | 168 } // namespace |
169 | 169 |
170 #endif | 170 #endif |
OLD | NEW |