Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Unified Diff: Source/bindings/core/v8/custom/V8ElementCustom.cpp

Issue 656693002: Don't count UseCounters in private scripts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/core/v8/custom/V8ElementCustom.cpp
diff --git a/Source/bindings/core/v8/custom/V8ElementCustom.cpp b/Source/bindings/core/v8/custom/V8ElementCustom.cpp
index 51ea1171d90be676daab6fbea6dddc88c71d2fed..270d2fc535c067de13e755f14bec1371dd62e00e 100644
--- a/Source/bindings/core/v8/custom/V8ElementCustom.cpp
+++ b/Source/bindings/core/v8/custom/V8ElementCustom.cpp
@@ -181,7 +181,7 @@ void V8Element::animateMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& i
// [MeasureAs=ElementAnimateKeyframeListEffectNoTiming]
// AnimationPlayer animate(sequence<Dictionary> effect);
if (info[0]->IsArray()) {
- UseCounter::count(callingExecutionContext(isolate), UseCounter::ElementAnimateKeyframeListEffectNoTiming);
+ UseCounter::countIfNotPrivateScript(isolate, callingExecutionContext(isolate), UseCounter::ElementAnimateKeyframeListEffectNoTiming);
animate2Method(info);
return;
}
@@ -212,14 +212,14 @@ void V8Element::animateMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& i
// [MeasureAs=ElementAnimateKeyframeListEffectObjectTiming]
// AnimationPlayer animate(sequence<Dictionary> effect, Dictionary timing);
if (info[0]->IsArray() && info[1]->IsObject()) {
- UseCounter::count(callingExecutionContext(isolate), UseCounter::ElementAnimateKeyframeListEffectObjectTiming);
+ UseCounter::countIfNotPrivateScript(isolate, callingExecutionContext(isolate), UseCounter::ElementAnimateKeyframeListEffectObjectTiming);
animate6Method(info);
return;
}
// [MeasureAs=ElementAnimateKeyframeListEffectDoubleTiming]
// AnimationPlayer animate(sequence<Dictionary> effect, double timing);
if (info[0]->IsArray()) {
- UseCounter::count(callingExecutionContext(isolate), UseCounter::ElementAnimateKeyframeListEffectDoubleTiming);
+ UseCounter::countIfNotPrivateScript(isolate, callingExecutionContext(isolate), UseCounter::ElementAnimateKeyframeListEffectDoubleTiming);
animate5Method(info);
return;
}

Powered by Google App Engine
This is Rietveld 408576698