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 9721bdaa5043171ccd25bd9b3d2ce9560fd8eaea..bf36612cb38d3211b4fb332ced1f86e90bd5f716 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLSlotElement.h |
+++ b/third_party/WebKit/Source/core/html/HTMLSlotElement.h |
@@ -61,6 +61,8 @@ public: |
void updateDistributedNodesWithFallback(); |
+ void lazyReattachDistributedNodesIfNeeded(); |
+ |
void attach(const AttachContext& = AttachContext()) final; |
void detach(const AttachContext& = AttachContext()) final; |
@@ -78,6 +80,7 @@ public: |
void enqueueSlotChangeEvent(); |
void clearDistribution(); |
+ void saveAndClearDistribution(); |
static AtomicString normalizeSlotName(const AtomicString&); |
@@ -94,6 +97,7 @@ private: |
HeapVector<Member<Node>> m_assignedNodes; |
HeapVector<Member<Node>> m_distributedNodes; |
+ HeapVector<Member<Node>> m_oldDistributedNodes; |
HeapHashMap<Member<const Node>, size_t> m_distributedIndices; |
bool m_slotchangeEventEnqueued = false; |
}; |