Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Strict import formatting (grouping and granularity) (#30325) | Samson | 2023-09-11 | 1 | -3/+5 |
| | | | | | * strict imports formatting * Reformat all imports | ||||
* | Rename reflect_dom_object2. | Josh Matthews | 2023-05-31 | 1 | -1/+5 |
| | |||||
* | Formatting. | Josh Matthews | 2023-05-28 | 1 | -1/+6 |
| | |||||
* | Support arbitrary protos when wrapping DOM objects with constructors. | Josh Matthews | 2023-05-28 | 1 | -2/+2 |
| | |||||
* | Support arbitrary protos when wrapping EventTarget objects. | Josh Matthews | 2023-05-28 | 1 | -2/+12 |
| | |||||
* | Make GlobalScope.get_cx a static method. | Josh Matthews | 2023-05-20 | 1 | -2/+4 |
| | |||||
* | Add trait DomObjectWrap to provide WRAP function | YUAN LYU | 2020-03-20 | 1 | -8/+22 |
| | |||||
* | Introduce a new type MaybeUnreflectedDom<T> (fixes #25701) | Anthony Ramine | 2020-02-17 | 1 | -4/+5 |
| | |||||
* | Use `#![register_tool]` instead of `#![register_attr]` | Simon Sapin | 2019-11-15 | 1 | -1/+1 |
| | | | | CC https://github.com/rust-lang/rust/issues/66079 | ||||
* | Modify *::get_cx methods to return a safe JSContext instead of a raw one | marmeladema | 2019-07-24 | 1 | -9/+3 |
| | |||||
* | Wrap(Global)Method now takes a SafeJSContext instead of a JSContext | marmeladema | 2019-07-24 | 1 | -3/+10 |
| | | | | as first argument. | ||||
* | Update MPL license to https (part 3) | Jan Andre Ikenmeyer | 2018-11-19 | 1 | -1/+1 |
| | |||||
* | Reorder imports | Pyfisch | 2018-11-06 | 1 | -1/+1 |
| | |||||
* | `cargo fix --edition` | Simon Sapin | 2018-11-06 | 1 | -3/+3 |
| | |||||
* | Format script component | chansuke | 2018-09-19 | 1 | -9/+12 |
| | |||||
* | Updated to mozjs v0.7.1. | Alan Jeffrey | 2018-05-30 | 1 | -1/+1 |
| | |||||
* | Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393 | Marcin Mielniczuk | 2018-03-28 | 1 | -1/+2 |
| | |||||
* | Use unsafe Heap::handle wherever needed | Igor Matuszewski | 2018-03-23 | 1 | -1/+2 |
| | |||||
* | Replace all uses of the `heapsize` crate with `malloc_size_of`. | Nicholas Nethercote | 2017-10-18 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`. | ||||
* | Make DomRoot<T> a type alias of a more general Root<T> type | Anthony Ramine | 2017-09-28 | 1 | -1/+1 |
| | | | | | | | 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>. | ||||
* | Rename Root<T> to DomRoot<T> | Anthony Ramine | 2017-09-26 | 1 | -4/+4 |
| | | | | | | | 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::root | Anthony Ramine | 2017-09-26 | 1 | -1/+1 |
| | |||||
* | Replace inheritance_integrity by trait shenanigans | Anthony Ramine | 2017-02-15 | 1 | -2/+1 |
| | | | | | | | | | | | | | | | | | For each derived DomObject impl, we also generate a dummy trait ShouldNotImplDomObject that is implemented for all T: DomObject. We then try to implement it for each field type except the first one. If compilation succeed, this means that field type doesn't implement DomObject itself otherwise it would break coherence rules. error[E0119]: conflicting implementations of trait `dom::xmlhttprequest::_IMPL_DOMOBJECT_FOR_XMLHttpRequest::ShouldNotImplDomObject` for type `((), SomeFieldTypeThatShouldNotImplementDomObject)`: --> /Users/nox/src/servo/components/script/dom/xmlhttprequest.rs:120:1 | 120 | #[dom_struct] | ^^^^^^^^^^^^^ | | | first implementation here | conflicting implementation for `((), SomeFieldTypeThatShouldNotImplementDomObject)` | ||||
* | Derive DomObject with a proc macro | Anthony Ramine | 2017-02-14 | 1 | -0/+12 |
| | |||||
* | Use Heap in DOM object reflector implementation to ensure GC barriers are used. | Josh Matthews | 2017-01-20 | 1 | -15/+11 |
| | |||||
* | Rename `Reflectable` to `DomObject`. | Corey Farwell | 2016-12-08 | 1 | -4/+4 |
| | | | | Fixes https://github.com/servo/servo/issues/8473. | ||||
* | script creates methods taking '*mut JSContext' unsafe | Abelardo E. Mendoza | 2016-11-14 | 1 | -2/+4 |
| | | | | rebase + marked the necessary new code as unsafe | ||||
* | Rename Reflectable::global_scope to global | Anthony Ramine | 2016-10-06 | 1 | -1/+1 |
| | |||||
* | Remove GlobalRoot and GlobalRef | Anthony Ramine | 2016-10-06 | 1 | -2/+1 |
| | |||||
* | Remove Reflectable::global | Anthony Ramine | 2016-10-06 | 1 | -6/+1 |
| | |||||
* | Remove global_root_from_reflector | Anthony Ramine | 2016-10-06 | 1 | -2/+2 |
| | |||||
* | Introduce Reflectable::global_scope | Anthony Ramine | 2016-10-06 | 1 | -1/+6 |
| | |||||
* | Make reflect_dom_object take a &GlobalScope | Anthony Ramine | 2016-10-06 | 1 | -6/+12 |
| | |||||
* | Extract mutability out of Reflectable trait. | Josh Matthews | 2016-09-07 | 1 | -2/+6 |
| | |||||
* | Add global default method for Reflectable trait | Chad Kimes | 2016-01-11 | 1 | -1/+6 |
| | |||||
* | Remove `#[allow(raw_pointer_derive)]` attributes | Brandon Fairchild | 2015-11-27 | 1 | -1/+1 |
| | | | | | | The attributes are unused. Fixes #8699. | ||||
* | Rustfmt some of script. | Ms2ger | 2015-11-18 | 1 | -6/+5 |
| | |||||
* | rearrange imports to be in alphabetical order | rohan.prinja | 2015-10-30 | 1 | -1/+1 |
| | |||||
* | more refactoring | rohan.prinja | 2015-10-30 | 1 | -0/+79 |