aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/import.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2025-03-29 04:11:27 -0400
committerGitHub <noreply@github.com>2025-03-29 08:11:27 +0000
commitc30ad5a30e10b9aabe5842624db24b9846c3d5d4 (patch)
treec879104dc5ef15647d975da14a6b703d4099df4d /components/script/dom/bindings/import.rs
parent2c9411095255f804a43c2abc05c5aaa2a0becca7 (diff)
downloadservo-c30ad5a30e10b9aabe5842624db24b9846c3d5d4.tar.gz
servo-c30ad5a30e10b9aabe5842624db24b9846c3d5d4.zip
Miscellaneous script splitting preparation changes (#36216)
* script: Move num module to script_bindings. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Make JS reflector creation generic over DOM trait. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Move bindings-specific lock to script_bindings. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Move DOM proto array code to script_bindings. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Move finalizer implementations to script_bindings. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Move some error routines to script_bindings. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Move some DOM interface conversion routines to script_bindings. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Make is_array_like generic over DOM trait. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Use generic interfaces for conditional exposure functions. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Move a bunch of routines used by codegen to script_bindings. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Formatting. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix clippy warnings. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Diffstat (limited to 'components/script/dom/bindings/import.rs')
-rw-r--r--components/script/dom/bindings/import.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/components/script/dom/bindings/import.rs b/components/script/dom/bindings/import.rs
index 33511666d17..fb893af33f4 100644
--- a/components/script/dom/bindings/import.rs
+++ b/components/script/dom/bindings/import.rs
@@ -16,6 +16,7 @@ pub(crate) mod base {
pub(crate) use js::panic::maybe_resume_unwind;
pub(crate) use js::rust::wrappers::{Call, JS_WrapValue};
pub(crate) use js::rust::{HandleObject, HandleValue, MutableHandleObject, MutableHandleValue};
+ pub(crate) use script_bindings::lock::ThreadUnsafeOnceLock;
pub(crate) use crate::dom::bindings::callback::{
CallSetup, CallbackContainer, CallbackFunction, CallbackInterface, CallbackObject,
@@ -40,7 +41,7 @@ pub(crate) mod base {
pub(crate) use crate::dom::bindings::str::{ByteString, DOMString, USVString};
pub(crate) use crate::dom::bindings::trace::RootedTraceableBox;
pub(crate) use crate::dom::bindings::utils::{
- DomHelpers, ThreadUnsafeOnceLock, get_dictionary_property, set_dictionary_property,
+ DomHelpers, get_dictionary_property, set_dictionary_property,
};
pub(crate) use crate::dom::globalscope::{GlobalScope, GlobalScopeHelpers};
pub(crate) use crate::dom::promise::PromiseHelpers;
@@ -99,7 +100,12 @@ pub(crate) mod module {
JS_CALLEE, JSCLASS_GLOBAL_SLOT_COUNT, JSCLASS_IS_DOMJSCLASS, JSCLASS_IS_GLOBAL,
JSCLASS_RESERVED_SLOTS_MASK, jsapi, typedarray,
};
+ pub(crate) use script_bindings::codegen::Globals::Globals;
pub(crate) use script_bindings::constant::{ConstantSpec, ConstantVal};
+ pub(crate) use script_bindings::finalize::{
+ finalize_common, finalize_global, finalize_weak_referenceable,
+ };
+ pub(crate) use script_bindings::interfaces::*;
pub(crate) use script_bindings::record::Record;
pub(crate) use servo_config::pref;
@@ -124,9 +130,6 @@ pub(crate) mod module {
pub(crate) use crate::dom::bindings::error::{
Error, ErrorResult, throw_constructor_without_new,
};
- pub(crate) use crate::dom::bindings::finalize::{
- finalize_common, finalize_global, finalize_weak_referenceable,
- };
pub(crate) use crate::dom::bindings::guard::{Condition, Guard};
pub(crate) use crate::dom::bindings::inheritance::Castable;
pub(crate) use crate::dom::bindings::interface::{