| Index: Source/modules/performance/WorkerPerformance.cpp
|
| diff --git a/Source/modules/performance/WorkerPerformance.cpp b/Source/modules/performance/WorkerPerformance.cpp
|
| index 67e77e1ba13c2cfa15a2b83fbf2ef0b584fe02c7..fe20882c6aa3540c37ea9e45c804140f5711bbac 100644
|
| --- a/Source/modules/performance/WorkerPerformance.cpp
|
| +++ b/Source/modules/performance/WorkerPerformance.cpp
|
| @@ -37,19 +37,19 @@
|
|
|
| namespace WebCore {
|
|
|
| -WorkerPerformance::WorkerPerformance(ExecutionContext* context)
|
| - : ContextLifecycleObserver(context)
|
| +WorkerPerformance::WorkerPerformance()
|
| {
|
| + ScriptWrappable::init(this);
|
| }
|
|
|
| WorkerPerformance::~WorkerPerformance()
|
| {
|
| }
|
|
|
| -double WorkerPerformance::now() const
|
| +double WorkerPerformance::now(ExecutionContext* context) const
|
| {
|
| - ExecutionContext* context = executionContext();
|
| ASSERT(context);
|
| + ASSERT(context->isWorkerGlobalScope());
|
| WorkerGlobalScope* workerGlobalScope = toWorkerGlobalScope(context);
|
| return 1000.0 * (monotonicallyIncreasingTime() - workerGlobalScope->timeOrigin());
|
| }
|
|
|