aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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
| |
| * Pass a &GlobalScope to WebIDL static methods and constructorsAnthony Ramine2016-10-061-4/+4
| |
| * Make throw_dom_exception take a &GlobalScopeAnthony Ramine2016-10-061-5/+5
| |
| * Make reflect_dom_object take a &GlobalScopeAnthony Ramine2016-10-061-3/+7
| |
| * Implement [Inline] interfacesAnthony Ramine2016-10-061-27/+29
| | | | | | | | | | Inline interfaces just appear as a Rust type and in the TypeId hierarchy. They are completely invisible on the JS side.
| * Prevent doing use self::FooBinding::{}Anthony Ramine2016-10-061-3/+7
| |
* | Make TopTypeId an untagged unionAnthony Ramine2016-10-061-14/+21
|/
* Reorganise CGDescriptorAnthony Ramine2016-10-021-23/+19
| | | | Group some codegen operations together.
* Auto merge of #13449 - servo:fill_property_descriptor, r=jdmbors-servo2016-09-301-3/+3
|\ | | | | | | | | | | | | | | Pass a MutableHandle to fill_property_descriptor. <!-- 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/13449) <!-- Reviewable:end -->
| * Pass a MutableHandle to fill_property_descriptor.Ms2ger2016-09-271-3/+3
| |
* | Auto merge of #13508 - tschneidereit:fix-sh-methods-codegen, r=emiliobors-servo2016-09-291-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix codegen for iterable's forEach method <!-- 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 #13451 (github issue number if applicable). <!-- Either: --> - [x] 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. --> The `forEach` method installed on iterable DOM interfaces uses SpiderMonkey's self-hosted implementation of `Array.prototype.forEach`, but it has the wrong value for `nargs`, causing failing asserts in debug and wrong behavior in release builds. Fixes #13451 <!-- 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/13508) <!-- Reviewable:end -->
| * | Fix codegen for iterable's forEach methodTill Schneidereit2016-09-291-1/+1
| | | | | | | | | | | | | | | | | | The `forEach` method installed on iterable DOM interfaces uses SpiderMonkey's self-hosted implementation of `Array.prototype.forEach`, but it has the wrong value for `nargs`, causing failing asserts in debug and wrong behavior in release builds. Fixes #13451
* | | Auto merge of #13431 - nox:webidl, r=Ms2gerbors-servo2016-09-281-16/+3
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | Update the WebIDL parser <!-- 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/13431) <!-- Reviewable:end -->
| * | Update the WebIDL parserAnthony Ramine2016-09-261-16/+3
| | |
* | | Auto merge of #13406 - Mylainos:issue-13377, r=jdmbors-servo2016-09-271-12/+3
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extract panic-catching for JS engine callbacks into a separate function All of our generated code for script contains inline code like this: ``` let result = panic::catch_unwind(AssertUnwindSafe(|| { ... }; match result { Ok(result) => result, Err(error) => { store_panic_result(error); return false; } } ``` This PR change it to something like this: ``` wrap_panic(|| { ... }, false) ``` --- - [X] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [X] These changes fix #13377 - [ ] 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/13406) <!-- Reviewable:end -->
| * | Issue #13377 Extract panic-catching for JS engine callbacks into aHugo Thiessard2016-09-261-12/+3
| |/ | | | | | | separate function
* / remove link to #5876 due to everything has been fixed in PR #13333Alexandrov Sergey2016-09-261-1/+0
|/
* Enqueue promise jobs from SpiderMonkey callbacks, and execute them in ↵Mátyás Mustoha2016-09-221-1/+2
| | | | | | batches. Implement native Promise APIs. Add SpiderMonkey hooks for enqueuing promise jobs. Start porting various native Promise APIs.
* Implement binding support for returning and accepting Promises in WebIDL.Josh Matthews2016-09-221-18/+67
|
* Auto merge of #13333 - splav:JS-setters-fix#13327, r=jdmbors-servo2016-09-221-13/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix JS IndexedGetter and NamedSetter bindings generation <!-- Please describe your changes on the following line: --> Fix JS IndexedGetter and NamedSetter bindings generation. --- <!-- 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 #13327 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because the test will be in PR for #13129 as currently these setters are used by nobody. <!-- 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/13333) <!-- Reviewable:end -->
| * fix JS IndexedGetter and NamedSetter bindings generationAlexandrov Sergey2016-09-201-13/+7
| |
* | Implement the MozMap type.Ms2ger2016-09-211-7/+24
| | | | | | | | Fixes #13144.
* | Introduce wrapInNativeContainerType.Ms2ger2016-09-211-3/+12
| |
* | Use innerContainerType in getConversionConfigForType.Ms2ger2016-09-211-1/+1
| |
* | Rename innerSequenceType to innerContainerType.Ms2ger2016-09-211-4/+4
| |
* | Handle unsupported types better in getUnionTypeTemplateVars.Ms2ger2016-09-211-13/+1
| |