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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 117 |
118 public: | 118 public: |
119 Element* activeElement() const; | 119 Element* activeElement() const; |
120 | 120 |
121 ShadowRoot* olderShadowRoot() const { return next(); } | 121 ShadowRoot* olderShadowRoot() const { return next(); } |
122 | 122 |
123 String innerHTML() const; | 123 String innerHTML() const; |
124 void setInnerHTML(const String&, ExceptionState&); | 124 void setInnerHTML(const String&, ExceptionState&); |
125 | 125 |
126 PassRefPtrWillBeRawPtr<Node> cloneNode(bool, ExceptionState&); | 126 PassRefPtrWillBeRawPtr<Node> cloneNode(bool, ExceptionState&); |
127 PassRefPtrWillBeRawPtr<Node> cloneNode(ExceptionState& exceptionState) { ret
urn cloneNode(true, exceptionState); } | |
128 | 127 |
129 StyleSheetList* styleSheets(); | 128 StyleSheetList* styleSheets(); |
130 | 129 |
131 void setDelegatesFocus(bool flag) { m_delegatesFocus = flag; } | 130 void setDelegatesFocus(bool flag) { m_delegatesFocus = flag; } |
132 bool delegatesFocus() const { return m_delegatesFocus; } | 131 bool delegatesFocus() const { return m_delegatesFocus; } |
133 | 132 |
134 DECLARE_VIRTUAL_TRACE(); | 133 DECLARE_VIRTUAL_TRACE(); |
135 | 134 |
136 private: | 135 private: |
137 ShadowRoot(Document&, ShadowRootType); | 136 ShadowRoot(Document&, ShadowRootType); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 return adjustedFocusedElement(); | 169 return adjustedFocusedElement(); |
171 } | 170 } |
172 | 171 |
173 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); | 172 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); |
174 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); | 173 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); |
175 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true); | 174 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true); |
176 | 175 |
177 } // namespace blink | 176 } // namespace blink |
178 | 177 |
179 #endif // ShadowRoot_h | 178 #endif // ShadowRoot_h |
OLD | NEW |