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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 ShadowRoot* olderShadowRoot() const { return next(); } | 114 ShadowRoot* olderShadowRoot() const { return next(); } |
115 | 115 |
116 String innerHTML() const; | 116 String innerHTML() const; |
117 void setInnerHTML(const String&, ExceptionState&); | 117 void setInnerHTML(const String&, ExceptionState&); |
118 | 118 |
119 PassRefPtr<Node> cloneNode(bool, ExceptionState&); | 119 PassRefPtr<Node> cloneNode(bool, ExceptionState&); |
120 PassRefPtr<Node> cloneNode(ExceptionState& exceptionState) { return cloneNod
e(true, exceptionState); } | 120 PassRefPtr<Node> cloneNode(ExceptionState& exceptionState) { return cloneNod
e(true, exceptionState); } |
121 | 121 |
122 StyleSheetList* styleSheets(); | 122 StyleSheetList* styleSheets(); |
123 | 123 |
| 124 virtual void trace(Visitor* visitor) OVERRIDE |
| 125 { |
| 126 TreeScope::trace(visitor); |
| 127 DocumentFragment::trace(visitor); |
| 128 } |
| 129 |
124 private: | 130 private: |
125 ShadowRoot(Document&, ShadowRootType); | 131 ShadowRoot(Document&, ShadowRootType); |
126 virtual ~ShadowRoot(); | 132 virtual ~ShadowRoot(); |
127 | 133 |
128 virtual void dispose() OVERRIDE; | 134 virtual void dispose() OVERRIDE; |
129 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; |
130 | 136 |
131 ShadowRootRareData* ensureShadowRootRareData(); | 137 ShadowRootRareData* ensureShadowRootRareData(); |
132 | 138 |
133 void addChildShadowRoot(); | 139 void addChildShadowRoot(); |
(...skipping 19 matching lines...) Expand all Loading... |
153 { | 159 { |
154 return adjustedFocusedElement(); | 160 return adjustedFocusedElement(); |
155 } | 161 } |
156 | 162 |
157 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); | 163 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); |
158 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()); |
159 | 165 |
160 } // namespace | 166 } // namespace |
161 | 167 |
162 #endif | 168 #endif |
OLD | NEW |