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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 PassRefPtr<Node> cloneNode(bool, ExceptionState&); | 124 PassRefPtr<Node> cloneNode(bool, ExceptionState&); |
125 PassRefPtr<Node> cloneNode(ExceptionState& exceptionState) { return cloneNod
e(true, exceptionState); } | 125 PassRefPtr<Node> cloneNode(ExceptionState& exceptionState) { return cloneNod
e(true, exceptionState); } |
126 | 126 |
127 StyleSheetList* styleSheets(); | 127 StyleSheetList* styleSheets(); |
128 | 128 |
129 private: | 129 private: |
130 ShadowRoot(Document*, ShadowRootType); | 130 ShadowRoot(Document*, ShadowRootType); |
131 virtual ~ShadowRoot(); | 131 virtual ~ShadowRoot(); |
132 | 132 |
133 virtual void dispose() OVERRIDE; | 133 virtual void dispose() OVERRIDE; |
134 virtual bool childTypeAllowed(NodeType) const OVERRIDE; | |
135 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node*
afterChange, int childCountDelta) OVERRIDE; | 134 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node*
afterChange, int childCountDelta) OVERRIDE; |
136 | 135 |
137 ShadowRootRareData* ensureShadowRootRareData(); | 136 ShadowRootRareData* ensureShadowRootRareData(); |
138 | 137 |
139 void addChildShadowRoot(); | 138 void addChildShadowRoot(); |
140 void removeChildShadowRoot(); | 139 void removeChildShadowRoot(); |
141 void invalidateDescendantInsertionPoints(); | 140 void invalidateDescendantInsertionPoints(); |
142 | 141 |
143 // ShadowRoots should never be cloned. | 142 // ShadowRoots should never be cloned. |
144 virtual PassRefPtr<Node> cloneNode(bool) OVERRIDE { return 0; } | 143 virtual PassRefPtr<Node> cloneNode(bool) OVERRIDE { return 0; } |
(...skipping 17 matching lines...) Expand all Loading... |
162 { | 161 { |
163 return adjustedFocusedElement(); | 162 return adjustedFocusedElement(); |
164 } | 163 } |
165 | 164 |
166 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); | 165 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); |
167 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode() && tre
eScope->rootNode()->isShadowRoot(), treeScope.rootNode() && treeScope.rootNode()
->isShadowRoot()); | 166 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode() && tre
eScope->rootNode()->isShadowRoot(), treeScope.rootNode() && treeScope.rootNode()
->isShadowRoot()); |
168 | 167 |
169 } // namespace | 168 } // namespace |
170 | 169 |
171 #endif | 170 #endif |
OLD | NEW |