aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/htmlconstructor.rs
Commit message (Collapse)AuthorAgeFilesLines
* refactor `CGClassConstructHook` to use handwritten constructors (#33614)Gae242024-10-091-400/+0
| | | | | | | | | | | | | | | | | | | | | * extract generated class constructor hook into handwritten functions Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com> * downcast to window only when it's actually used Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com> * simplify downcast Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com> * rename htmlconstructor to constructor, include call_default_constructor in it Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com> --------- Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
* Propagate `CanGc` from `Document::new()` (#33386)Andriy Sultanov2024-09-091-3/+3
| | | | | | | | | | | | | * Add canGc as a parameter to autogenerated trait methods Signed-off-by: Andriy Sultanov <sultanovandriy@gmail.com> * Propagate CanGc from Document::new() Signed-off-by: Andriy Sultanov <sultanovandriy@gmail.com> --------- Signed-off-by: Andriy Sultanov <sultanovandriy@gmail.com>
* clippy: Fix `explicit_auto_deref` warnings in `components/script` (#31837)Oluwatobi Sofela2024-03-231-4/+4
| | | | | | | | | * clippy: Fix explicit auto-deref warnings * clippy: Fix explicit auto-deref warnings * refactor: Tidy up code * refactor: Fix method not found errors
* clippy: Fix needless borrow warnings (#31813)Oluwatobi Sofela2024-03-211-1/+1
|
* rustdoc: Fix warnings in `components/script/dom` (#31632)Azhar Ismagulova2024-03-131-2/+4
| | | | | | | | | | | | | | | * fix: fixed warnings in components/script/dom * fix: resolved comment by setting explicit link to HTMLConstructor * fix: changed the format of WHATWG link * Fix line breaking * Remove trailing white space --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Use get_desired_proto in htmlconstructor (#31600)Samson2024-03-101-40/+12
| | | | | * Use get_desired_proto in htmlconstructor * Update expectations
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-77/+35
| | | | | * strict imports formatting * Reformat all imports
* Use MozTools 4 and update mozjs (#30326)Samson2023-09-111-1/+1
| | | | | | | | | | | | | | | | | | | * Update mozjs * moztools4 in bootstrap * no autoconf * tidy * switch to servo-build-deps * update mozjs for real * glue mozjs * fmt * move to servo/mozjs
* remove `extern crate` (#30311)Samson2023-09-081-1/+1
| | | | | | | | | | | * remove extern crate * Update components/script_plugins/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Formatting.Josh Matthews2023-05-281-1/+7
|
* Support arbitrary protos when wrapping DOM objects with constructors.Josh Matthews2023-05-281-2/+4
|
* Reduce code duplication. Move some of CodegenRust.py to htmlconstructor.rsWarren Fisher2020-06-031-27/+138
|
* Auto merge of #25576 - pshaughn:menuelement, r=jdmbors-servo2020-01-251-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement HTMLMenuElement <!-- Please describe your changes on the following line: --> Per spec, "The menu element is simply a semantic alternative to ul to express an unordered list of commands (a "toolbar")." We already have the CSS for it in user-agent.css, and this gives us the interface object. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [X] These changes fix #24990 <!-- Either: --> - [X] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
| * Implement HTMLMenuElementPatrick Shaughnessy2020-01-231-0/+2
| |
* | Let custom element registry know about picture tagPatrick Shaughnessy2020-01-231-0/+2
|/
* Remove usage of various unsafe keywordmarmeladema2019-08-091-1/+1
|
* Use safe JSContext in get_constructor_object_from_local_namemarmeladema2019-08-091-5/+5
|
* Modify *::get_cx methods to return a safe JSContext instead of a raw onemarmeladema2019-07-241-7/+7
|
* GetPerInterfaceObject methods now takes a SafeJSContext instead of a JSContextmarmeladema2019-07-241-2/+3
| | | | as first argument.
* Upgrade to Spidermonkey 67.Josh Matthews2019-06-261-2/+2
|
* Use TypeError instead of InvalidState for exception.gatowololo2019-06-071-1/+6
| | | | Addresses Issue #23202
* Update to SpiderMonkey 66.Josh Matthews2019-05-101-2/+2
|
* Add custom elements related stuff into ElementRareDataFernando Jiménez Moreno2019-04-261-2/+2
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-1/+1
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Reorder importsPyfisch2018-11-061-1/+1
|
* Sort `use` statementsSimon Sapin2018-11-061-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-061-75/+75
|
* Remove the HTMLTable{Header,Data}CellElement interfacesSimon Pieters2018-10-021-4/+3
| | | | Fixes #17222.
* Format script componentchansuke2018-09-191-137/+151
|
* Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393Marcin Mielniczuk2018-03-281-2/+2
|
* Fix tyvar_behind_raw_pointer warningsSimon Sapin2018-01-101-2/+2
| | | | https://github.com/rust-lang/rust/issues/46906
* Fixed tidy-test errorsolmanz2017-11-171-5/+9
|
* Moved pop_current_element_queue() and push_new_element_queue() to ↵olmanz2017-11-161-0/+9
| | | | htmlconstructor.rs
* Moved function html_constructor() from interface.rs to new file ↵olmanz2017-11-161-0/+313
htmlconstructor.rs