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

Unified Diff: Source/core/page/PointerLockController.cpp

Issue 328133002: Oilpan: move Page's PointerLockController object to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/core/page/PointerLockController.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/PointerLockController.cpp
diff --git a/Source/core/page/PointerLockController.cpp b/Source/core/page/PointerLockController.cpp
index 257cfa9bfa718251494689f384a6688e0757af67..f602b0ab9c44d818acb134e76ac8d99dde54e3ae 100644
--- a/Source/core/page/PointerLockController.cpp
+++ b/Source/core/page/PointerLockController.cpp
@@ -41,9 +41,9 @@ PointerLockController::PointerLockController(Page* page)
{
}
-PassOwnPtr<PointerLockController> PointerLockController::create(Page* page)
+PassOwnPtrWillBeRawPtr<PointerLockController> PointerLockController::create(Page* page)
{
- return adoptPtr(new PointerLockController(page));
+ return adoptPtrWillBeNoop(new PointerLockController(page));
}
void PointerLockController::requestPointerLock(Element* target)
@@ -166,4 +166,11 @@ void PointerLockController::enqueueEvent(const AtomicString& type, Document* doc
document->domWindow()->enqueueDocumentEvent(Event::create(type));
}
+void PointerLockController::trace(Visitor* visitor)
+{
+ visitor->trace(m_page);
+ visitor->trace(m_element);
+ visitor->trace(m_documentOfRemovedElementWhileWaitingForUnlock);
+}
+
} // namespace WebCore
« no previous file with comments | « Source/core/page/PointerLockController.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698