Simon Sapin
aa15dc269f
Remove use of unstable box syntax.
...
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.
2017-10-16 17:16:20 +02:00
Anthony Ramine
f87c2a8d76
Rename Root<T> to DomRoot<T>
...
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.
2017-09-26 09:49:10 +02:00
Anthony Ramine
0e3c54c191
Rename dom::bindings::js to dom::bindings::root
2017-09-26 02:19:05 +02:00
Anthony Ramine
af2e83f378
Make Promise::reject_error sound
2017-09-22 02:15:22 +02:00
Anthony Ramine
5addc2dfa3
Make Promise::resolve_native actually sound
...
We shouldn't have to pass a raw JSContext pointer, and to enter the
promise's context's compartment by hand.
2017-09-21 16:00:48 +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
Fausto Núñez Alberro
6032940fb8
Change RequestInit origin type to ImmutableOrigin
2017-07-16 21:44:33 +02:00
Keith Yeung
6adc653083
Introduce service-worker mode
2017-06-22 23:48:07 -07:00
Anthony Ramine
cb2eb81208
Remove all internal mutability from Request
2017-04-03 12:39:07 +02:00
Ms2ger
f7e2f0e641
Use RootedTraceableBox for dictionaries.
2017-02-16 11:03:26 +01:00
bd339
0f1eb13e33
Don't lose information in Fetch API
...
Also update test expectations.
2017-01-09 14:52:14 +01:00
Corey Farwell
449f6337d4
Rename Reflectable
to DomObject
.
...
Fixes https://github.com/servo/servo/issues/8473 .
2016-12-08 08:50:35 -10: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
Keith Yeung
d99d26cf1f
Implement the constructor for EventSource
2016-11-11 14:50:37 -08:00
Raphael Nestler
d25b720c06
Add redirect_mode to RequestInit
2016-11-08 18:20:34 +01:00
Anthony Ramine
0b3ab875f4
Remove intrinsic Root::r()
2016-10-11 19:44:32 +02:00
Anthony Ramine
d8e92bb271
Rename Reflectable::global_scope to global
2016-10-06 21:36:41 +02:00
Anthony Ramine
907781eb75
Remove Reflectable::global
2016-10-06 21:35:58 +02:00
Anthony Ramine
1f8bb3a89f
Make Fetch take a &GlobalScope
2016-10-06 21:35:55 +02:00
Anthony Ramine
19108aa330
Pass a &GlobalScope to WebIDL static methods and constructors
2016-10-06 21:35:49 +02:00
Anthony Ramine
1fd470889d
Introduce GlobalScope::networking_task_source
2016-10-06 21:35:49 +02:00
Anthony Ramine
71236e168a
Introduce GlobalScope::core_resource_thread
2016-10-06 21:35:48 +02:00
Anthony Ramine
ac5a4adf5f
Make Promise::new take a &GlobalScope
2016-10-06 21:35:40 +02:00
Anthony Ramine
fcb59d3057
Make reflect_dom_object take a &GlobalScope
2016-10-06 20:59:09 +02:00
Ms2ger
cb7e6715fb
Provide the fetched data to fetch() consumers.
2016-10-06 14:21:03 +02:00
Ms2ger
ef25c86cd7
Squash some build warnings.
2016-10-04 16:36:34 +02:00
Jan Zerebecki
95a7482d26
Remove same-origin-data-url flag from fetch implementation
...
The spec removed it. Check the scheme instead, data is always same origin now,
except for workers.
This also updates the comments to make step numbers match the spec.
Closes #13362
2016-10-01 00:27:03 -07:00
Jeena Lee
3216009731
Implement the Fetch method
2016-09-29 08:19:41 -07:00