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

Unified Diff: third_party/WebKit/Source/core/html/HTMLSlotElement.h

Issue 2460813002: Make slots in non-shadow trees participate in a flat tree (Closed)
Patch Set: update expectation Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/HTMLSlotElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLSlotElement.h b/third_party/WebKit/Source/core/html/HTMLSlotElement.h
index 7b6e44a21bd7e6845d14ddc00d44a68e31c36efa..a17073ef1d8aa278afeeaa2c9b7eceb72dbdf129 100644
--- a/third_party/WebKit/Source/core/html/HTMLSlotElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLSlotElement.h
@@ -46,14 +46,17 @@ class CORE_EXPORT HTMLSlotElement final : public HTMLElement {
const HeapVector<Member<Node>>& assignedNodes();
const HeapVector<Member<Node>>& getDistributedNodes();
+ const HeapVector<Member<Node>> getDistributedNodesForBinding();
const HeapVector<Member<Node>> assignedNodesForBinding(
const AssignedNodesOptions&);
Node* firstDistributedNode() const {
+ DCHECK(supportsDistribution());
return m_distributedNodes.isEmpty() ? nullptr
: m_distributedNodes.first().get();
}
Node* lastDistributedNode() const {
+ DCHECK(supportsDistribution());
return m_distributedNodes.isEmpty() ? nullptr
: m_distributedNodes.last().get();
}
@@ -93,8 +96,7 @@ class CORE_EXPORT HTMLSlotElement final : public HTMLElement {
void clearDistribution();
void saveAndClearDistribution();
- bool supportsDistribution() const { return isInShadowTree(); }
- void updateDistributedNodesManually();
+ bool supportsDistribution() const { return isInV1ShadowTree(); }
static AtomicString normalizeSlotName(const AtomicString&);
« no previous file with comments | « third_party/WebKit/Source/core/editing/Position.cpp ('k') | third_party/WebKit/Source/core/html/HTMLSlotElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698