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 16 matching lines...) Expand all Loading... |
27 #ifndef ShadowRoot_h | 27 #ifndef ShadowRoot_h |
28 #define ShadowRoot_h | 28 #define ShadowRoot_h |
29 | 29 |
30 #include "core/CoreExport.h" | 30 #include "core/CoreExport.h" |
31 #include "core/dom/ContainerNode.h" | 31 #include "core/dom/ContainerNode.h" |
32 #include "core/dom/DocumentFragment.h" | 32 #include "core/dom/DocumentFragment.h" |
33 #include "core/dom/Element.h" | 33 #include "core/dom/Element.h" |
34 #include "core/dom/TreeScope.h" | 34 #include "core/dom/TreeScope.h" |
35 #include "core/dom/shadow/SlotAssignment.h" | 35 #include "core/dom/shadow/SlotAssignment.h" |
36 #include "wtf/DoublyLinkedList.h" | 36 #include "wtf/DoublyLinkedList.h" |
| 37 #include <iosfwd> |
37 | 38 |
38 namespace blink { | 39 namespace blink { |
39 | 40 |
40 class Document; | 41 class Document; |
41 class ElementShadow; | 42 class ElementShadow; |
42 class ExceptionState; | 43 class ExceptionState; |
43 class HTMLShadowElement; | 44 class HTMLShadowElement; |
44 class InsertionPoint; | 45 class InsertionPoint; |
45 class ShadowRootRareData; | 46 class ShadowRootRareData; |
46 class StyleSheetList; | 47 class StyleSheetList; |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 ShadowRoot* root = this->shadowRoot(); | 194 ShadowRoot* root = this->shadowRoot(); |
194 if (root && root->isV1()) | 195 if (root && root->isV1()) |
195 return root; | 196 return root; |
196 return nullptr; | 197 return nullptr; |
197 } | 198 } |
198 | 199 |
199 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); | 200 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); |
200 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); | 201 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); |
201 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true); | 202 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true); |
202 | 203 |
| 204 std::ostream& operator<<(std::ostream&, const ShadowRootType&); |
| 205 |
203 } // namespace blink | 206 } // namespace blink |
204 | 207 |
205 #endif // ShadowRoot_h | 208 #endif // ShadowRoot_h |
OLD | NEW |