pub(crate) trait DomGlobal {
// Required methods
fn global_(&self, realm: InRealm<'_>) -> DomRoot<GlobalScope>;
fn global(&self) -> DomRoot<GlobalScope>;
}
Required Methods§
Sourcefn global_(&self, realm: InRealm<'_>) -> DomRoot<GlobalScope>
fn global_(&self, realm: InRealm<'_>) -> DomRoot<GlobalScope>
Returns the relevant global in whatever realm is currently active.
Sourcefn global(&self) -> DomRoot<GlobalScope>
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.