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

Unified Diff: third_party/WebKit/Source/core/html/HTMLSlotElement.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, 9 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/html/HTMLSlotElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp b/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
index 2779b52b78d584da2e9de46afc3bf055d4c1fc0c..c3c78949c10bedc770f876d1e281d1df65c65692 100644
--- a/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
@@ -52,7 +52,7 @@ inline HTMLSlotElement::HTMLSlotElement(Document& document)
DEFINE_NODE_FACTORY(HTMLSlotElement);
-const WillBeHeapVector<RefPtrWillBeMember<Node>> HTMLSlotElement::getAssignedNodesForBinding(const AssignedNodesOptions& options)
+const HeapVector<Member<Node>> HTMLSlotElement::getAssignedNodesForBinding(const AssignedNodesOptions& options)
{
updateDistribution();
if (options.hasFlatten() && options.flatten())
@@ -60,7 +60,7 @@ const WillBeHeapVector<RefPtrWillBeMember<Node>> HTMLSlotElement::getAssignedNod
return m_assignedNodes;
}
-const WillBeHeapVector<RefPtrWillBeMember<Node>>& HTMLSlotElement::getDistributedNodes()
+const HeapVector<Member<Node>>& HTMLSlotElement::getDistributedNodes()
{
ASSERT(!needsDistributionRecalc());
if (isInShadowTree())
@@ -124,7 +124,7 @@ bool HTMLSlotElement::hasSlotChangeEventListener()
void HTMLSlotElement::dispatchSlotChangeEvent()
{
- RefPtrWillBeRawPtr<Event> event = Event::create(EventTypeNames::slotchange);
+ RawPtr<Event> event = Event::create(EventTypeNames::slotchange);
event->setTarget(this);
dispatchScopedEvent(event);
}
@@ -269,7 +269,7 @@ void HTMLSlotElement::didUpdateDistribution()
}
if (hasSlotChangeEventListener() && distributionChanged()) {
// TODO(hayato): Do not enqueue a slotchange event for the same slot twice in the microtask queue
- Microtask::enqueueMicrotask(WTF::bind(&HTMLSlotElement::dispatchSlotChangeEvent, PassRefPtrWillBeRawPtr<HTMLSlotElement>(this)));
+ Microtask::enqueueMicrotask(WTF::bind(&HTMLSlotElement::dispatchSlotChangeEvent, RawPtr<HTMLSlotElement>(this)));
}
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLSlotElement.h ('k') | third_party/WebKit/Source/core/html/HTMLSourceElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698