aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/testbinding.rs
Commit message (Collapse)AuthorAgeFilesLines
* `cargo fix --edition`Simon Sapin2018-11-061-30/+30
|
* Handle default empty sequence valuesKeith Yeung2018-11-011-0/+2
|
* Format script componentchansuke2018-09-191-143/+414
|
* Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393Marcin Mielniczuk2018-03-281-1/+2
|
* Add codegen test for function overloads taking typed array argsIgor Matuszewski2018-03-231-0/+3
|
* Root `any` members in dictionariesIgor Matuszewski2018-03-161-2/+2
|
* Root JS object members in dictionariesIgor Matuszewski2018-03-161-1/+1
|
* Support nullable typed arrays in codegenIgor Matuszewski2018-03-141-0/+1
|
* WIP: Accept typed array arguments in codegenIgor Matuszewski2018-03-141-0/+5
|
* Add WPT test for WebIDL union conversion containing object valuesIgor Matuszewski2018-03-131-0/+8
|
* Use safe NonZero constructor instead of an explicit null checkSimon Sapin2018-01-221-4/+2
|
* Replace NonNullJSObjectPtr with std::ptr::NonNull<JSObject>Simon Sapin2018-01-221-8/+8
|
* Root sequence<{any,object}> IDL arguments using CustomAutoRooterIgor Matuszewski2018-01-051-0/+9
| | | | Also pulls in mozjs 0.1.10 to support the change.
* Fix binding generation for overloaded functions with optionals and default ↵Fernando Jiménez Moreno2017-11-111-0/+2
| | | | values
* Import sequence inner types if it appears in dictionary membersKeith Yeung2017-11-081-0/+1
|
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`.
* Replace NonZero<*mut JSObject> with a wrapper to enable local trait impls.Simon Sapin2017-10-161-8/+8
|
* Remove use of unstable box syntax.Simon Sapin2017-10-161-2/+2
| | | | | | | | | | | | | | | | | | | | http://www.robohornet.org gives a score of 101.36 on master, and 102.68 with this PR. The latter is slightly better, but probably within noise level. So it looks like this PR does not affect DOM performance. This is expected since `Box::new` is defined as: ```rust impl<T> Box<T> { #[inline(always)] pub fn new(x: T) -> Box<T> { box x } } ``` With inlining, it should compile to the same as box syntax.
* Rename Root<T> to DomRoot<T>Anthony Ramine2017-09-261-20/+20
| | | | | | | 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 dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* Remove almost all uses of Heap::new.Josh Matthews2017-09-251-3/+3
|
* Store rootable dictionary members of dictionaries in RootedTraceableBox.Josh Matthews2017-09-251-2/+2
|
* Be more conservative about safety of dictionary and union values.Josh Matthews2017-09-251-5/+5
| | | | | | | | 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.
* Make Promise::reject_error soundAnthony Ramine2017-09-221-1/+1
|
* Make Promise::resolve_native actually soundAnthony Ramine2017-09-211-5/+2
| | | | | We shouldn't have to pass a raw JSContext pointer, and to enter the promise's context's compartment by hand.
* Rename a couple of Promise methodsAnthony Ramine2017-09-211-2/+2
|
* order derivable traits listsClément DAVID2017-08-231-2/+2
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* Upgrade to rustc 1.21.0-nightly (599be0d18 2017-07-26)Simon Sapin2017-07-271-2/+2
|
* Update the WebIDL parserAnthony Ramine2017-06-091-6/+3
|
* removed instances of -> () in existing codelucantrop2017-03-131-2/+2
|
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* Add a object-in-union test.Ms2ger2017-02-161-0/+2
|
* Use RootedTraceableBox for unions.Ms2ger2017-02-161-1/+1
|
* Use RootedTraceableBox for dictionaries.Ms2ger2017-02-161-1/+2
|
* Use Heap for dictionary and union members.Ms2ger2017-02-161-4/+4
|
* Support dictionaries in unions.Ms2ger2017-01-201-0/+1
| | | | Fixes #11612.
* Implement the incumbent global.Ms2ger2017-01-171-0/+3
| | | | Fixes #10963.
* Implement the entry global.Ms2ger2017-01-061-0/+4
| | | | Partial fix for #10963.
* Removed util.Alan Jeffrey2016-12-141-1/+1
|
* Rename `Reflectable` to `DomObject`.Corey Farwell2016-12-081-1/+1
| | | | Fixes https://github.com/servo/servo/issues/8473.
* script creates methods taking '*mut JSContext' unsafeAbelardo E. Mendoza2016-11-141-34/+52
| | | | rebase + marked the necessary new code as unsafe
* Rename Reflectable::global_scope to globalAnthony Ramine2016-10-061-13/+13
|
* Remove GlobalRoot and GlobalRefAnthony Ramine2016-10-061-2/+1
|
* Use global_scope_from_context in TestBinding::PromiseNativeHandlerAnthony Ramine2016-10-061-3/+3
|
* Remove Reflectable::globalAnthony Ramine2016-10-061-2/+2
|
* Make Promise::Reject and Resolve take a &GlobalScopeAnthony Ramine2016-10-061-2/+2
|
* Move timers to GlobalScopeAnthony Ramine2016-10-061-2/+4
|
* Pass a &GlobalScope to WebIDL static methods and constructorsAnthony Ramine2016-10-061-18/+18
|
* Introduce GlobalScope::as_windowAnthony Ramine2016-10-061-1/+1
|
* Make Promise::new take a &GlobalScopeAnthony Ramine2016-10-061-4/+4
|