reflect_dom_object_with_proto_and_cx

Function reflect_dom_object_with_proto_and_cx 

Source
pub(crate) fn reflect_dom_object_with_proto_and_cx<D, T, U>(
    obj: Box<T>,
    global: &U,
    proto: Option<HandleObject<'_>>,
    cx: &mut JSContext,
) -> DomRoot<T>
Expand description

Create the reflector for a new DOM object and yield ownership to the reflector.