Anthony Ramine
46628fba05
Move Task to its own module
2017-09-18 02:47:04 +02:00
Anthony Ramine
56117d3185
Rename Runnable to Task
...
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`.
2017-09-16 15:43:26 +02:00
Anthony Ramine
24cf15a014
Store microtask queues in their global ( fixes #18467 )
2017-09-13 15:02:45 +02:00
Anthony Ramine
7481ce177f
Store a Rc<MicrotaskQueue> directly on Window
2017-09-13 14:27:45 +02:00
Anthony Ramine
b8ae82ffb8
Reformat GlobalScope::new_inherited
2017-09-13 10:53:03 +02:00
Fernando Jiménez Moreno
fb843c251a
Make Performance Timeline API work in Workers
2017-09-05 17:07:15 +02:00
Paul Rouget
d241389129
make use of ScriptToConstellationChan
2017-08-15 08:22:09 +02:00
Jyotsna Prakash
433cd90bc3
return Option from GlobalScope::current
...
handles the case where GlobalScope::current calls CurrentGlobalOrNull
and the result is null
2017-06-22 10:04:06 -07:00
Alan Jeffrey
af8436c9be
Implemented Houdini worklets.
2017-05-17 09:01:05 -05:00
ddh
2c6bd51bef
added origin to globalscope
2017-04-24 13:15:42 +01:00
Fernando Jiménez Moreno
fb878f33d1
Terminate timer scheduler thread during shutdown
2017-03-30 14:27:40 +02:00
Anthony Ramine
31e9d81c0f
Make #[dom_struct] a proc_macro attribute
2017-02-24 01:50:51 +01:00
Josh Matthews
b5d2bd757b
Perform a microtask checkpoint after executing classic scripts and callbacks.
2017-02-01 12:54:33 -05:00
Josh Matthews
32d4f84a30
Generalize promise job queue into solitary microtask queue.
2017-02-01 12:54:33 -05:00
Anthony Ramine
7dd5945237
Inline dom::eventdispatcher into dom::event
2017-01-22 15:31:47 +01:00
Ms2ger
51df04d93e
Implement the incumbent global.
...
Fixes #10963 .
2017-01-17 12:57:02 +01:00
karenher
db2082bc6e
Store parser's current line when script elements are created.
...
Use the newly stored line as the starting line number when
evaluating JS. This ensures that inline scripts will report
errors with meaningful line numbers.
2017-01-11 21:11:00 -05:00
Ms2ger
cb47a7e403
Implement the entry global.
...
Partial fix for #10963 .
2017-01-06 12:56:35 +01:00
Ms2ger
01e336f691
Implement a getter for the 'current' global object.
2016-12-23 11:15:44 +01:00
Anthony Ramine
1327ebd52f
Remove HeapGCValue
...
It could be used to have mutable JSVal fields without GC barriers.
With the removal of that trait, MutHeap and MutNullableHeap can respectively
be replaced by MutJS and MutNullableJS.
2016-12-12 10:47:54 -10:00
Corey Farwell
449f6337d4
Rename Reflectable
to DomObject
.
...
Fixes https://github.com/servo/servo/issues/8473 .
2016-12-08 08:50:35 -10:00
Anthony Ramine
445701d138
Update js, AGAIN
2016-11-27 12:19:19 +01:00
Ms2ger
e367822b3e
Update js.
2016-11-27 12:19:19 +01:00
Emilio Cobos Álvarez
913c874cb5
Urlmageddon: Use refcounted urls more often.
2016-11-17 18:34:23 +01:00
Keith Yeung
72cb856e31
Properly implement TaskSource for NetworkingTaskSource
2016-11-11 14:50:42 -08:00
Anthony Ramine
b6bbd41e11
Remove GlobalRoot and GlobalRef
2016-10-06 21:36:00 +02:00
Anthony Ramine
e7a1149984
Introduce GlobalScope::file_reading_task_source
2016-10-06 21:35:57 +02:00
Anthony Ramine
ca15dd5eea
Introduce GlobalScope::process_event
2016-10-06 21:35:56 +02:00
Anthony Ramine
cdf3ef05e7
Introduce GlobalScope::new_script_pair
2016-10-06 21:35:55 +02:00
Anthony Ramine
4d9347d5b3
Introduce GlobalScope::enqueue_promise_job
2016-10-06 21:35:53 +02:00
Anthony Ramine
6e3be6d894
Introduce GlobalScope::flush_promise_jobs
2016-10-06 21:35:52 +02:00
Anthony Ramine
514819f37a
Introduce GlobalScope::get_runnable_wrapper
2016-10-06 21:35:51 +02:00
Anthony Ramine
991801488c
Move timers to GlobalScope
2016-10-06 21:35:51 +02:00
Anthony Ramine
9c04eb60bd
Move JS evaluation functions to GlobalScope
2016-10-06 21:35:50 +02:00
Anthony Ramine
1fd470889d
Introduce GlobalScope::networking_task_source
2016-10-06 21:35:49 +02:00
Anthony Ramine
a7305b7fc4
Introduce GlobalScope::script_chan
2016-10-06 21:35:48 +02:00
Anthony Ramine
71236e168a
Introduce GlobalScope::core_resource_thread
2016-10-06 21:35:48 +02:00
Anthony Ramine
bad49e4696
Introduce GlobalScope::resource_threads
2016-10-06 21:35:46 +02:00
Anthony Ramine
86d2008137
Introduce GlobalScope::report_an_error
2016-10-06 21:35:46 +02:00
Anthony Ramine
766010379e
Introduce GlobalScope::as_window
2016-10-06 21:35:45 +02:00
Anthony Ramine
f38159b7d3
Introduce GlobalScope::get_url
2016-10-06 21:35:44 +02:00
Anthony Ramine
3302a53d38
Introduce GlobalScope::api_base_url
2016-10-06 21:35:43 +02:00
Anthony Ramine
27f100b1d4
Introduce GlobalScope::pipeline_id
2016-10-06 20:59:13 +02:00
Anthony Ramine
c6ff767625
Introduce GlobalScope::scheduler_chan
2016-10-06 20:59:13 +02:00
Anthony Ramine
f789e73fd2
Introduce GlobalScope::constellation_chan
2016-10-06 20:59:12 +02:00
Anthony Ramine
ae3763e7b3
Introduce GlobalScope::time_profiler_chan
2016-10-06 20:59:12 +02:00
Anthony Ramine
bfa7d045d0
Introduce GlobalScope::mem_profiler_chan
2016-10-06 20:59:11 +02:00
Anthony Ramine
fe6fca9e1f
Introduce GlobalScope::devtools_chan
2016-10-06 20:59:11 +02:00
Anthony Ramine
14a0b8d88c
Move console timers to GlobalScope
2016-10-06 20:59:11 +02:00
Anthony Ramine
d7c2da450b
Introduce GlobalScope::live_devtools_updates
2016-10-06 20:59:10 +02:00