aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
Commit message (Collapse)AuthorAgeFilesLines
* Port some code to Python3Vincent Ricard2021-02-181-20/+20
|
* Implement toStringTag symbol for DOM objects.Josh Matthews2021-02-181-22/+69
| | | | This symbol is now required for the expected stringification behaviour in WPT.
* Update mozjs.Josh Matthews2021-02-181-4/+3
|
* Added is_platform_obj_staticSean Joseph2020-11-261-1/+2
|
* Add creation url and Secure ContextsJonathan Kingston2020-11-251-4/+9
|
* Update mozjs to 0.14.1Sudarsan2020-08-281-0/+2
| | | | | | | This update pulls in improvements on mozjs that now removes the need to pass pointers to CompileOptionsWraper::new(), allows NewProxyObject to now accept a Singleton bool and JSClass and removes an unsafe Handle::new usage.
* dom: Generate iterator symbol for interfaces with indexed getters.Josh Matthews2020-07-091-2/+21
|
* dom: Use pref macro for IDL conditional guards.Josh Matthews2020-07-091-1/+1
|
* Fix incorrect string joiningKagami Sascha Rosylight2020-06-211-2/+2
|
* Fix remaining flake8 warningsKagami Sascha Rosylight2020-06-211-168/+169
|
* dom: Convert parent dictionary values when converting dictionaries to JS.Josh Matthews2020-06-161-4/+13
|
* Use atomic pointers instead of `static mut` for DOM proxy handlersSimon Sapin2020-06-051-3/+9
|
* Keep DOM proxy handlers as separate named items rather than in one arraySimon Sapin2020-06-051-10/+12
|
* integrate readablestream with fetch and blobGregory Terzian2020-06-041-0/+37
|
* Auto merge of #25432 - warren-fisher:HTMLConstructor, r=jdmbors-servo2020-06-031-70/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extract some of CGClassConstructHook to utils.rs <!-- Please describe your changes on the following line: --> Moving some of the functionality from the massive tripled quoted string in CGClassConstructHook in `components/script/dom/bindings/codegen/CodegenRust.py` to `components/script/dom/bindings/utils.rs`. Must be made unsafe because of UnwrapObjectDynamic and other functions. Added imports as necessary as well, as well as cleaning up using test-tidy. --- <!-- 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 #25395 (GitHub issue number if applicable) <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because the issue says so <!-- 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. -->
| * Reduce code duplication. Move some of CodegenRust.py to htmlconstructor.rsWarren Fisher2020-06-031-70/+6
| |
* | Improve webidl precisionKunal Mohan2020-06-011-8/+12
| | | | | | | | Allow enum variants staring with digit
* | Allow sequence of nullable dictionary items in webidlKunal Mohan2020-05-301-2/+5
| | | | | | | | of type "sequence<Dict?> x"
* | Auto merge of #26718 - jdm:codegen-sequence, r=Manishearthbors-servo2020-05-291-4/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve precision of sequence types for WebIDL codegen. Unlike #26699, this doesn't attempt to improve any of the resulting types and only maintains the status quo. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] There are tests for these changes
| * | dom: Improve precision of sequence types for WebIDL codegen.Josh Matthews2020-05-291-4/+4
| |/
* / Use dynamic dispatch in `mozjs::panic::wrap_panic`Simon Sapin2020-05-251-3/+13
|/ | | | | | | | Pick up https://github.com/servo/rust-mozjs/pull/512 Fixes https://github.com/servo/servo/issues/26585 This diff is best viewed with "ignore whitespace changes", because of indentation change.
* Replace a `transmute` with `.to_ne_bytes()` + constructorSimon Sapin2020-04-151-4/+5
|
* Auto merge of #26170 - Manishearth:enum-convertible, r=asajeffreybors-servo2020-04-121-8/+25
|\ | | | | | | | | | | | | | | | | | | Add FromJSValConvertible for enums Fixes https://github.com/servo/servo/issues/26169 This adds FromJSValConvertible implementations for webidl enums, which allows them to be used within `sequence<>`, etc. This also uses these implementations when converting arguments.
| * Use FromJSValConvertible impls when converting argumentsManish Goregaokar2020-04-111-8/+5
| |
| * Implement FromJSValConvertible on enumsManish Goregaokar2020-04-111-0/+20
| |
* | Do not filter out platform objects when doing dictionary conversionsManish Goregaokar2020-04-081-2/+2
|/ | | | | | https://heycam.github.io/webidl/#es-overloads In step 12, the platform object check is for substep 4, but importantly it only matters if `V` implements the matching interface. If not, it should be able to fall back to substep 10 and attempt conversion to a dictionary.
* fixed CGCollectJSONAttributesMethodShinichi Morimoto2020-03-311-5/+3
|
* fixed is_satisfied conditionShinichi Morimoto2020-03-301-12/+14
|
* fixed fmtShinichi Morimoto2020-03-281-2/+6
|
* fixed #25281Shinichi Morimoto2020-03-281-2/+9
|
* Add trait DomObjectWrap to provide WRAP functionYUAN LYU2020-03-201-3/+51
|
* Do not do weird scope things in MethodDefinerAnthony Ramine2020-03-141-0/+2
| | | | | Variable `m` comes from a previous list comprehension earlier in the function is not actually properly defined.
* Update the WebIDL parserAnthony Ramine2020-03-141-27/+5
| | | | | Upstream doesn't allow downloading .tar.gz archives so update.sh was changed to use unzip.
* Change how we reflect DOM objects in codegenAnthony Ramine2020-03-061-7/+7
| | | | | | | We now go through <Root<MaybeUnreflectedDom<T>>>::reflect_with, to decrease the amount of bad stuff we can end up doing. This avoids a source of vtable pointer instability that could cause issues down the road.
* Update SpiderMonkeyAnthony Ramine2020-03-061-69/+88
|
* Introduce a new type MaybeUnreflectedDom<T> (fixes #25701)Anthony Ramine2020-02-171-39/+50
|
* rename compartment to realmKunal Mohan2020-01-241-22/+22
|
* Auto merge of #25446 - pshaughn:fixme11868, r=jdmbors-servo2020-01-101-5/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make getOwnPropertyDescriptor hold the correct value for indexed/named properties This is towards #25036 and #25415; it could have far-reaching implications so I want to test it in isolation and see the results on the full test suite. A few lines of code had a FIXME(#11868) despite that issue being closed, and looking for the pattern that was marked that way, I found one other unmarked instance of it. It doesn't immediately crash, and maybe it will pass some tests or fail some tests in informative ways. EDIT: After adding an overlooked extended attribute to HTMLFormElement, this works very well indeed and seems to be worth merging! --- <!-- 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 #25036 <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- 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. -->
| * Make property descriptors hold named/indexed property valuesPatrick Shaughnessy2020-01-101-5/+3
| |
* | Implement HTMLSelectElement.add() and indexed setter, fix test that was ↵Patrick Shaughnessy2020-01-071-1/+1
|/ | | | relying on add to be a stub
* Fix tidiness errors for Python3 compatibility across whole repomarmeladema2019-12-111-7/+7
|
* Fix iterator invalidation in our forEach implementation.Manish Goregaokar2019-11-251-1/+12
|
* Require PromiseRejectionEventInit dictionaryKagami Sascha Rosylight2019-11-221-9/+8
|
* Auto merge of #24665 - saschanaz:timerhandler, r=noxbors-servo2019-11-171-7/+25
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use TimerHandler IDL union type <!-- Please describe your changes on the following line: --> --- <!-- 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 #20700 <!-- 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. -->
| * Use TimerHandler IDL union typeKagami Sascha Rosylight2019-11-051-7/+25
| |
* | Use `#![register_tool]` instead of `#![register_attr]`Simon Sapin2019-11-151-2/+3
| | | | | | | | CC https://github.com/rust-lang/rust/issues/66079
* | Auto merge of #24636 - saschanaz:windowproxy, r=nox,jdmbors-servo2019-11-071-0/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use MessageEventSource on MessageEvent IDL <!-- Please describe your changes on the following line: --> --- <!-- 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 #22617 <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- 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. -->
| * | Use MessageEventSource on MessageEvent IDLKagami Sascha Rosylight2019-11-041-0/+4
| |/
* / Use IDL sequence default valueKagami Sascha Rosylight2019-11-041-6/+6
|/
* Support stringifier attributesKagami Sascha Rosylight2019-10-291-5/+3
|