Index: third_party/WebKit/Source/core/frame/UseCounter.cpp |
diff --git a/third_party/WebKit/Source/core/frame/UseCounter.cpp b/third_party/WebKit/Source/core/frame/UseCounter.cpp |
index 9f7ca376e2d5a62f93cd4ced7905d285e8d683a3..e8ea148d35c1925ac9fbbdda912a0f0e26c1785e 100644 |
--- a/third_party/WebKit/Source/core/frame/UseCounter.cpp |
+++ b/third_party/WebKit/Source/core/frame/UseCounter.cpp |
@@ -1175,15 +1175,15 @@ bool UseCounter::isCounted(Document& document, const String& string) { |
return host->useCounter().isCounted(unresolvedProperty); |
} |
-void UseCounter::count(const ExecutionContext* context, Feature feature) { |
+void UseCounter::count(ExecutionContext* context, Feature feature) { |
if (!context) |
return; |
if (context->isDocument()) { |
count(*toDocument(context), feature); |
return; |
} |
- if (context->isWorkerGlobalScope()) |
- toWorkerGlobalScope(context)->countFeature(feature); |
+ if (context->isWorkerOrWorkletGlobalScope()) |
+ toWorkerOrWorkletGlobalScope(context)->countFeature(feature); |
} |
void UseCounter::countIfNotPrivateScript(v8::Isolate* isolate, |
@@ -1203,7 +1203,7 @@ void UseCounter::countIfNotPrivateScript(v8::Isolate* isolate, |
} |
void UseCounter::countIfNotPrivateScript(v8::Isolate* isolate, |
- const ExecutionContext* context, |
+ ExecutionContext* context, |
Feature feature) { |
if (DOMWrapperWorld::current(isolate).isPrivateScriptIsolatedWorld()) |
return; |