| Index: Source/modules/serviceworkers/ServiceWorkerContainerClient.cpp
|
| diff --git a/Source/modules/serviceworkers/ServiceWorkerContainerClient.cpp b/Source/modules/serviceworkers/ServiceWorkerContainerClient.cpp
|
| index 9047eb9fca4e0eeab49c9e67d14ee970a559b98c..5b917184e0caf8986ab78ef5c9f07df73de66fd0 100644
|
| --- a/Source/modules/serviceworkers/ServiceWorkerContainerClient.cpp
|
| +++ b/Source/modules/serviceworkers/ServiceWorkerContainerClient.cpp
|
| @@ -35,13 +35,13 @@ ServiceWorkerContainerClient* ServiceWorkerContainerClient::from(ExecutionContex
|
| if (!document->frame())
|
| return 0;
|
|
|
| - ServiceWorkerContainerClient* client = static_cast<ServiceWorkerContainerClient*>(DocumentSupplement::from(document, supplementName()));
|
| + ServiceWorkerContainerClient* client = static_cast<ServiceWorkerContainerClient*>(WillBeHeapSupplement<Document>::from(document, supplementName()));
|
| if (client)
|
| return client;
|
|
|
| // If it's not provided yet, create it lazily.
|
| - document->DocumentSupplementable::provideSupplement(ServiceWorkerContainerClient::supplementName(), ServiceWorkerContainerClient::create(document->frame()->loader().client()->createServiceWorkerProvider()));
|
| - return static_cast<ServiceWorkerContainerClient*>(DocumentSupplement::from(document, supplementName()));
|
| + document->WillBeHeapSupplementable<Document>::provideSupplement(ServiceWorkerContainerClient::supplementName(), ServiceWorkerContainerClient::create(document->frame()->loader().client()->createServiceWorkerProvider()));
|
| + return static_cast<ServiceWorkerContainerClient*>(WillBeHeapSupplement<Document>::from(document, supplementName()));
|
| }
|
|
|
| if (context->isServiceWorkerGlobalScope()) {
|
|
|