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 23 matching lines...) Expand all Loading... |
34 #include "core/dom/DocumentFragment.h" | 34 #include "core/dom/DocumentFragment.h" |
35 #include "core/dom/Element.h" | 35 #include "core/dom/Element.h" |
36 #include "core/dom/TreeScope.h" | 36 #include "core/dom/TreeScope.h" |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 class Document; | 40 class Document; |
41 class ElementShadow; | 41 class ElementShadow; |
42 class ExceptionState; | 42 class ExceptionState; |
43 class HTMLShadowElement; | 43 class HTMLShadowElement; |
44 class HTMLSlotElement; | |
45 class InsertionPoint; | 44 class InsertionPoint; |
46 class ShadowRootRareDataV0; | 45 class ShadowRootRareDataV0; |
47 class SlotAssignment; | 46 class SlotAssignment; |
48 | 47 |
49 enum class ShadowRootType { UserAgent, V0, Open, Closed }; | 48 enum class ShadowRootType { UserAgent, V0, Open, Closed }; |
50 | 49 |
51 class CORE_EXPORT ShadowRoot final : public DocumentFragment, public TreeScope { | 50 class CORE_EXPORT ShadowRoot final : public DocumentFragment, public TreeScope { |
52 DEFINE_WRAPPERTYPEINFO(); | 51 DEFINE_WRAPPERTYPEINFO(); |
53 USING_GARBAGE_COLLECTED_MIXIN(ShadowRoot); | 52 USING_GARBAGE_COLLECTED_MIXIN(ShadowRoot); |
54 | 53 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 treeScope, | 195 treeScope, |
197 treeScope->rootNode().isShadowRoot(), | 196 treeScope->rootNode().isShadowRoot(), |
198 treeScope.rootNode().isShadowRoot()); | 197 treeScope.rootNode().isShadowRoot()); |
199 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true); | 198 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true); |
200 | 199 |
201 CORE_EXPORT std::ostream& operator<<(std::ostream&, const ShadowRootType&); | 200 CORE_EXPORT std::ostream& operator<<(std::ostream&, const ShadowRootType&); |
202 | 201 |
203 } // namespace blink | 202 } // namespace blink |
204 | 203 |
205 #endif // ShadowRoot_h | 204 #endif // ShadowRoot_h |
OLD | NEW |