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 |