1#![cfg_attr(crown, feature(register_tool))]
6#![deny(unsafe_code)]
7#![doc = "The script crate contains all matters DOM."]
8#![cfg_attr(crown, register_tool(crown))]
10
11#[macro_use]
13extern crate js;
14#[macro_use]
15extern crate jstraceable_derive;
16#[macro_use]
17extern crate log;
18#[macro_use]
19extern crate malloc_size_of_derive;
20#[macro_use]
21extern crate stylo_atoms;
22
23mod animation_timeline;
24mod animations;
25mod css;
26mod script_window_proxies;
27#[macro_use]
28mod task;
29mod body;
30pub(crate) mod clipboard_provider;
31pub(crate) mod conversions;
32mod devtools;
33pub(crate) mod document_loader;
34#[macro_use]
35mod dom;
36pub(crate) use dom::canvas_context;
37pub(crate) mod fetch;
38pub(crate) mod indexeddb;
39mod init;
40mod layout_image;
41
42pub(crate) mod document_collection;
43pub(crate) mod iframe_collection;
44pub(crate) mod image_animation;
45pub mod layout_dom;
46pub(crate) mod messaging;
47mod microtask;
48pub(crate) mod mime;
49mod module_loading;
50mod navigation;
51mod network_listener;
52mod realms;
53mod routed_promise;
54mod script_module;
55mod script_mutation_observers;
56pub(crate) mod script_runtime;
57#[expect(unsafe_code)]
58pub(crate) mod script_thread;
59pub(crate) mod security_manager;
60pub(crate) mod serviceworker_manager;
61mod stylesheet_loader;
62mod stylesheet_set;
63mod task_manager;
64mod task_queue;
65mod task_source;
66pub mod test;
67pub mod textinput;
68mod timers;
69mod webdriver_handlers;
70mod window_named_properties;
71mod xpath;
72
73mod unminify;
74
75mod drag_data_store;
76mod links;
77
78pub use init::init;
79pub(crate) use script_bindings::DomTypes;
80pub use script_runtime::JSEngineSetup;
81pub use script_thread::ScriptThread;
82pub use serviceworker_manager::ServiceWorkerManager;
83
84pub(crate) use crate::dom::bindings::codegen::DomTypeHolder::DomTypeHolder;
85pub(crate) use crate::dom::bindings::inheritance::HasParent;
89pub(crate) use crate::dom::bindings::reflector::{
90 AssociatedMemory, DomObject, MutDomObject, Reflector,
91};
92pub(crate) use crate::dom::bindings::trace::{CustomTraceable, JSTraceable};