Skip to content

Commit 6773aea

Browse files
authored
[font-metrics-api] Convert sequence<T> attributes to FrozenArray<T>
Per https://heycam.github.io/webidl/#idl-sequence, "Sequences must not be used as the type of an attribute or constant."
1 parent a6008c4 commit 6773aea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

font-metrics-api/Overview.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ those that are passed in as a part of the styleMap. Document styles do not apply
5757
<pre class='idl'>
5858
interface FontMetrics {
5959
readonly attribute double width;
60-
readonly attribute sequence&lt;double> advances;
60+
readonly attribute FrozenArray&lt;double> advances;
6161

6262
readonly attribute double boundingBoxLeft;
6363
readonly attribute double boundingBoxRight;
@@ -71,8 +71,8 @@ interface FontMetrics {
7171
readonly attribute double fontBoundingBoxDescent;
7272

7373
readonly attribute Baseline dominantBaseline;
74-
readonly attribute sequence&lt;Baseline> baselines;
75-
readonly attribute sequence&lt;Font> fonts;
74+
readonly attribute FrozenArray&lt;Baseline> baselines;
75+
readonly attribute FrozenArray&lt;Font> fonts;
7676
};
7777
</pre>
7878

0 commit comments

Comments
 (0)