aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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
| |
| * Auto merge of #24471 - saschanaz:enum-default, r=ferjmbors-servo2019-10-211-10/+21
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support enum value as a union default value <!-- Please describe your changes on the following line: --> Didn't implement the actual latency thing because the relevant things are already marked as TODO. --- <!-- 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 #21342 <!-- 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. -->
| | * Support enum value as a union default valueKagami Sascha Rosylight2019-10-191-10/+21
| | |
| * | Support [LegacyWindowAlias]Kagami Sascha Rosylight2019-10-191-3/+18
| |/
| * Auto merge of #24476 - saschanaz:nonenumerable, r=jdmbors-servo2019-10-181-8/+15
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mark @@iterator as nonenumerable <!-- 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 #15497 <!-- 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. -->
| | * Mark @@iterator as nonenumerableKagami Sascha Rosylight2019-10-171-8/+15
| | |
| * | Auto merge of #24469 - saschanaz:urp-default, r=Manishearthbors-servo2019-10-181-0/+4
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support USVString as default value of a union argument <!-- Please describe your changes on the following line: --> I don't expect this fixes any test though... --- <!-- 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 #22543 <!-- 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. -->
| | * | Support USVString as default value of a union argumentKagami Sascha Rosylight2019-10-171-0/+4
| | |/
| * | Auto merge of #24429 - saschanaz:getpropertykeys, r=jdmbors-servo2019-10-151-4/+6
| |\ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Return false when GetPropertyKeys fails <!-- Please describe your changes on the following line: --> As stated in https://github.com/servo/servo/pull/24377#discussion_r333844560. --- <!-- 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 - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- 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. -->
| | * Return false when GetPropertyKeys failsKagami Sascha Rosylight2019-10-121-4/+6
| | |
| * | Support WebIDL `record<>`Kagami Sascha Rosylight2019-10-151-7/+30
| |/
| * Remove [PrimaryGlobal]Kagami Sascha Rosylight2019-10-031-4/+0
| |
| * WebIDL codegen: Replace cmake with a single Python scriptSimon Sapin2019-09-271-26/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When playing around with Cargo’s new timing visualization: https://internals.rust-lang.org/t/exploring-crate-graph-build-times-with-cargo-build-ztimings/10975/21 … I was surprised to see the `script` crate’s build script take 76 seconds. I did not expect WebIDL bindings generation to be *that* computationally intensive. It turns out almost all of this time is overhead. The build script uses CMake to generate bindings for each WebIDL file in parallel, but that causes a lot of work to be repeated 366 times: * Starting up a Python VM * Importing (parts of) the Python standard library * Importing ~16k lines of our Python code * Recompiling the latter to bytecode, since we used `python -B` to disable writing `.pyc` file * Deserializing with `cPickle` and recreating in memory the results of parsing all WebIDL files ---- This commit remove the use of CMake and cPickle for the `script` crate. Instead, all WebIDL bindings generation is done sequentially in a single Python process. This takes 2 to 3 seconds.
| * Auto merge of #23987 - saschanaz:update-webidl, r=jdmbors-servo2019-09-251-1/+1
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update WebIDL parser <!-- Please describe your changes on the following line: --> This includes IDL mixin support. --- <!-- 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 does not fix but helps #22539 / fixes #16244 <!-- 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. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23987) <!-- Reviewable:end -->
| | * Update WebIDL parserKagami Sascha Rosylight2019-08-161-1/+1
| | |
| * | Auto merge of #24137 - gterzian:fix_error_throwing_on_unknown_js_arg, r=jdmbors-servo2019-09-051-1/+1
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Codegen: throw type error when encountering an unknown argument <!-- Please describe your changes on the following line: --> FIX #24130 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- 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. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24137) <!-- Reviewable:end -->
| | * | codegen: throw type error when encountering an unknown argumentGregory Terzian2019-09-051-1/+1
| | | |
| * | | Add [Default] toJSON() to performance interfacesKagami Sascha Rosylight2019-09-011-4/+9
| |/ /
| * | Upgrade to rustc 1.39.0-nightly (f7af19c27 2019-08-15)Simon Sapin2019-08-231-3/+3
| | |
| * | Auto merge of #23844 - saschanaz:tojson, r=Manishearthbors-servo2019-08-201-2/+87
| |\ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support default toJSON in WebIDL <!-- Please describe your changes on the following line: --> Ported related lines from gecko. --- <!-- 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 #22781 <!-- 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. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23844) <!-- Reviewable:end -->
| | * remove redundant extra scopingKagami Sascha Rosylight2019-07-251-8/+1
| | |
| | * use SafeJSContextKagami Sascha Rosylight2019-07-251-4/+4
| | |