aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/inheritance.rs
Commit message (Collapse)AuthorAgeFilesLines
* Fix crash when closing window containing video element (#31413)Josh Matthews2024-02-231-0/+9
| | | | | * Forbid casting DOM objects when JS runtime is shutting down. * Remove media controls from document when element is removed from the tree.
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-4/+3
| | | | | * strict imports formatting * Reformat all imports
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Reorder importsPyfisch2018-11-061-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-061-4/+4
|
* Format script componentchansuke2018-09-191-4/+7
|
* Assert that DOM structs have the correct first fieldManish Goregaokar2018-07-031-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DOM structs embed their parent type as their first field. This introduces a `.parent()` method to the DOM struct that returns its first field, and codegens a type assert that ensures that `.parent()` returns the parent struct. This generates: On `#[dom_struct]`: ```rust impl HasParent for Type { type Parent = ParentType; fn as_parent(&self) -> ParentType { &self.first_field } } ``` In the codegen files: ```rust impl Type { fn __assert_parent_type(&self) { let _: &ParentType = self.as_parent(); } } ````
* Rename `Reflectable` to `DomObject`.Corey Farwell2016-12-081-2/+2
| | | | Fixes https://github.com/servo/servo/issues/8473.
* Reorder `use` statementsUK9922016-09-091-1/+1
|
* Rustfmt some of script.Ms2ger2015-11-181-6/+11
|
* remove unneeded import + reexport InheritTypes from inheritancerohan.prinja2015-10-301-0/+2
|
* more refactoringrohan.prinja2015-10-301-1/+3
|
* move Castable into dom::bindings::inheritancerohan.prinja2015-10-301-0/+34