Commit 7dba187e authored by Russ Hamilton's avatar Russ Hamilton Committed by Commit Bot

Instrument SVGTests.requiredExtensions and SVGTests.systemLanguage.

This is part of the identifiability study.

Bug: 973801
Change-Id: Iea741169b1066dcfc4db8bd5abdd0e0e44263101
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2357513
Commit-Queue: Russ Hamilton <behamilton@google.com>
Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#798809}
parent 840ddc02
...@@ -48,6 +48,7 @@ void Dactyloscoper::RecordDirectSurface(ExecutionContext* context, ...@@ -48,6 +48,7 @@ void Dactyloscoper::RecordDirectSurface(ExecutionContext* context,
.Record(document->UkmRecorder()); .Record(document->UkmRecorder());
} }
// static
void Dactyloscoper::RecordDirectSurface(ExecutionContext* context, void Dactyloscoper::RecordDirectSurface(ExecutionContext* context,
WebFeature feature, WebFeature feature,
String str) { String str) {
...@@ -59,6 +60,7 @@ void Dactyloscoper::RecordDirectSurface(ExecutionContext* context, ...@@ -59,6 +60,7 @@ void Dactyloscoper::RecordDirectSurface(ExecutionContext* context,
IdentifiabilitySensitiveStringToken(str)); IdentifiabilitySensitiveStringToken(str));
} }
// static
void Dactyloscoper::RecordDirectSurface(ExecutionContext* context, void Dactyloscoper::RecordDirectSurface(ExecutionContext* context,
WebFeature feature, WebFeature feature,
Vector<String> strs) { Vector<String> strs) {
...@@ -73,6 +75,7 @@ void Dactyloscoper::RecordDirectSurface(ExecutionContext* context, ...@@ -73,6 +75,7 @@ void Dactyloscoper::RecordDirectSurface(ExecutionContext* context,
Dactyloscoper::RecordDirectSurface(context, feature, builder.GetToken()); Dactyloscoper::RecordDirectSurface(context, feature, builder.GetToken());
} }
// static
void Dactyloscoper::RecordDirectSurface(ExecutionContext* context, void Dactyloscoper::RecordDirectSurface(ExecutionContext* context,
WebFeature feature, WebFeature feature,
NotShared<DOMFloat32Array> buffer) { NotShared<DOMFloat32Array> buffer) {
...@@ -86,4 +89,11 @@ void Dactyloscoper::RecordDirectSurface(ExecutionContext* context, ...@@ -86,4 +89,11 @@ void Dactyloscoper::RecordDirectSurface(ExecutionContext* context,
Dactyloscoper::RecordDirectSurface(context, feature, builder.GetToken()); Dactyloscoper::RecordDirectSurface(context, feature, builder.GetToken());
} }
// static
void Dactyloscoper::RecordDirectSurface(ExecutionContext* context,
WebFeature feature,
SVGStringListTearOff* strings) {
RecordDirectSurface(context, feature, strings->Target()->Values());
}
} // namespace blink } // namespace blink
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include "third_party/blink/public/common/privacy_budget/identifiable_token.h" #include "third_party/blink/public/common/privacy_budget/identifiable_token.h"
#include "third_party/blink/renderer/core/core_export.h" #include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/core/frame/web_feature.h" #include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/core/svg/svg_string_list_tear_off.h"
#include "third_party/blink/renderer/core/typed_arrays/array_buffer_view_helpers.h" #include "third_party/blink/renderer/core/typed_arrays/array_buffer_view_helpers.h"
#include "third_party/blink/renderer/core/typed_arrays/dom_typed_array.h" #include "third_party/blink/renderer/core/typed_arrays/dom_typed_array.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h" #include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
...@@ -38,6 +39,9 @@ class CORE_EXPORT Dactyloscoper { ...@@ -38,6 +39,9 @@ class CORE_EXPORT Dactyloscoper {
static void RecordDirectSurface(ExecutionContext*, static void RecordDirectSurface(ExecutionContext*,
WebFeature, WebFeature,
NotShared<DOMFloat32Array>); NotShared<DOMFloat32Array>);
static void RecordDirectSurface(ExecutionContext*,
WebFeature,
SVGStringListTearOff*);
private: private:
DISALLOW_COPY_AND_ASSIGN(Dactyloscoper); DISALLOW_COPY_AND_ASSIGN(Dactyloscoper);
......
...@@ -27,6 +27,6 @@ ...@@ -27,6 +27,6 @@
// https://svgwg.org/svg2-draft/types.html#InterfaceSVGTests // https://svgwg.org/svg2-draft/types.html#InterfaceSVGTests
interface mixin SVGTests { interface mixin SVGTests {
[MeasureAs=SVG1DOMSVGTests] readonly attribute SVGStringList requiredExtensions; [HighEntropy=Direct, MeasureAs=SVG1DOMSVGTests] readonly attribute SVGStringList requiredExtensions;
[MeasureAs=SVG1DOMSVGTests] readonly attribute SVGStringList systemLanguage; [HighEntropy=Direct, MeasureAs=SVG1DOMSVGTests] readonly attribute SVGStringList systemLanguage;
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment