aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen
Commit message (Collapse)AuthorAgeFilesLines
...
* Improve the readability of dictionaries' new() method.Ms2ger2017-01-311-16/+19
|
* Auto merge of #15099 - servo:phf-no-macros, r=jdmbors-servo2017-01-202-11/+15
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-192-11/+15
| |
* | 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-032-1/+3
|
* 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
|
* Auto merge of #13453 - metajack:media-query-list, r=jdmbors-servo2016-11-021-1/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement matchMedia and MediaQueryList <!-- 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 #13376 (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. --> Fixes #13376. <!-- 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/13453) <!-- Reviewable:end -->
| * Implement matchMedia and MediaQueryListJack Moffitt2016-11-021-1/+5
| | | | | | | | Fixes #13376.
* | 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-075-53/+79
|\ | | | | | | | | | | | | | | | | | | | | 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-065-30/+53
| | | | | | | | | | 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-2814-531/+150
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | 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-2613-531/+127
| | |