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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 ShadowRoot* olderShadowRoot() const { return next(); } | 116 ShadowRoot* olderShadowRoot() const { return next(); } |
117 | 117 |
118 String innerHTML() const; | 118 String innerHTML() const; |
119 void setInnerHTML(const String&, ExceptionState&); | 119 void setInnerHTML(const String&, ExceptionState&); |
120 | 120 |
121 PassRefPtr<Node> cloneNode(bool, ExceptionState&); | 121 PassRefPtr<Node> cloneNode(bool, ExceptionState&); |
122 PassRefPtr<Node> cloneNode(ExceptionState& exceptionState) { return cloneNod
e(true, exceptionState); } | 122 PassRefPtr<Node> cloneNode(ExceptionState& exceptionState) { return cloneNod
e(true, exceptionState); } |
123 | 123 |
124 StyleSheetList* styleSheets(); | 124 StyleSheetList* styleSheets(); |
125 bool isActiveForStyling() const; | |
126 | 125 |
127 private: | 126 private: |
128 ShadowRoot(Document&, ShadowRootType); | 127 ShadowRoot(Document&, ShadowRootType); |
129 virtual ~ShadowRoot(); | 128 virtual ~ShadowRoot(); |
130 | 129 |
131 virtual void dispose() OVERRIDE; | 130 virtual void dispose() OVERRIDE; |
132 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node*
afterChange, int childCountDelta) OVERRIDE; | 131 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node*
afterChange, int childCountDelta) OVERRIDE; |
133 | 132 |
134 ShadowRootRareData* ensureShadowRootRareData(); | 133 ShadowRootRareData* ensureShadowRootRareData(); |
135 | 134 |
(...skipping 21 matching lines...) Expand all Loading... |
157 { | 156 { |
158 return adjustedFocusedElement(); | 157 return adjustedFocusedElement(); |
159 } | 158 } |
160 | 159 |
161 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); | 160 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); |
162 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); | 161 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); |
163 | 162 |
164 } // namespace | 163 } // namespace |
165 | 164 |
166 #endif | 165 #endif |
OLD | NEW |