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

Unified Diff: Source/modules/gamepad/NavigatorGamepad.cpp

Issue 1101263003: Oilpan: have Navigator and its supplements be on the heap by default. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 8 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/modules/gamepad/NavigatorGamepad.h ('k') | Source/modules/geolocation/NavigatorGeolocation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « Source/modules/gamepad/NavigatorGamepad.h ('k') | Source/modules/geolocation/NavigatorGeolocation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698