Chromium Code Reviews

Unified Diff: Source/core/dom/shadow/ContentDistribution.cpp

Issue 277213004: Oilpan: add transition types to shadow DOM supporting objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use Member<const Node> Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « Source/core/dom/shadow/ContentDistribution.h ('k') | Source/core/dom/shadow/ElementShadow.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/dom/shadow/ContentDistribution.h ('k') | Source/core/dom/shadow/ElementShadow.h » ('j') | no next file with comments »

Powered by Google App Engine