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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/InsertionPoint.cpp
diff --git a/third_party/WebKit/Source/core/dom/shadow/InsertionPoint.cpp b/third_party/WebKit/Source/core/dom/shadow/InsertionPoint.cpp
index 19323fd4098cdfe0315745b4d62344ab2f7a9ac6..86692384b572bde5e09671a45ace9f3e311e3b78 100644
--- a/third_party/WebKit/Source/core/dom/shadow/InsertionPoint.cpp
+++ b/third_party/WebKit/Source/core/dom/shadow/InsertionPoint.cpp
@@ -149,7 +149,7 @@ bool InsertionPoint::isActive() const
return true;
// Slow path only when there are more than one shadow elements in a shadow tree. That should be a rare case.
- const WillBeHeapVector<RefPtrWillBeMember<InsertionPoint>>& insertionPoints = shadowRoot->descendantInsertionPoints();
+ const HeapVector<Member<InsertionPoint>>& insertionPoints = shadowRoot->descendantInsertionPoints();
for (size_t i = 0; i < insertionPoints.size(); ++i) {
InsertionPoint* point = insertionPoints[i].get();
if (isHTMLShadowElement(*point))
@@ -168,11 +168,11 @@ bool InsertionPoint::isContentInsertionPoint() const
return isHTMLContentElement(*this) && isActive();
}
-PassRefPtrWillBeRawPtr<StaticNodeList> InsertionPoint::getDistributedNodes()
+RawPtr<StaticNodeList> InsertionPoint::getDistributedNodes()
{
updateDistribution();
- WillBeHeapVector<RefPtrWillBeMember<Node>> nodes;
+ HeapVector<Member<Node>> nodes;
nodes.reserveInitialCapacity(m_distributedNodes.size());
for (size_t i = 0; i < m_distributedNodes.size(); ++i)
nodes.uncheckedAppend(m_distributedNodes.at(i));
@@ -273,7 +273,7 @@ const InsertionPoint* resolveReprojection(const Node* projectedNode)
return insertionPoint;
}
-void collectDestinationInsertionPoints(const Node& node, WillBeHeapVector<RawPtrWillBeMember<InsertionPoint>, 8>& results)
+void collectDestinationInsertionPoints(const Node& node, HeapVector<Member<InsertionPoint>, 8>& results)
{
const Node* current = &node;
ElementShadow* lastElementShadow = 0;

Powered by Google App Engine
This is Rietveld 408576698