aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | Use Heap for dictionary and union members.Ms2ger2017-02-161-10/+19
| |
* | Share a little less code between the branches for conversion to any.Ms2ger2017-02-161-12/+11
| |
* | Pass isMember to getJSToNativeConversionInfo for unions.Ms2ger2017-02-161-6/+5
|/ | | | Also includes a documentation update for isMember.
* Modify CodegenRust.py to import structs from sequence return valuesZakor Gyula2017-02-131-0/+2
|
* Auto merge of #15453 - servo:unwrapCastableObject, r=noxbors-servo2017-02-081-24/+11
|\ | | | | | | | | | | | | | | Inline unwrapCastableObject into its only caller. <!-- 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/15453) <!-- Reviewable:end -->
| * Inline unwrapCastableObject into its only caller.Ms2ger2017-02-081-24/+11
| |
* | Remove typeNeedsRooting().Ms2ger2017-02-081-7/+0
| | | | | | | | | | | | It is only used once, in a case where it can never have an effect: in case for it to do something, both returnType.isDictionary() and returnType.isGeckoInterface() would need to be true at the same time.
* | Remove pointless assertion in the typedef code.Ms2ger2017-02-081-1/+0
| |
* | Cleanup formatting for typedefs.Ms2ger2017-02-081-5/+10
| |
* | Fix typo in the non-union code path for typedefs.Ms2ger2017-02-081-1/+1
| |
* | Support using typedefs with nullable unions.Ms2ger2017-02-081-1/+2
|/
* Properly root expando objects.Ms2ger2017-02-071-10/+14
|
* Auto merge of #15327 - servo:missing-newline-wrap-panic, r=jdmbors-servo2017-02-011-1/+1
|\ | | | | | | | | | | | | | | Add a missing newline in wrap_panic() calls. <!-- 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/15327) <!-- Reviewable:end -->
| * Add a missing newline in wrap_panic() calls.Ms2ger2017-02-011-1/+1
| |
* | Root the arguments to callback functions.Ms2ger2017-02-011-4/+6
|/ | | | | | | Note that this relies on the fact that Heap<JSVal> and JSVal are binary compatible. Fixes #15324.
* Improve the readability of dictionaries' new() method.Ms2ger2017-01-311-16/+19
|
* Auto merge of #15099 - servo:phf-no-macros, r=jdmbors-servo2017-01-201-11/+14
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove usage of phf_macros. It’s a compiler plugin that uses unstable compiler APIs that are not on a path to stabilization. With this changes, there is one less thing that might break when we update the compiler. For example: https://github.com/sfackler/rust-phf/pull/101 <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/15099) <!-- Reviewable:end -->
| * script codegen: Avoid modifying in-place a generated file.Simon Sapin2017-01-191-11/+14
| |
* | Support dictionaries in unions.Ms2ger2017-01-201-12/+37
|/ | | | Fixes #11612.
* Auto merge of #14994 - jdm:callback_rooting, r=Manishearth,Ms2gerbors-servo2017-01-161-8/+9
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make WebIDL callbacks permanently rooted This replicates the same model that Promise uses right now, because it requires less thinking than coming up with something else. - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #14447 - [ ] There are tests for these changes <!-- 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/14994) <!-- Reviewable:end -->
| * Add a permanent root to WebIDL callbacks, ensuring they are always safe to ↵Josh Matthews2017-01-131-8/+9
| | | | | | | | store.
* | Remove unused needsRooting field from JSToNativeConversionInfo.Ms2ger2017-01-121-11/+4
|/
* Expose CallbackObject more.Ms2ger2017-01-091-8/+9
| | | | This will make it easier to use new fields added to it.
* Avoid generating literal nulls in DOM bindings.Ms2ger2017-01-061-2/+2
|
* Auto merge of #14859 - servo:CallSetup, r=noxbors-servo2017-01-051-5/+1
|\ | | | | | | | | | | | | | | Simplify CallSetup. <!-- 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/14859) <!-- Reviewable:end -->
| * Simplify CallSetup.Ms2ger2017-01-051-5/+1
| |
* | Fix JS_ObjectIsDate() call in webidl codegen.Eric Anholt2017-01-041-1/+6
| | | | | | | | | | We were missing the import, and the prototype of the function has since changed. Partial fix for #10675
* | Fix is_null_or_undefined() call in codegen to be snake_case.Eric Anholt2017-01-041-1/+1
|/ | | | | After a bit of digging, I couldn't find when it was camelCase. This started getting generated when I added an overload in webgl.
* Don't generate constructor IDs for inline interfacesAnthony Ramine2017-01-031-1/+1
|
* Fix/silence some warningsSimon Sapin2016-12-201-1/+3
|
* Removed util.Alan Jeffrey2016-12-141-1/+1
|
* Rename `Reflectable` to `DomObject`.Corey Farwell2016-12-081-4/+4
| | | | Fixes https://github.com/servo/servo/issues/8473.
* Make WebIDL static methods take a more specific global if possibleAnthony Ramine2016-11-301-4/+5
|
* Make WebIDL constructors take a more specific global if possible (fixes #14071)Rohan Prinja2016-11-301-5/+8
|
* Update js, AGAINAnthony Ramine2016-11-271-3/+3
|
* Update js.Ms2ger2016-11-271-7/+5
|
* script creates methods taking '*mut JSContext' unsafeAbelardo E. Mendoza2016-11-141-15/+22
| | | | rebase + marked the necessary new code as unsafe
* Add a missing newline.Ms2ger2016-11-031-1/+1
|
* Update js.Ms2ger2016-11-021-5/+5
|
* Implemented FileReader::readAsArrayBufferNikhil Shagrithaya2016-11-011-3/+10
|
* Update Rust to 1.14.0-nightly (c59cb71d9 2016-10-26)Anthony Ramine2016-10-271-3/+3
|
* Generalise RootedReferenceAnthony Ramine2016-10-111-2/+0
| | | | | | | It now becomes RootedReference<'root> and includes an associated type for the return type of its 'r' method. This removes the need for OptionalRootedReference.
* Remove intrinsic Root::r()Anthony Ramine2016-10-111-12/+11
|
* Introduce ServoParserAnthony Ramine2016-10-111-2/+3
| | | | This is a common inline parent to ServoHTMLParser and ServoXMLParser.
* Auto merge of #13596 - nox:inline, r=Ms2gerbors-servo2016-10-071-50/+55
|\ | | | | | | | | | | | | | | | | | | | | Get rid of dom::bindings::global Globals in that PR are now represented by the fake IDL interface `GlobalScope`. <!-- 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/13596) <!-- Reviewable:end -->
| * Rename Reflectable::global_scope to globalAnthony Ramine2016-10-061-1/+1
| |
| * Remove GlobalRoot and GlobalRefAnthony Ramine2016-10-061-8/+4
| |
| * Do not use GlobalRoot in CodegenRust anymoreAnthony Ramine2016-10-061-8/+8
| |
| * Make Promise::Reject and Resolve take a &GlobalScopeAnthony Ramine2016-10-061-4/+4
| |
| * Remove global_root_from_reflectorAnthony Ramine2016-10-061-1/+0
| |