aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Simplify RootedReference and make it specifically about slicesIt's now ↵Anthony Ramine2019-03-111-1/+1
| | | | called DomSlice<T>.
* Don't use RootedReference for Option<T> in codegen anymoreAnthony Ramine2019-03-101-2/+4
|
* Remove most RootedReference usesAnthony Ramine2019-03-101-1/+3
| | | | We can replace all uses of RootedReference for Option<T> by Option::deref calls.
* Add support for default dict values being boolean, use in MediaStreamConstraintsManish Goregaokar2019-03-041-1/+9
|
* Add aspect/frameRate/sampleRate parametersManish Goregaokar2019-03-041-0/+1
|
* Update WebIDL.py to 4166cae81546Manish Goregaokar2019-03-041-17/+9
| | | | | | https://hg.mozilla.org/integration/autoland/rev/4166cae81546f54accae807413f806d20bf30920 Pulls in changes from https://bugzilla.mozilla.org/show_bug.cgi?id=1359269
* Update bool pattern matching into if-elsePiotr Szpetkowski2019-01-301-5/+2
|
* Update to new JS runtime creation APIs.Josh Matthews2019-01-151-5/+4
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Switch most crates to the 2018 editionSimon Sapin2018-11-061-4/+8
|
* Use 2018-style paths in generated DOM bindingsSimon Sapin2018-11-061-143/+143
|
* Handle default empty sequence valuesKeith Yeung2018-11-011-15/+18
|
* Make expectionCode of Promise have newline character automaticallyCYBAI2018-10-181-1/+1
| | | | | | | | | In the `fill` method, it will check if the exception code is empty string or has newline character in the end of string or not. However, we didn't do any change to exceptionCode when type is Promise. Thus, we add the newline character to make it pass the checking in `fill` method. See more detail from the log of IRC: https://mozilla.logbot.info/servo/20180501#c14692647
* Upgrade to rustc 1.31.0-nightly (8c4ad4e9e 2018-10-04)Simon Sapin2018-10-051-1/+8
| | | | CC https://github.com/rust-lang/rust/issues/54846
* Properly set desc.obj in CodegenRust.py (fixes #11868)Anthony Ramine2018-09-041-3/+2
|
* Support unions of objects in overloadsAnthony Ramine2018-08-301-8/+13
| | | | Part of #20513, implementing the parts useful for WebGL.
* Upgraded to SM 60Alan Jeffrey2018-08-201-34/+52
|
* Make (dictionary)::empty() safeManish Goregaokar2018-07-061-8/+48
| | | | | | | | | It currently works by constructing from null (which will throw a runtime error if there are non-defaultable members). This changes it so that we no longer need a JSContext to construct this, so it can be safely constructed. In the case of non-defaultable members, this method simply does not exist.
* Assert that DOM structs have the correct first fieldManish Goregaokar2018-07-031-1/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DOM structs embed their parent type as their first field. This introduces a `.parent()` method to the DOM struct that returns its first field, and codegens a type assert that ensures that `.parent()` returns the parent struct. This generates: On `#[dom_struct]`: ```rust impl HasParent for Type { type Parent = ParentType; fn as_parent(&self) -> ParentType { &self.first_field } } ``` In the codegen files: ```rust impl Type { fn __assert_parent_type(&self) { let _: &ParentType = self.as_parent(); } } ````
* Updated to mozjs v0.7.1.Alan Jeffrey2018-05-301-8/+8
|
* Update the WebIDL parserAnthony Ramine2018-04-031-1/+1
|
* Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393Marcin Mielniczuk2018-03-281-71/+88
|
* Unify argument auto rooting in codegenIgor Matuszewski2018-03-231-11/+8
|
* Adapt uniform[fv] and similar to accept typed array argsIgor Matuszewski2018-03-231-1/+5
|
* Root `any` members in dictionariesIgor Matuszewski2018-03-161-11/+12
|
* Root JS object members in dictionariesIgor Matuszewski2018-03-161-5/+3
|
* Use helper `is_typed_array` functionIgor Matuszewski2018-03-141-5/+11
|
* Support nullable typed arrays in codegenIgor Matuszewski2018-03-141-2/+3
|
* WIP: Accept typed array arguments in codegenIgor Matuszewski2018-03-141-2/+56
|
* Support objects in WebIDL unionsIgor Matuszewski2018-03-131-12/+13
| | | | Fixes #17011
* Make the private callback methods taking a raw this pointer unsafeAnthony Ramine2018-01-251-10/+12
|
* Kill dead callback codegen codeAnthony Ramine2018-01-251-61/+4
|
* Make callbacks' new methods unsafeAnthony Ramine2018-01-251-2/+2
| | | | They take raw pointers to contexts and objects.
* Replace NonNullJSObjectPtr with std::ptr::NonNull<JSObject>Simon Sapin2018-01-221-3/+3
|
* Fix tyvar_behind_raw_pointer warningsSimon Sapin2018-01-101-21/+21
| | | | https://github.com/rust-lang/rust/issues/46906
* Root sequence<{any,object}> IDL arguments using CustomAutoRooterIgor Matuszewski2018-01-051-5/+38
| | | | Also pulls in mozjs 0.1.10 to support the change.
* Moved pop_current_element_queue() and push_new_element_queue() to ↵olmanz2017-11-161-2/+2
| | | | htmlconstructor.rs
* Moved function html_constructor() from interface.rs to new file ↵olmanz2017-11-161-1/+1
| | | | htmlconstructor.rs
* Fix binding generation for overloaded functions with optionals and default ↵Fernando Jiménez Moreno2017-11-111-1/+3
| | | | values
* Bump bitflags to 1.0 in every servo crateBastien Orivel2017-10-301-4/+4
|
* Fix Const IDL value compilation errors in codegenImanol Fernandez2017-10-251-3/+13
|
* Backed out changeset e64e659c077d: servo PR #18809 and revendor for reftest ↵Gecko Backout2017-10-191-4/+4
| | | | | | failures, e.g. in layout/reftests/bugs/392435-1.html. r=backout on a CLOSED TREE Backs out https://github.com/servo/servo/pull/18809
* Update bitflags to 1.0 in every servo crateBastien Orivel2017-10-191-4/+4
| | | | | It still needs dependencies update to remove all the other bitflags versions.
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Servo currently uses `heapsize`, but Stylo/Gecko use `malloc_size_of`. `malloc_size_of` is better -- it handles various cases that `heapsize` does not -- so this patch changes Servo to use `malloc_size_of`. This patch makes the following changes to the `malloc_size_of` crate. - Adds `MallocSizeOf` trait implementations for numerous types, some built-in (e.g. `VecDeque`), some external and Servo-only (e.g. `string_cache`). - Makes `enclosing_size_of_op` optional, because vanilla jemalloc doesn't support that operation. - For `HashSet`/`HashMap`, falls back to a computed estimate when `enclosing_size_of_op` isn't available. - Adds an extern "C" `malloc_size_of` function that does the actual heap measurement; this is based on the same functions from the `heapsize` crate. This patch makes the following changes elsewhere. - Converts all the uses of `heapsize` to instead use `malloc_size_of`. - Disables the "heapsize"/"heap_size" feature for the external crates that provide it. - Removes the `HeapSizeOf` implementation from `hashglobe`. - Adds `ignore` annotations to a few `Rc`/`Arc`, because `malloc_size_of` doesn't derive those types, unlike `heapsize`.
* Update rust-mozjsSimon Sapin2017-10-161-11/+12
|
* Don’t rely on unstable 'const fn's in rust-mozjs, so we can remove them.Simon Sapin2017-10-161-12/+10
|
* Move remaining uses of NonZero to our nonzero crateSimon Sapin2017-10-161-1/+0
|
* Replace NonZero<*mut JSObject> with a wrapper to enable local trait impls.Simon Sapin2017-10-161-1/+3
|
* Implement EventListenerOptions for EventTargetGuillaume Gomez2017-09-301-2/+1
| | | | For now, only "capture" is supported.
* Rename Root<T> to DomRoot<T>Anthony Ramine2017-09-261-11/+15
| | | | | | | In a later PR, DomRoot<T> will become a type alias of Root<Dom<T>>, where Root<T> will be able to handle all the things that need to be rooted that have a stable traceable address that doesn't move for the whole lifetime of the root. Stay tuned.