pub trait DomObject: JSTraceable + 'static {
    fn reflector(&self) -> &Reflector;

    fn global(&self) -> Root<Dom<GlobalScope>>
    where
        Self: Sized
, { ... } }
Expand description

A trait to provide access to the Reflector for a DOM object.

Required Methods

Returns the receiver’s reflector.

Provided Methods

Returns the global scope of the realm that the DomObject was created in.

Implementors