| Index: Source/bindings/templates/methods.cpp
|
| diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp
|
| index 94b70730869b707916dfc76315938738c13565d4..c2d2e70a1dffe18aaddec76ae2d5b56428c20f57 100644
|
| --- a/Source/bindings/templates/methods.cpp
|
| +++ b/Source/bindings/templates/methods.cpp
|
| @@ -364,10 +364,10 @@ static void {{overloads.name}}Method{{world_suffix}}(const v8::FunctionCallbackI
|
| {
|
| ExceptionState exceptionState(ExceptionState::ExecutionContext, "{{overloads.name}}", "{{interface_name}}", info.Holder(), info.GetIsolate());
|
| {% if overloads.measure_all_as %}
|
| - UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::{{overloads.measure_all_as}});
|
| + UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionContext(info.GetIsolate()), UseCounter::{{overloads.measure_all_as}});
|
| {% endif %}
|
| {% if overloads.deprecate_all_as %}
|
| - UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), UseCounter::{{overloads.deprecate_all_as}});
|
| + UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExecutionContext(info.GetIsolate()), UseCounter::{{overloads.deprecate_all_as}});
|
| {% endif %}
|
| {# First resolve by length #}
|
| {# 2. Initialize argcount to be min(maxarg, n). #}
|
| @@ -382,10 +382,10 @@ static void {{overloads.name}}Method{{world_suffix}}(const v8::FunctionCallbackI
|
| method.runtime_enabled_function) %}
|
| if ({{test}}) {
|
| {% if method.measure_as and not overloads.measure_all_as %}
|
| - UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::{{method.measure_as}});
|
| + UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionContext(info.GetIsolate()), UseCounter::{{method.measure_as}});
|
| {% endif %}
|
| {% if method.deprecate_as and not overloads.deprecate_all_as %}
|
| - UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), UseCounter::{{method.deprecate_as}});
|
| + UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExecutionContext(info.GetIsolate()), UseCounter::{{method.deprecate_as}});
|
| {% endif %}
|
| {{method.name}}{{method.overload_index}}Method{{world_suffix}}(info);
|
| return;
|
| @@ -424,10 +424,10 @@ static void {{method.name}}MethodCallback{{world_suffix}}(const v8::FunctionCall
|
| TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
|
| {% if not method.overloads %}{# Overloaded methods are measured in overload_resolution_method() #}
|
| {% if method.measure_as %}
|
| - UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::{{method.measure_as}});
|
| + UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionContext(info.GetIsolate()), UseCounter::{{method.measure_as}});
|
| {% endif %}
|
| {% if method.deprecate_as %}
|
| - UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), UseCounter::{{method.deprecate_as}});
|
| + UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExecutionContext(info.GetIsolate()), UseCounter::{{method.deprecate_as}});
|
| {% endif %}
|
| {% endif %}{# not method.overloads #}
|
| {% if world_suffix in method.activity_logging_world_list %}
|
|
|