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

Unified Diff: third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp

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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp
diff --git a/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp b/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp
index 76797f1bd010a02dce6a3792e3d6d5a84de32faa..fac6fa65bb8d5075371431f36b548760d569fa30 100644
--- a/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp
+++ b/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp
@@ -344,13 +344,20 @@ const HeapVector<Member<HTMLSlotElement>>& ShadowRoot::descendantSlots()
return m_shadowRootRareData->descendantSlots();
}
-void ShadowRoot::distributeV1()
+void ShadowRoot::assignV1()
{
if (!m_slotAssignment)
m_slotAssignment = SlotAssignment::create();
m_slotAssignment->resolveAssignment(*this);
}
+void ShadowRoot::distributeV1()
+{
+ if (!m_slotAssignment)
+ m_slotAssignment = SlotAssignment::create();
+ m_slotAssignment->resolveDistribution(*this);
+}
+
DEFINE_TRACE(ShadowRoot)
{
visitor->trace(m_prev);
« no previous file with comments | « third_party/WebKit/Source/core/dom/shadow/ShadowRoot.h ('k') | third_party/WebKit/Source/core/dom/shadow/SlotAssignment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698