Trait DomGlobal

Source
pub(crate) trait DomGlobal {
    // Required methods
    fn global_(&self, realm: InRealm<'_>) -> DomRoot<GlobalScope>;
    fn global(&self) -> DomRoot<GlobalScope>;
}

Required Methods§

Source

fn global_(&self, realm: InRealm<'_>) -> DomRoot<GlobalScope>

Returns the relevant global in whatever realm is currently active.

Source

fn global(&self) -> DomRoot<GlobalScope>

Returns the relevant global in the same realm as the callee object. If you know the callee’s realm is already the current realm, it is more efficient to call DomGlobal::global_ instead.

Implementors§