Index: Source/modules/gamepad/NavigatorGamepad.cpp |
diff --git a/Source/modules/gamepad/NavigatorGamepad.cpp b/Source/modules/gamepad/NavigatorGamepad.cpp |
index 534dbfe21feade4436f81cc93ef9bc2f7591805b..f6673f8978ec4774810f5c0bcf4ecc3fa52876d8 100644 |
--- a/Source/modules/gamepad/NavigatorGamepad.cpp |
+++ b/Source/modules/gamepad/NavigatorGamepad.cpp |
@@ -80,10 +80,10 @@ NavigatorGamepad* NavigatorGamepad::from(Document& document) |
NavigatorGamepad& NavigatorGamepad::from(Navigator& navigator) |
{ |
- NavigatorGamepad* supplement = static_cast<NavigatorGamepad*>(WillBeHeapSupplement<Navigator>::from(navigator, supplementName())); |
+ NavigatorGamepad* supplement = static_cast<NavigatorGamepad*>(HeapSupplement<Navigator>::from(navigator, supplementName())); |
if (!supplement) { |
supplement = new NavigatorGamepad(navigator.frame()); |
- provideTo(navigator, supplementName(), adoptPtrWillBeNoop(supplement)); |
+ provideTo(navigator, supplementName(), supplement); |
} |
return *supplement; |
} |
@@ -106,7 +106,7 @@ DEFINE_TRACE(NavigatorGamepad) |
{ |
visitor->trace(m_gamepads); |
visitor->trace(m_pendingEvents); |
- WillBeHeapSupplement<Navigator>::trace(visitor); |
+ HeapSupplement<Navigator>::trace(visitor); |
DOMWindowProperty::trace(visitor); |
PlatformEventController::trace(visitor); |
DOMWindowLifecycleObserver::trace(visitor); |