script/home/runner/work/servo/servo/target/debug/build/script-0d808a8fdcf4bfaf/out/ConcreteBindings/
HTMLElementBinding.rs

1/* THIS FILE IS AUTOGENERATED - DO NOT EDIT */
2
3#![allow(non_camel_case_types,non_upper_case_globals,unsafe_op_in_unsafe_fn,unused_imports,unused_variables,unused_assignments,unused_mut,clippy::approx_constant,clippy::enum_variant_names,clippy::let_unit_value,clippy::needless_return,clippy::too_many_arguments,clippy::unnecessary_cast,clippy::upper_case_acronyms)]
4
5use crate::dom::bindings::import::module::*;
6use crate::dom::types::*;
7
8pub(crate) use crate::dom::bindings::codegen::GenericBindings::HTMLElementBinding as GenericBindings;
9
10pub(crate) use crate::dom::bindings::codegen::GenericBindings::HTMLElementBinding::HTMLElement_Binding as HTMLElement_Binding;
11
12
13impl HTMLElement {
14    fn __assert_parent_type(&self) {
15        use crate::dom::bindings::inheritance::HasParent;
16        // If this type assertion fails, make sure the first field of your
17        // DOM struct is of the correct type -- it must be the parent class.
18        let _: &Element = self.as_parent();
19    }
20}
21
22
23
24impl IDLInterface for HTMLElement {
25    #[inline]
26    fn derives(class: &'static DOMClass) -> bool {
27        class.interface_chain[3] == PrototypeList::ID::HTMLElement
28    }
29}
30
31
32
33impl DomObjectWrap<crate::DomTypeHolder> for HTMLElement {
34    const WRAP: unsafe fn(
35        SafeJSContext,
36        &GlobalScope,
37        Option<HandleObject>,
38        Box<Self>,
39        CanGc,
40    ) -> Root<Dom<Self>> = crate::dom::bindings::codegen::GenericBindings::HTMLElementBinding::HTMLElement_Binding::Wrap::<crate::DomTypeHolder>;
41}
42
43
44
45impl Drop for HTMLElement {
46    fn drop(&mut self) { }
47}
48
49
50pub(crate) use self::HTMLElement_Binding::HTMLElementMethods as HTMLElementMethods;
51
52pub(crate) use self::HTMLElement_Binding::Wrap;
53
54
55pub(crate) fn GetConstructorObject(
56    cx: SafeJSContext, global: HandleObject, rval: MutableHandleObject
57) {
58    self::HTMLElement_Binding::GetConstructorObject::<crate::DomTypeHolder>(cx, global, rval)
59}
60
61