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

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

Issue 1925043002: Clean up ShadowRootRareData, ShadowRoot and SlotAssignment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make stylesheet() return reference 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/SlotAssignment.cpp
diff --git a/third_party/WebKit/Source/core/dom/shadow/SlotAssignment.cpp b/third_party/WebKit/Source/core/dom/shadow/SlotAssignment.cpp
index 44274a29c1a4add2cce6e37d51527076f286a0a9..1dbf468eeec151c043f7258d443afceb827e568c 100644
--- a/third_party/WebKit/Source/core/dom/shadow/SlotAssignment.cpp
+++ b/third_party/WebKit/Source/core/dom/shadow/SlotAssignment.cpp
@@ -14,6 +14,12 @@
namespace blink {
+
+SlotAssignment::SlotAssignment()
+ : m_descendantSlotCount(0)
+{
+}
+
HTMLSlotElement* SlotAssignment::assignedSlotFor(const Node& node) const
{
return m_assignment.get(const_cast<Node*>(&node));
@@ -107,6 +113,7 @@ void SlotAssignment::distribute(Node& hostChild, HTMLSlotElement& slot)
DEFINE_TRACE(SlotAssignment)
{
+ visitor->trace(m_descendantSlots);
visitor->trace(m_assignment);
}

Powered by Google App Engine
This is Rietveld 408576698