From 56840e0a3509f017f745a002332c6125431260a6 Mon Sep 17 00:00:00 2001 From: Mukilan Thiyagarajan Date: Wed, 19 Feb 2025 11:20:01 +0530 Subject: script: add skeleton implementation of `FontFace` API (#35262) This patch implements the `FontFace` interface, but with some caveats 1. The interface is only exposed on `Window`. Support for Workers will be handled in the future. 2. The concept of `css-connected` `FontFace` is not implemented, so `@font-face` rules in stylesheets will not be represented in the DOM. 3. The constructor only supports using `url()` strings as source and `ArrayBuffer` and `ArrayBufferView` are not supported yet. A skeleton implementation of the `load` method of `FontFaceSet` is also implemented in this patch. The intention is to support some web pages that don't load without this method. Signed-off-by: Mukilan Thiyagarajan --- components/profile/time.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'components/profile') diff --git a/components/profile/time.rs b/components/profile/time.rs index 73a48efa764..c6afff4e7b5 100644 --- a/components/profile/time.rs +++ b/components/profile/time.rs @@ -104,6 +104,7 @@ impl Formattable for ProfilerCategory { ProfilerCategory::ScriptDocumentEvent => "Script Document Event", ProfilerCategory::ScriptEvaluate => "Script JS Evaluate", ProfilerCategory::ScriptFileRead => "Script File Read", + ProfilerCategory::ScriptFontLoading => "Script Font Loading", ProfilerCategory::ScriptHistoryEvent => "Script History Event", ProfilerCategory::ScriptImageCacheMsg => "Script Image Cache Msg", ProfilerCategory::ScriptInputEvent => "Script Input Event", -- cgit v1.2.3