Index: Source/core/dom/shadow/ContentDistribution.cpp |
diff --git a/Source/core/dom/shadow/ContentDistribution.cpp b/Source/core/dom/shadow/ContentDistribution.cpp |
index a53ff57b81b0ce149d5c118210d4e70968ef7032..6b5bed5d153ccf47021968dbce812d7243416923 100644 |
--- a/Source/core/dom/shadow/ContentDistribution.cpp |
+++ b/Source/core/dom/shadow/ContentDistribution.cpp |
@@ -37,7 +37,7 @@ void ContentDistribution::swap(ContentDistribution& other) |
m_indices.swap(other.m_indices); |
} |
-void ContentDistribution::append(PassRefPtr<Node> node) |
+void ContentDistribution::append(PassRefPtrWillBeRawPtr<Node> node) |
{ |
ASSERT(node); |
ASSERT(!isActiveInsertionPoint(*node)); |
@@ -48,7 +48,7 @@ void ContentDistribution::append(PassRefPtr<Node> node) |
size_t ContentDistribution::find(const Node* node) const |
{ |
- HashMap<const Node*, size_t>::const_iterator it = m_indices.find(node); |
+ WillBeHeapHashMap<RawPtrWillBeMember<const Node>, size_t>::const_iterator it = m_indices.find(node); |
if (it == m_indices.end()) |
return kNotFound; |
@@ -71,4 +71,10 @@ Node* ContentDistribution::previousTo(const Node* node) const |
return at(index - 1).get(); |
} |
+void ContentDistribution::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_nodes); |
+ visitor->trace(m_indices); |
+} |
+ |
} // namespace WebCore |