Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Generate a trait abstracting over all known DOM interfaces (#34357) | Josh Matthews | 2024-11-24 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | * script: Generate trait for all DOM interfaces and parameterize generated Methods traits over it. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Update trait implementations with new generic type. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Formatting. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net> | ||||
* | script: Include constructors and static methods in generated DOM traits (#33665) | Josh Matthews | 2024-10-08 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | * Add all constructors, special operations, and static methods to generated DOM interface traits. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Move all constructors and static methods defined in bare impl blocks inside FooMethods trait impls. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Add missing doc links. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net> | ||||
* | Replace .map_or(false with Option::is_some_and (#33468) | Simon Wülker | 2024-09-16 | 1 | -2/+2 |
| | | | Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> | ||||
* | clippy: Fix `explicit_auto_deref` warnings in `components/script` (#31837) | Oluwatobi Sofela | 2024-03-23 | 1 | -2/+2 |
| | | | | | | | | | * clippy: Fix explicit auto-deref warnings * clippy: Fix explicit auto-deref warnings * refactor: Tidy up code * refactor: Fix method not found errors | ||||
* | Strict import formatting (grouping and granularity) (#30325) | Samson | 2023-09-11 | 1 | -2/+3 |
| | | | | | * strict imports formatting * Reformat all imports | ||||
* | Add trait DomObjectWrap to provide WRAP function | YUAN LYU | 2020-03-20 | 1 | -2/+0 |
| | |||||
* | Names should now be consistently atoms | Patrick Shaughnessy | 2020-02-13 | 1 | -3/+6 |
| | |||||
* | rooted at the form's root, not rooted at the form | Patrick Shaughnessy | 2020-02-10 | 1 | -9/+12 |
| | |||||
* | Modify `script` to prevent further violations of snake_case | Kunal Mohan | 2020-01-18 | 1 | -0/+1 |
| | |||||
* | RadioNodeList now reflects changes to the parent, but has room for ↵ | Patrick Shaughnessy | 2020-01-10 | 1 | -7/+12 |
| | | | | performance optimization | ||||
* | Update MPL license to https (part 3) | Jan Andre Ikenmeyer | 2018-11-19 | 1 | -1/+1 |
| | |||||
* | `cargo fix --edition-idioms` | Simon Sapin | 2018-11-08 | 1 | -2/+2 |
| | |||||
* | Reorder imports | Pyfisch | 2018-11-06 | 1 | -1/+1 |
| | |||||
* | `cargo fix --edition` | Simon Sapin | 2018-11-06 | 1 | -12/+12 |
| | |||||
* | Format script component | chansuke | 2018-09-19 | 1 | -15/+30 |
| | |||||
* | Remove use of unstable box syntax. | Simon Sapin | 2017-10-16 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | http://www.robohornet.org gives a score of 101.36 on master, and 102.68 with this PR. The latter is slightly better, but probably within noise level. So it looks like this PR does not affect DOM performance. This is expected since `Box::new` is defined as: ```rust impl<T> Box<T> { #[inline(always)] pub fn new(x: T) -> Box<T> { box x } } ``` With inlining, it should compile to the same as box syntax. | ||||
* | Rename Root<T> to DomRoot<T> | Anthony Ramine | 2017-09-26 | 1 | -5/+5 |
| | | | | | | | In a later PR, DomRoot<T> will become a type alias of Root<Dom<T>>, where Root<T> will be able to handle all the things that need to be rooted that have a stable traceable address that doesn't move for the whole lifetime of the root. Stay tuned. | ||||
* | Rename dom::bindings::js to dom::bindings::root | Anthony Ramine | 2017-09-26 | 1 | -1/+1 |
| | |||||
* | Make #[dom_struct] a proc_macro attribute | Anthony Ramine | 2017-02-24 | 1 | -0/+1 |
| | |||||
* | Rename `Reflectable` to `DomObject`. | Corey Farwell | 2016-12-08 | 1 | -1/+1 |
| | | | | Fixes https://github.com/servo/servo/issues/8473. | ||||
* | Update to string-cache 0.3 | Simon Sapin | 2016-11-03 | 1 | -2/+2 |
| | |||||
* | Rename Reflectable::global_scope to global | Anthony Ramine | 2016-10-06 | 1 | -1/+1 |
| | |||||
* | Introduce GlobalScope::as_window | Anthony Ramine | 2016-10-06 | 1 | -2/+1 |
| | |||||
* | Make reflect_dom_object take a &GlobalScope | Anthony Ramine | 2016-10-06 | 1 | -2/+1 |
| | |||||
* | Use Option<T> to return from getters | Anthony Ramine | 2016-08-30 | 1 | -6/+4 |
| | | | | | This removes the cumbersome &mut bool argument and offers overall a more readable code. | ||||
* | Move DOMString back to script | Anthony Ramine | 2016-05-24 | 1 | -1/+1 |
| | | | | This entirely removes the 'non-geckolib' feature of the util crate. | ||||
* | Removed unused imports | Per Lundberg | 2016-05-15 | 1 | -1/+0 |
| | | | | This fixes #11185. | ||||
* | Fix #9508: Beautify our union enums constructors | Alexander Lopatin | 2016-02-07 | 1 | -3/+3 |
| | |||||
* | Implement NamedItem and NamedGetter on HTMLFormControlsCollection | Keith Yeung | 2016-01-28 | 1 | -3/+40 |
| | |||||
* | Link to tracking issue for redundant codegen getter | Corey Farwell | 2016-01-11 | 1 | -1/+2 |
| | | | | https://github.com/servo/servo/issues/5875 | ||||
* | Implement HTMLFormElement::Elements | Corey Farwell | 2016-01-10 | 1 | -0/+62 |
Fixes #8566 |