| Index: Source/modules/geolocation/NavigatorGeolocation.cpp
|
| diff --git a/Source/modules/geolocation/NavigatorGeolocation.cpp b/Source/modules/geolocation/NavigatorGeolocation.cpp
|
| index 29683b880b90468cf06d35ee1cc19f03924d0983..764ef3c70ab932e7caffcebf830bdeb66e1910cc 100644
|
| --- a/Source/modules/geolocation/NavigatorGeolocation.cpp
|
| +++ b/Source/modules/geolocation/NavigatorGeolocation.cpp
|
| @@ -46,10 +46,10 @@ const char* NavigatorGeolocation::supplementName()
|
|
|
| NavigatorGeolocation& NavigatorGeolocation::from(Navigator& navigator)
|
| {
|
| - NavigatorGeolocation* supplement = static_cast<NavigatorGeolocation*>(Supplement<Navigator>::from(navigator, supplementName()));
|
| + NavigatorGeolocation* supplement = static_cast<NavigatorGeolocation*>(WillBeHeapSupplement<Navigator>::from(navigator, supplementName()));
|
| if (!supplement) {
|
| supplement = new NavigatorGeolocation(navigator.frame());
|
| - provideTo(navigator, supplementName(), adoptPtr(supplement));
|
| + provideTo(navigator, supplementName(), adoptPtrWillBeNoop(supplement));
|
| }
|
| return *supplement;
|
| }
|
| @@ -66,4 +66,9 @@ Geolocation* NavigatorGeolocation::geolocation() const
|
| return m_geolocation.get();
|
| }
|
|
|
| +void NavigatorGeolocation::trace(Visitor* visitor)
|
| +{
|
| + visitor->trace(m_geolocation);
|
| +}
|
| +
|
| } // namespace WebCore
|
|
|