Skip to main content

Crate script

Crate script 

Source
Expand description

The script crate contains all matters DOM.

Modules§

layout_dom
A safe wrapper for DOM nodes that prevents layout from mutating the DOM, from letting DOM nodes escape, and from generally doing anything that it isn’t supposed to. This is accomplished via a simple whitelist of allowed operations, along with some lifetime magic to prevent nodes from escaping.
test
textinput
Common handling of keyboard input and state management for text input controls

Macros§

make_atomic_setter
make_bool_getter
make_bool_setter
make_clamped_uint_setter
make_dimension_setter
make_dimension_uint_getter
make_dimension_uint_setter
make_form_action_getter
make_getter
make_int_getter
make_int_setter
make_labels_getter
make_legacy_color_setter
make_limited_int_setter
make_limited_uint_setter
make_nonzero_dimension_setter
make_setter
make_uint_getter
make_uint_setter
make_url_getter
make_url_setter
maplike
Usage:
native_fn
Defines a macro native_fn! to create a JavaScript function from a Rust function pointer.
native_raw_obj_fn
Defines a macro native_raw_obj_fn! to create a raw JavaScript function object.
setlike
Usage:

Structs§

JSEngineSetup
ScriptThread
ServiceWorkerManager
A structure managing all registrations and workers for a given origin.

Functions§

init