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

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

Issue 2086013003: Make sure to lazyReattach a distributed node if it is already attached (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 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 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;
};
« no previous file with comments | « third_party/WebKit/Source/core/dom/shadow/SlotAssignment.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