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 animations;
24mod css;
25mod script_window_proxies;
26#[macro_use]
27mod task;
28mod body;
29pub(crate) mod conversions;
30mod devtools;
31pub(crate) mod document_loader;
32#[macro_use]
33mod dom;
34pub(crate) use dom::canvas_context;
35pub(crate) mod fetch;
36pub(crate) mod indexeddb;
37mod init;
38mod layout_image;
39mod url;
40
41pub(crate) mod document_collection;
42pub(crate) mod iframe_collection;
43pub(crate) mod image_animation;
44pub mod layout_dom;
45pub(crate) mod messaging;
46mod microtask;
47pub(crate) mod mime;
48mod mime_multipart;
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 serviceworker_manager;
60mod stylesheet_loader;
61mod stylesheet_set;
62mod svg_font;
63mod task_manager;
64mod task_queue;
65mod task_source;
66pub mod test;
67mod timers;
68mod webdriver_handlers;
69mod window_named_properties;
70mod xpath;
71
72mod unminify;
73
74mod drag_data_store;
75mod links;
76
77pub use init::init;
78pub(crate) use script_bindings::DomTypes;
79pub(crate) use script_bindings::reflector::{AssociatedMemory, DomObject, MutDomObject, Reflector};
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::trace::{CustomTraceable, JSTraceable};