diff options
Diffstat (limited to 'components/script/task_source.rs')
-rw-r--r-- | components/script/task_source.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/task_source.rs b/components/script/task_source.rs index 0030dcb8c30..3d9993f6082 100644 --- a/components/script/task_source.rs +++ b/components/script/task_source.rs @@ -27,6 +27,8 @@ pub(crate) enum TaskSourceName { Canvas, DOMManipulation, FileReading, + /// <https://drafts.csswg.org/css-font-loading/#task-source> + FontLoading, HistoryTraversal, Networking, PerformanceTimeline, @@ -48,6 +50,7 @@ impl From<TaskSourceName> for ScriptThreadEventCategory { TaskSourceName::Canvas => ScriptThreadEventCategory::ScriptEvent, TaskSourceName::DOMManipulation => ScriptThreadEventCategory::ScriptEvent, TaskSourceName::FileReading => ScriptThreadEventCategory::FileRead, + TaskSourceName::FontLoading => ScriptThreadEventCategory::FontLoading, TaskSourceName::HistoryTraversal => ScriptThreadEventCategory::HistoryEvent, TaskSourceName::Networking => ScriptThreadEventCategory::NetworkEvent, TaskSourceName::PerformanceTimeline => { @@ -71,6 +74,7 @@ impl TaskSourceName { TaskSourceName::Canvas, TaskSourceName::DOMManipulation, TaskSourceName::FileReading, + TaskSourceName::FontLoading, TaskSourceName::HistoryTraversal, TaskSourceName::Networking, TaskSourceName::PerformanceTimeline, |