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

Unified Diff: third_party/WebKit/Source/core/events/TreeScopeEventContext.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/events/TreeScopeEventContext.cpp
diff --git a/third_party/WebKit/Source/core/events/TreeScopeEventContext.cpp b/third_party/WebKit/Source/core/events/TreeScopeEventContext.cpp
index 288119e4dffce9b8797e9688d706a0bf5e4fa27a..0f71ae4f0417b1d02d7b52933f54e317754ebc1d 100644
--- a/third_party/WebKit/Source/core/events/TreeScopeEventContext.cpp
+++ b/third_party/WebKit/Source/core/events/TreeScopeEventContext.cpp
@@ -56,12 +56,12 @@ bool TreeScopeEventContext::isUnclosedTreeOf(const TreeScopeEventContext& other)
return false;
}
-WillBeHeapVector<RefPtrWillBeMember<EventTarget>>& TreeScopeEventContext::ensureEventPath(EventPath& path)
+HeapVector<Member<EventTarget>>& TreeScopeEventContext::ensureEventPath(EventPath& path)
{
if (m_eventPath)
return *m_eventPath;
- m_eventPath = adoptPtrWillBeNoop(new WillBeHeapVector<RefPtrWillBeMember<EventTarget>>());
+ m_eventPath = new HeapVector<Member<EventTarget>>();
LocalDOMWindow* window = path.windowEventContext().window();
m_eventPath->reserveCapacity(path.size() + (window ? 1 : 0));
@@ -81,9 +81,9 @@ TouchEventContext* TreeScopeEventContext::ensureTouchEventContext()
return m_touchEventContext.get();
}
-PassRefPtrWillBeRawPtr<TreeScopeEventContext> TreeScopeEventContext::create(TreeScope& treeScope)
+RawPtr<TreeScopeEventContext> TreeScopeEventContext::create(TreeScope& treeScope)
{
- return adoptRefWillBeNoop(new TreeScopeEventContext(treeScope));
+ return new TreeScopeEventContext(treeScope);
}
TreeScopeEventContext::TreeScopeEventContext(TreeScope& treeScope)
@@ -95,8 +95,6 @@ TreeScopeEventContext::TreeScopeEventContext(TreeScope& treeScope)
{
}
-DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(TreeScopeEventContext)
-
DEFINE_TRACE(TreeScopeEventContext)
{
visitor->trace(m_treeScope);
« no previous file with comments | « third_party/WebKit/Source/core/events/TreeScopeEventContext.h ('k') | third_party/WebKit/Source/core/events/UIEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698