Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: third_party/WebKit/Source/core/dom/shadow/ShadowRoot.h

Issue 1899653002: Support slotchange event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bug fix Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 void didAddInsertionPoint(InsertionPoint*); 116 void didAddInsertionPoint(InsertionPoint*);
117 void didRemoveInsertionPoint(InsertionPoint*); 117 void didRemoveInsertionPoint(InsertionPoint*);
118 const HeapVector<Member<InsertionPoint>>& descendantInsertionPoints(); 118 const HeapVector<Member<InsertionPoint>>& descendantInsertionPoints();
119 119
120 ShadowRootType type() const { return static_cast<ShadowRootType>(m_type); } 120 ShadowRootType type() const { return static_cast<ShadowRootType>(m_type); }
121 121
122 void didAddSlot(); 122 void didAddSlot();
123 void didRemoveSlot(); 123 void didRemoveSlot();
124 const HeapVector<Member<HTMLSlotElement>>& descendantSlots(); 124 const HeapVector<Member<HTMLSlotElement>>& descendantSlots();
125 125
126 void assignV1();
126 void distributeV1(); 127 void distributeV1();
127 128
128 HTMLSlotElement* assignedSlotFor(const Node& node) const 129 HTMLSlotElement* assignedSlotFor(const Node& node) const
129 { 130 {
130 DCHECK(m_slotAssignment); 131 DCHECK(m_slotAssignment);
131 return m_slotAssignment->assignedSlotFor(node); 132 return m_slotAssignment->assignedSlotFor(node);
132 } 133 }
133 134
134 // Make protected methods from base class public here. 135 // Make protected methods from base class public here.
135 using TreeScope::setDocument; 136 using TreeScope::setDocument;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 204
204 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); 205 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot());
205 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad owRoot(), treeScope.rootNode().isShadowRoot()); 206 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad owRoot(), treeScope.rootNode().isShadowRoot());
206 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true); 207 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true);
207 208
208 CORE_EXPORT std::ostream& operator<<(std::ostream&, const ShadowRootType&); 209 CORE_EXPORT std::ostream& operator<<(std::ostream&, const ShadowRootType&);
209 210
210 } // namespace blink 211 } // namespace blink
211 212
212 #endif // ShadowRoot_h 213 #endif // ShadowRoot_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698