aboutsummaryrefslogtreecommitdiffstats
path: root/components/profile
diff options
context:
space:
mode:
authorMukilan Thiyagarajan <mukilan@igalia.com>2025-02-19 11:20:01 +0530
committerGitHub <noreply@github.com>2025-02-19 05:50:01 +0000
commit56840e0a3509f017f745a002332c6125431260a6 (patch)
treea9401b39fa1717127d5e99e1c6a57ad2f102b737 /components/profile
parent29e0fad21ec561b1778e8d973c4e800702f1b38b (diff)
downloadservo-56840e0a3509f017f745a002332c6125431260a6.tar.gz
servo-56840e0a3509f017f745a002332c6125431260a6.zip
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 <mukilan@igalia.com>
Diffstat (limited to 'components/profile')
-rw-r--r--components/profile/time.rs1
1 files changed, 1 insertions, 0 deletions
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",