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;
25#[macro_use]
26mod task;
27mod body;
28pub(crate) mod clipboard_provider;
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 indexed_db;
37mod init;
38mod layout_image;
39
40pub(crate) mod document_collection;
41pub(crate) mod iframe_collection;
42pub(crate) mod image_animation;
43pub mod layout_dom;
44#[allow(unsafe_code)]
45pub(crate) mod messaging;
46mod microtask;
47pub(crate) mod mime;
48mod navigation;
49mod network_listener;
50mod realms;
51mod routed_promise;
52#[allow(dead_code)]
53mod script_module;
54pub(crate) mod script_runtime;
55#[allow(unsafe_code)]
56pub(crate) mod script_thread;
57pub(crate) mod security_manager;
58pub(crate) mod serviceworker_manager;
59mod stylesheet_loader;
60mod stylesheet_set;
61mod task_manager;
62mod task_queue;
63mod task_source;
64pub mod test;
65#[allow(dead_code)]
66pub mod textinput;
67mod timers;
68mod webdriver_handlers;
69mod window_named_properties;
70
71mod unminify;
72
73mod drag_data_store;
74mod links;
75mod xpath;
76
77pub use init::init;
78pub(crate) use script_bindings::DomTypes;
79pub use script_runtime::JSEngineSetup;
80pub use script_thread::ScriptThread;
81pub use serviceworker_manager::ServiceWorkerManager;
82
83pub(crate) use crate::dom::bindings::codegen::DomTypeHolder::DomTypeHolder;
84pub(crate) use crate::dom::bindings::inheritance::HasParent;
88pub(crate) use crate::dom::bindings::reflector::{DomObject, MutDomObject, Reflector};
89pub(crate) use crate::dom::bindings::trace::{CustomTraceable, JSTraceable};