LibWeb: Delete public constructor of FontFaceSet

The IDL definition in the spec does not have a public constructor, and
our test that relies on it was failing to run in other browsers.
This commit is contained in:
Aliaksandr Kalenik 2024-09-29 23:19:08 +02:00 committed by Andreas Kling
parent ee7b90b789
commit 814fa0682a
2 changed files with 1 additions and 3 deletions

View File

@ -2,7 +2,7 @@
<script src="../include.js"></script> <script src="../include.js"></script>
<script> <script>
test(() => { test(() => {
const fontFaceSet = new FontFaceSet([]); const fontFaceSet = document.fonts;
const fontFace = new FontFace("Hash Sans", 'url(../../../../Ref/assets/HashSans.woff)'); const fontFace = new FontFace("Hash Sans", 'url(../../../../Ref/assets/HashSans.woff)');
println("-- Empty FontFaceSet --"); println("-- Empty FontFaceSet --");

View File

@ -17,8 +17,6 @@ enum FontFaceSetLoadStatus { "loading", "loaded" };
// https://drafts.csswg.org/css-font-loading/#fontfaceset // https://drafts.csswg.org/css-font-loading/#fontfaceset
[Exposed=(Window,Worker)] [Exposed=(Window,Worker)]
interface FontFaceSet : EventTarget { interface FontFaceSet : EventTarget {
constructor(sequence<FontFace> initialFaces);
setlike<FontFace>; setlike<FontFace>;
FontFaceSet add(FontFace font); FontFaceSet add(FontFace font);
boolean delete(FontFace font); boolean delete(FontFace font);