Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Properly set desc.obj in CodegenRust.py (fixes #11868) | Anthony Ramine | 2018-09-04 | 1 | -3/+2 | |
| | ||||||
* | Support unions of objects in overloads | Anthony Ramine | 2018-08-30 | 1 | -8/+13 | |
| | | | | Part of #20513, implementing the parts useful for WebGL. | |||||
* | Upgraded to SM 60 | Alan Jeffrey | 2018-08-20 | 1 | -34/+52 | |
| | ||||||
* | Make (dictionary)::empty() safe | Manish Goregaokar | 2018-07-06 | 1 | -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 field | Manish Goregaokar | 2018-07-03 | 1 | -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 Jeffrey | 2018-05-30 | 1 | -8/+8 | |
| | ||||||
* | Update the WebIDL parser | Anthony Ramine | 2018-04-03 | 1 | -1/+1 | |
| | ||||||
* | Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393 | Marcin Mielniczuk | 2018-03-28 | 1 | -71/+88 | |
| | ||||||
* | Unify argument auto rooting in codegen | Igor Matuszewski | 2018-03-23 | 1 | -11/+8 | |
| | ||||||
* | Adapt uniform[fv] and similar to accept typed array args | Igor Matuszewski | 2018-03-23 | 1 | -1/+5 | |
| | ||||||
* | Root `any` members in dictionaries | Igor Matuszewski | 2018-03-16 | 1 | -11/+12 | |
| | ||||||
* | Root JS object members in dictionaries | Igor Matuszewski | 2018-03-16 | 1 | -5/+3 | |
| | ||||||
* | Use helper `is_typed_array` function | Igor Matuszewski | 2018-03-14 | 1 | -5/+11 | |
| | ||||||
* | Support nullable typed arrays in codegen | Igor Matuszewski | 2018-03-14 | 1 | -2/+3 | |
| | ||||||
* | WIP: Accept typed array arguments in codegen | Igor Matuszewski | 2018-03-14 | 1 | -2/+56 | |
| | ||||||
* | Support objects in WebIDL unions | Igor Matuszewski | 2018-03-13 | 1 | -12/+13 | |
| | | | | Fixes #17011 | |||||
* | Make the private callback methods taking a raw this pointer unsafe | Anthony Ramine | 2018-01-25 | 1 | -10/+12 | |
| | ||||||
* | Kill dead callback codegen code | Anthony Ramine | 2018-01-25 | 1 | -61/+4 | |
| | ||||||
* | Make callbacks' new methods unsafe | Anthony Ramine | 2018-01-25 | 1 | -2/+2 | |
| | | | | They take raw pointers to contexts and objects. | |||||
* | Replace NonNullJSObjectPtr with std::ptr::NonNull<JSObject> | Simon Sapin | 2018-01-22 | 1 | -3/+3 | |
| | ||||||
* | Fix tyvar_behind_raw_pointer warnings | Simon Sapin | 2018-01-10 | 1 | -21/+21 | |
| | | | | https://github.com/rust-lang/rust/issues/46906 | |||||
* | Root sequence<{any,object}> IDL arguments using CustomAutoRooter | Igor Matuszewski | 2018-01-05 | 1 | -5/+38 | |
| | | | | Also pulls in mozjs 0.1.10 to support the change. | |||||
* | Moved pop_current_element_queue() and push_new_element_queue() to ↵ | olmanz | 2017-11-16 | 1 | -2/+2 | |
| | | | | htmlconstructor.rs | |||||
* | Moved function html_constructor() from interface.rs to new file ↵ | olmanz | 2017-11-16 | 1 | -1/+1 | |
| | | | | htmlconstructor.rs | |||||
* | Fix binding generation for overloaded functions with optionals and default ↵ | Fernando Jiménez Moreno | 2017-11-11 | 1 | -1/+3 | |
| | | | | values | |||||
* | Bump bitflags to 1.0 in every servo crate | Bastien Orivel | 2017-10-30 | 1 | -4/+4 | |
| | ||||||
* | Fix Const IDL value compilation errors in codegen | Imanol Fernandez | 2017-10-25 | 1 | -3/+13 | |
| | ||||||
* | Backed out changeset e64e659c077d: servo PR #18809 and revendor for reftest ↵ | Gecko Backout | 2017-10-19 | 1 | -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 crate | Bastien Orivel | 2017-10-19 | 1 | -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 Nethercote | 2017-10-18 | 1 | -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-mozjs | Simon Sapin | 2017-10-16 | 1 | -11/+12 | |
| | ||||||
* | Don’t rely on unstable 'const fn's in rust-mozjs, so we can remove them. | Simon Sapin | 2017-10-16 | 1 | -12/+10 | |
| | ||||||
* | Move remaining uses of NonZero to our nonzero crate | Simon Sapin | 2017-10-16 | 1 | -1/+0 | |
| | ||||||
* | Replace NonZero<*mut JSObject> with a wrapper to enable local trait impls. | Simon Sapin | 2017-10-16 | 1 | -1/+3 | |
| | ||||||
* | Implement EventListenerOptions for EventTarget | Guillaume Gomez | 2017-09-30 | 1 | -2/+1 | |
| | | | | For now, only "capture" is supported. | |||||
* | Rename Root<T> to DomRoot<T> | Anthony Ramine | 2017-09-26 | 1 | -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. | |||||
* | Rename LayoutJS<T> to LayoutDom<T> | Anthony Ramine | 2017-09-26 | 1 | -1/+1 | |
| | ||||||
* | Rename JS<T> to Dom<T> | Anthony Ramine | 2017-09-26 | 1 | -4/+4 | |
| | ||||||
* | Rename dom::bindings::js to dom::bindings::root | Anthony Ramine | 2017-09-26 | 1 | -6/+6 | |
| | ||||||
* | Use more named string interpolation. | Josh Matthews | 2017-09-25 | 1 | -10/+13 | |
| | ||||||
* | Remove almost all uses of Heap::new. | Josh Matthews | 2017-09-25 | 1 | -3/+7 | |
| | ||||||
* | Initialize rooted dictionaries to a stable value before setting fields. | Josh Matthews | 2017-09-25 | 1 | -22/+30 | |
| | ||||||
* | Derive the Default trait for dictionaries containing GC values. | Josh Matthews | 2017-09-25 | 1 | -4/+15 | |
| | ||||||
* | Store rootable dictionary members of dictionaries in RootedTraceableBox. | Josh Matthews | 2017-09-25 | 1 | -8/+19 | |
| | ||||||
* | Be more conservative about safety of dictionary and union values. | Josh Matthews | 2017-09-25 | 1 | -8/+35 | |
| | | | | | | | | Mark dictionaries containing GC values as must_root, and wrap them in RootedTraceableBox in automatically-generated APIs. To accommodate union variants that are now flagged as unsafe, add RootedTraceableBox to union variants that need to be rooted, rather than wrapping the entire union value. | |||||
* | Don't generate union conversion functions for object variants. | Josh Matthews | 2017-09-25 | 1 | -2/+6 | |
| | ||||||
* | Rename a couple of Promise methods | Anthony Ramine | 2017-09-21 | 1 | -1/+1 | |
| | ||||||
* | script: Properly implement LegacyPlatformGetOwnProperty in WebIDL. | Emilio Cobos Álvarez | 2017-09-18 | 1 | -9/+24 | |
| | | | | | We were missing the "ignoreNamedProperties" bit, which my previous patch uncovers. | |||||
* | script: remove unused function. | Emilio Cobos Álvarez | 2017-09-18 | 1 | -1/+0 | |
| | ||||||
* | script: Fix integer-JSID handling in named getters. | Emilio Cobos Álvarez | 2017-09-18 | 1 | -6/+8 | |
| | | | | Fixes #10686 |