Index: Source/core/workers/DedicatedWorkerGlobalScope.cpp |
diff --git a/Source/core/workers/DedicatedWorkerGlobalScope.cpp b/Source/core/workers/DedicatedWorkerGlobalScope.cpp |
index f52576759c4a222cdb176e7bac7a47f7835180fa..e05fadef95149947083acd8287255b16527cc115 100644 |
--- a/Source/core/workers/DedicatedWorkerGlobalScope.cpp |
+++ b/Source/core/workers/DedicatedWorkerGlobalScope.cpp |
@@ -97,10 +97,11 @@ private: |
virtual void performTask(ExecutionContext* context) OVERRIDE |
{ |
+ ASSERT(context->isDocument()); |
if (m_isDeprecation) |
- UseCounter::countDeprecation(*toDocument(context), m_feature); |
+ UseCounter::countDeprecation(context, m_feature); |
else |
- UseCounter::count(*toDocument(context), m_feature); |
+ UseCounter::count(context, m_feature); |
} |
UseCounter::Feature m_feature; |