aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/root.rs
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused code from script* cratesest312019-06-021-8/+0
|
* Simplify RootedReference and make it specifically about slicesIt's now ↵Anthony Ramine2019-03-111-12/+17
| | | | called DomSlice<T>.
* Don't use RootedReference for Option<T> in codegen anymoreAnthony Ramine2019-03-101-14/+0
|
* Remove most RootedReference usesAnthony Ramine2019-03-101-15/+0
| | | | We can replace all uses of RootedReference for Option<T> by Option::deref calls.
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-5/+5
|
* Reorder importsPyfisch2018-11-061-2/+2
|
* `cargo fix --edition`Simon Sapin2018-11-061-6/+6
|
* Format script componentchansuke2018-09-191-42/+32
|
* Add AudioParam connection supportManish Goregaokar2018-07-301-0/+7
|
* Replace NonZero<*{const,mut} _> with std::ptr::NonNullSimon Sapin2018-01-221-18/+17
|
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`.
* Fix commonmark Markdown warnings in docs, part 1Matt Brubeck2017-10-171-1/+1
| | | | | | | | Fixes warnings from rust-lang/rust#44229 when `--enable-commonmark` is passed to rustdoc. This is mostly a global find-and-replace for bare URIs on lines by themselves in doc comments.
* Make usage of core_intrinsics optionalSimon Sapin2017-10-161-6/+4
|
* Move remaining uses of NonZero to our nonzero crateSimon Sapin2017-10-161-1/+1
|
* Make DomRoot<T> a type alias of a more general Root<T> typeAnthony Ramine2017-09-281-59/+107
| | | | | | | This Root<T> relies on the concept of a stable trace object, which doesn't move for the whole lifetime of the T value. For safety reasons, T must be 'static. The only implementor of StableTraceObject for now is Dom<T>.
* Kill RootCollectionPtrAnthony Ramine2017-09-271-15/+4
|
* Move STACK_ROOTS to dom::bindings::rootAnthony Ramine2017-09-271-3/+4
|
* Move script_runtime::StackRootTLS to root::ThreadLocalStackRootsAnthony Ramine2017-09-271-0/+18
|
* Reorder things in dom::bindings::rootAnthony Ramine2017-09-271-205/+205
| | | | The type DomRoot<T> is now the first one defined in it.
* Store a Dom<T> in DomRoot<T>Anthony Ramine2017-09-261-5/+7
|
* Make DomRoot::new unsafeAnthony Ramine2017-09-261-3/+3
|
* Rename Root<T> to DomRoot<T>Anthony Ramine2017-09-261-29/+29
| | | | | | | 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 OnceCellJS<T> to DomOnceCell<T>Anthony Ramine2017-09-261-7/+7
| | | | Like DOMRefCell<T>.
* Rename LayoutJS<T> to LayoutDom<T>Anthony Ramine2017-09-261-24/+24
|
* Rename MutNullableJS<T> to MutNullableDom<T>Anthony Ramine2017-09-261-12/+12
|
* Rename MutJS<T> to MutDom<T>Anthony Ramine2017-09-261-10/+10
|
* Rename JS<T> to Dom<T>Anthony Ramine2017-09-261-45/+45
|
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-0/+683