aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
| * Merge branch 'master' into tojsonKagami Sascha Rosylight2019-07-251-187/+197
| |\
| * | Support default toJSON in WebIDLKagami Sascha Rosylight2019-07-241-2/+94
| | |
* | | Use safe JSContext in callbacksmarmeladema2019-08-091-6/+6
| | |
* | | Use safe JSContext as first argument for throw_dom_exceptionmarmeladema2019-08-091-5/+5
| | |
* | | Remove usage of various unsafe keywordmarmeladema2019-08-091-14/+15
| | |
* | | Use safe JSContext when possible in interface.rsmarmeladema2019-08-091-9/+9
| | |
* | | Use safe JSContext in compartmentsmarmeladema2019-08-091-1/+1
| | |
* | | Don't mark new methods as unsafe in code generationmarmeladema2019-08-091-14/+16
| | |
* | | Remove some usage of unsafe code in Promisemarmeladema2019-08-091-1/+1
| | |
* | | Upgrade to rustc 1.38.0-nightly (dddb7fca0 2019-07-30)Simon Sapin2019-07-311-2/+2
| | |
* | | Generate apis.html and css-properties.json for docs as part of crates’ ↵Simon Sapin2019-07-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | build scripts … rather than as an extra step after `cargo doc`. This helps always using the correct set of CSS properties (for layout 2013 v.s. 2020).
* | | Update SpiderMonkey bindings for Windows arm64 crash fix.Josh Matthews2019-07-251-13/+16
| |/ |/|
* | Convert CGTraitInterface to use safe JSContext instead of raw JSContextmarmeladema2019-07-241-3/+3
| |
* | Convert internal methods to handle safe JSContext instead of raw JSContextmarmeladema2019-07-241-136/+144
| |
* | Callbacks now uses safe JSContext instead of raw JSContextmarmeladema2019-07-241-4/+4
| |
* | DefineDOMInterfaceMethod now takes a SafeJSContext instead of a JSContextmarmeladema2019-07-241-5/+5
| | | | | | | | as first argument.
* | GetPerInterfaceObject methods now takes a SafeJSContext instead of a JSContextmarmeladema2019-07-241-8/+8
| | | | | | | | as first argument.
* | CreateInterfaceObjects now takes a SafeJSContext instead of a JSContextmarmeladema2019-07-241-29/+29
| | | | | | | | as first argument.
* | Wrap(Global)Method now takes a SafeJSContext instead of a JSContextmarmeladema2019-07-241-22/+23
| | | | | | | | as first argument.
* | ConstructorEnabled now takes a SafeJSContext instead of a JSContextmarmeladema2019-07-241-2/+3
|/ | | | | a first argument. The function cannot be made safe because of call to unsafe function is_exposed_in.
* Change bindings generation to make Exposed annotation aware of ↵sreeise2019-07-141-8/+20
| | | | members/partial interfaces