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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 ShadowRoot* olderShadowRoot() const { return next(); } | 118 ShadowRoot* olderShadowRoot() const { return next(); } |
119 | 119 |
120 String innerHTML() const; | 120 String innerHTML() const; |
121 void setInnerHTML(const String&, ExceptionState&); | 121 void setInnerHTML(const String&, ExceptionState&); |
122 | 122 |
123 PassRefPtrWillBeRawPtr<Node> cloneNode(bool, ExceptionState&); | 123 PassRefPtrWillBeRawPtr<Node> cloneNode(bool, ExceptionState&); |
124 PassRefPtrWillBeRawPtr<Node> cloneNode(ExceptionState& exceptionState) { ret
urn cloneNode(true, exceptionState); } | 124 PassRefPtrWillBeRawPtr<Node> cloneNode(ExceptionState& exceptionState) { ret
urn cloneNode(true, exceptionState); } |
125 | 125 |
126 StyleSheetList* styleSheets(); | 126 StyleSheetList* styleSheets(); |
127 | 127 |
| 128 void setDelegatesFocus(bool flag) { m_delegatesFocus = flag; } |
| 129 bool delegatesFocus() const { return m_delegatesFocus; } |
| 130 |
128 DECLARE_VIRTUAL_TRACE(); | 131 DECLARE_VIRTUAL_TRACE(); |
129 | 132 |
130 private: | 133 private: |
131 ShadowRoot(Document&, ShadowRootType); | 134 ShadowRoot(Document&, ShadowRootType); |
132 virtual ~ShadowRoot(); | 135 virtual ~ShadowRoot(); |
133 | 136 |
134 #if !ENABLE(OILPAN) | 137 #if !ENABLE(OILPAN) |
135 virtual void dispose() override; | 138 virtual void dispose() override; |
136 #endif | 139 #endif |
137 | 140 |
(...skipping 11 matching lines...) Expand all Loading... |
149 // FIXME: This shouldn't happen. https://bugs.webkit.org/show_bug.cgi?id=888
34 | 152 // FIXME: This shouldn't happen. https://bugs.webkit.org/show_bug.cgi?id=888
34 |
150 bool isOrphan() const { return !host(); } | 153 bool isOrphan() const { return !host(); } |
151 | 154 |
152 RawPtrWillBeMember<ShadowRoot> m_prev; | 155 RawPtrWillBeMember<ShadowRoot> m_prev; |
153 RawPtrWillBeMember<ShadowRoot> m_next; | 156 RawPtrWillBeMember<ShadowRoot> m_next; |
154 OwnPtrWillBeMember<ShadowRootRareData> m_shadowRootRareData; | 157 OwnPtrWillBeMember<ShadowRootRareData> m_shadowRootRareData; |
155 unsigned m_numberOfStyles : 27; | 158 unsigned m_numberOfStyles : 27; |
156 unsigned m_type : 1; | 159 unsigned m_type : 1; |
157 unsigned m_registeredWithParentShadowRoot : 1; | 160 unsigned m_registeredWithParentShadowRoot : 1; |
158 unsigned m_descendantInsertionPointsIsValid : 1; | 161 unsigned m_descendantInsertionPointsIsValid : 1; |
| 162 unsigned m_delegatesFocus : 1; |
159 }; | 163 }; |
160 | 164 |
161 inline Element* ShadowRoot::activeElement() const | 165 inline Element* ShadowRoot::activeElement() const |
162 { | 166 { |
163 return adjustedFocusedElement(); | 167 return adjustedFocusedElement(); |
164 } | 168 } |
165 | 169 |
166 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); | 170 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); |
167 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); | 171 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); |
168 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true); | 172 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true); |
169 | 173 |
170 } // namespace blink | 174 } // namespace blink |
171 | 175 |
172 #endif // ShadowRoot_h | 176 #endif // ShadowRoot_h |
OLD | NEW |