aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/worker.rs
Commit message (Collapse)AuthorAgeFilesLines
* Provide the source window as part of postMessage events.Josh Matthews2019-01-071-1/+1
|
* Fix new warningsSimon Sapin2019-01-041-4/+0
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Update crossbeam-channel to 0.3Bastien Orivel2018-11-181-2/+2
|
* Reorder importsPyfisch2018-11-061-3/+5
|
* Sort `use` statementsSimon Sapin2018-11-061-2/+2
|
* `cargo fix --edition`Simon Sapin2018-11-061-17/+17
|
* Format script componentchansuke2018-09-191-21/+36
|
* Replace mpsc with crossbeam/servo channel, update ipc-channelSimon Sapin2018-09-121-1/+1
| | | | Co-authored-by: Gregory Terzian <gterzian@users.noreply.github.com>
* introduce task-queues, and throttling the performance-timeline task-source, ↵Gregory Terzian2018-08-311-5/+5
| | | | | | in script and worker threads. queue
* Auto merge of #21430 - Eijebong:ws-origin, r=jdmbors-servo2018-08-221-1/+1
|\ | | | | | | | | | | | | | | Properly set the origin on websocket messages <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21430) <!-- Reviewable:end -->
| * Properly set the origin on websocket messagesBastien Orivel2018-08-161-1/+1
| |
* | Upgraded to SM 60Alan Jeffrey2018-08-201-10/+7
|/
* Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393Marcin Mielniczuk2018-03-281-1/+2
|
* added autoclose workerNupur Baghel2018-02-221-0/+1
|
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`.
* Remove use of unstable box syntax.Simon Sapin2017-10-161-1/+1
| | | | | | | | | | | | | | | | | | | | 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-3/+3
| | | | | | | 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
|
* Introduce TaskOnceAnthony Ramine2017-09-201-5/+4
| | | | | Having both TaskBox and TaskOnce allows us to remove the superfluous inner boxing from CancellableTask<T>.
* Rename Task to TaskBoxAnthony Ramine2017-09-201-3/+3
|
* Use task! to forward unhandled errors to worker objectsAnthony Ramine2017-09-181-46/+2
|
* Use task! to post worker messagesAnthony Ramine2017-09-181-21/+0
|
* Move Task to its own moduleAnthony Ramine2017-09-181-1/+1
|
* Rename Runnable to TaskAnthony Ramine2017-09-161-7/+7
| | | | | | | | | | | | The changes are: * `*Runnable` -> `*Task`; * `RunnableMsg` -> `Task`; * `RunnableWrapper` -> `TaskCanceller`; * `MainThreadRunnable` -> `MainThreadTask`; * `wrap_runnable` -> `wrap_task`; * `get_runnable_wrapper` -> `task_canceller`; * `handler` -> `run`; * `main_thread_handler` -> `run_with_script_thread`.
* Use absolute paths in the event handlers macrosAnthony Ramine2017-09-011-1/+0
|
* Untry scriptSimon Sapin2017-06-181-1/+1
|
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* Inline dom::eventdispatcher into dom::eventAnthony Ramine2017-01-221-2/+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-1/+2
| | | | rebase + marked the necessary new code as unsafe
* Migrate `EventTarget` event firing functions to use `Atom`s.Corey Farwell2016-11-031-1/+1
| | | | This allows us to utilize more `atom` macros.
* Remove "fire a simple event" concept, refactor event firing API.Corey Farwell2016-11-031-1/+1
| | | | | "fire a simple event" concept was removed in https://github.com/whatwg/html/pull/1933.
* Remove intrinsic Root::r()Anthony Ramine2016-10-111-1/+1
|
* Rename Reflectable::global_scope to globalAnthony Ramine2016-10-061-2/+2
|
* Pass a &GlobalScope to WebIDL static methods and constructorsAnthony Ramine2016-10-061-11/+9
|
* Introduce GlobalScope::script_chanAnthony Ramine2016-10-061-1/+1
|
* Make prepare_workerscope_init take a &GlobalScopeAnthony Ramine2016-10-061-1/+1
|
* Introduce GlobalScope::report_an_errorAnthony Ramine2016-10-061-3/+3
|
* Introduce GlobalScope::api_base_urlAnthony Ramine2016-10-061-3/+3
|
* Make dispatch_jsval methods take a &GlobalScopeAnthony Ramine2016-10-061-5/+5
|
* Make StructuredCloneData::read take a &GlobalScopeAnthony Ramine2016-10-061-1/+1
|
* Introduce GlobalScope::pipeline_idAnthony Ramine2016-10-061-3/+3
|
* Introduce GlobalScope::devtools_chanAnthony Ramine2016-10-061-2/+3
|
* Introduce GlobalScope::get_next_worker_idAnthony Ramine2016-10-061-1/+1
|
* Make reflect_dom_object take a &GlobalScopeAnthony Ramine2016-10-061-3/+4
|
* Move workers' pipeline IDs to WorkerGlobalScopeAnthony Ramine2016-10-021-1/+1
|
* Return an enum instead of a boolean from dispatch_eventAdolfo Ochagavía2016-09-261-2/+3
| | | | Fixes #13196
* Update Rust to 1.13.0-nightly (6ffdda1ba 2016-09-14)Anthony Ramine2016-09-151-2/+3
|
* Use fn pipeline_id consistently, not fn pipelineAneesh Agrawal2016-09-131-3/+3
| | | | | | | | | | | | Consistently use the name 'pipeline_id' to refer to a function that returns an (optional) PipelineId. This was prompted by discovering both fn pipeline and fn pipeline_id doing the same job in htmliframeelement.rs. Note that there is fn pipeline in components/compositing/compositor.rs, but that actually returns an Option<&CompositionPipeline>, not any kind of PipelineId.