diff options
Diffstat (limited to 'components/script/task_source.rs')
-rw-r--r-- | components/script/task_source.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/task_source.rs b/components/script/task_source.rs index 4f18292693e..4bb6a5c110c 100644 --- a/components/script/task_source.rs +++ b/components/script/task_source.rs @@ -40,6 +40,8 @@ pub(crate) enum TaskSourceName { Timer, /// <https://www.w3.org/TR/gamepad/#dfn-gamepad-task-source> Gamepad, + /// <https://w3c.github.io/IntersectionObserver/#intersectionobserver-task-source> + IntersectionObserver, } impl From<TaskSourceName> for ScriptThreadEventCategory { @@ -62,6 +64,7 @@ impl From<TaskSourceName> for ScriptThreadEventCategory { TaskSourceName::WebSocket => ScriptThreadEventCategory::WebSocketEvent, TaskSourceName::Timer => ScriptThreadEventCategory::TimerEvent, TaskSourceName::Gamepad => ScriptThreadEventCategory::InputEvent, + TaskSourceName::IntersectionObserver => ScriptThreadEventCategory::ScriptEvent, } } } |