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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 PassRefPtr<Node> cloneNode(ExceptionState& exceptionState) { return cloneNod
e(true, exceptionState); } | 121 PassRefPtr<Node> cloneNode(ExceptionState& exceptionState) { return cloneNod
e(true, exceptionState); } |
122 | 122 |
123 StyleSheetList* styleSheets(); | 123 StyleSheetList* styleSheets(); |
124 | 124 |
125 virtual void trace(Visitor*) OVERRIDE; | 125 virtual void trace(Visitor*) OVERRIDE; |
126 | 126 |
127 private: | 127 private: |
128 ShadowRoot(Document&, ShadowRootType); | 128 ShadowRoot(Document&, ShadowRootType); |
129 virtual ~ShadowRoot(); | 129 virtual ~ShadowRoot(); |
130 | 130 |
| 131 #if !ENABLE(OILPAN) |
131 virtual void dispose() OVERRIDE; | 132 virtual void dispose() OVERRIDE; |
| 133 #endif |
| 134 |
132 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node*
afterChange, int childCountDelta) OVERRIDE; | 135 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node*
afterChange, int childCountDelta) OVERRIDE; |
133 | 136 |
134 ShadowRootRareData* ensureShadowRootRareData(); | 137 ShadowRootRareData* ensureShadowRootRareData(); |
135 | 138 |
136 void addChildShadowRoot(); | 139 void addChildShadowRoot(); |
137 void removeChildShadowRoot(); | 140 void removeChildShadowRoot(); |
138 void invalidateDescendantInsertionPoints(); | 141 void invalidateDescendantInsertionPoints(); |
139 | 142 |
140 // ShadowRoots should never be cloned. | 143 // ShadowRoots should never be cloned. |
141 virtual PassRefPtr<Node> cloneNode(bool) OVERRIDE { return nullptr; } | 144 virtual PassRefPtr<Node> cloneNode(bool) OVERRIDE { return nullptr; } |
(...skipping 14 matching lines...) Expand all Loading... |
156 { | 159 { |
157 return adjustedFocusedElement(); | 160 return adjustedFocusedElement(); |
158 } | 161 } |
159 | 162 |
160 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); | 163 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); |
161 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); | 164 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); |
162 | 165 |
163 } // namespace | 166 } // namespace |
164 | 167 |
165 #endif | 168 #endif |
OLD | NEW |