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
658dc8a501
Rename a couple of Promise methods
2017-09-21 15:35:04 +02:00
Clément DAVID
c5fe235112
order derivable traits lists
...
Ignoring :
- **generated**.rs
- python/tidy/servo_tidy_tests/rust_tidy.rs
2017-08-23 21:38:44 +02:00
Simon Sapin
a205c82264
Upgrade to rustc 1.21.0-nightly (599be0d18 2017-07-26)
2017-07-27 02:21:01 +02:00
Anthony Ramine
e566bc7b1c
Update the WebIDL parser
2017-06-09 13:57:30 +02:00
lucantrop
d6568e608b
removed instances of -> () in existing code
2017-03-13 17:38:33 +01:00
Anthony Ramine
31e9d81c0f
Make #[dom_struct] a proc_macro attribute
2017-02-24 01:50:51 +01:00
Ms2ger
fb8eb1db65
Add a object-in-union test.
2017-02-16 15:34:53 +01:00
Ms2ger
d5f8b35a5f
Use RootedTraceableBox for unions.
2017-02-16 15:27:16 +01:00
Ms2ger
f7e2f0e641
Use RootedTraceableBox for dictionaries.
2017-02-16 11:03:26 +01:00
Ms2ger
8ce9ca6243
Use Heap for dictionary and union members.
2017-02-16 11:03:21 +01:00
Ms2ger
6a6f339b29
Support dictionaries in unions.
...
Fixes #11612 .
2017-01-20 16:06:33 +01:00
Ms2ger
51df04d93e
Implement the incumbent global.
...
Fixes #10963 .
2017-01-17 12:57:02 +01:00
Ms2ger
cb47a7e403
Implement the entry global.
...
Partial fix for #10963 .
2017-01-06 12:56:35 +01:00
Alan Jeffrey
9be4fd56ce
Removed util.
2016-12-14 18:04:37 -06:00
Corey Farwell
449f6337d4
Rename Reflectable
to DomObject
.
...
Fixes https://github.com/servo/servo/issues/8473 .
2016-12-08 08:50:35 -10:00
Abelardo E. Mendoza
b372e7c98f
script creates methods taking '*mut JSContext' unsafe
...
rebase + marked the necessary new code as unsafe
2016-11-14 11:06:17 +01:00
Anthony Ramine
d8e92bb271
Rename Reflectable::global_scope to global
2016-10-06 21:36:41 +02:00
Anthony Ramine
b6bbd41e11
Remove GlobalRoot and GlobalRef
2016-10-06 21:36:00 +02:00
Anthony Ramine
996fd284e2
Use global_scope_from_context in TestBinding::PromiseNativeHandler
2016-10-06 21:35:59 +02:00
Anthony Ramine
907781eb75
Remove Reflectable::global
2016-10-06 21:35:58 +02:00
Anthony Ramine
02d38e74e9
Make Promise::Reject and Resolve take a &GlobalScope
2016-10-06 21:35:54 +02:00
Anthony Ramine
991801488c
Move timers to GlobalScope
2016-10-06 21:35:51 +02:00
Anthony Ramine
19108aa330
Pass a &GlobalScope to WebIDL static methods and constructors
2016-10-06 21:35:49 +02:00
Anthony Ramine
766010379e
Introduce GlobalScope::as_window
2016-10-06 21:35:45 +02:00
Anthony Ramine
ac5a4adf5f
Make Promise::new take a &GlobalScope
2016-10-06 21:35:40 +02:00
Anthony Ramine
ae6af5172b
Introduce Reflectable::global_scope
2016-10-06 21:35:38 +02:00
Anthony Ramine
fcb59d3057
Make reflect_dom_object take a &GlobalScope
2016-10-06 20:59:09 +02:00
Josh Matthews
e9c0606454
Remove maybe_ prefix from Promise methods.
2016-09-22 16:21:23 -04:00
Josh Matthews
498ccd41e8
Support an equivalent of Trusted<T> for Rc<Promise> objects named TrustedPromise.
2016-09-22 16:16:59 -04:00
Josh Matthews
27d44c8d10
Add a simple API to reject promises with DOM error values.
2016-09-22 16:16:58 -04:00
Josh Matthews
ae81ab3972
Create meaningful tests for native promise handlers.
2016-09-22 16:16:56 -04:00
Josh Matthews
f89355b85d
Add integration tests for interacting with promises from native code.
2016-09-22 16:16:53 -04:00
Josh Matthews
a1091772ec
Implement binding support for returning and accepting Promises in WebIDL.
2016-09-22 16:16:48 -04:00
Ms2ger
2d83e5a788
Implement the MozMap type.
...
Fixes #13144 .
2016-09-21 14:03:34 +02:00
Keith Yeung
3976d974fc
Properly generate typedef identities in unions
2016-09-07 21:48:46 -07:00
Anthony Ramine
6e1523f4ae
Compile WebIDL return type "object" to NonZero<*mut JSObject>
2016-08-30 19:07:13 +02:00
Anthony Ramine
897a81e95b
Improve some TestBinding methods
...
We make them return sensical things in a sensical way.
2016-08-30 19:06:41 +02:00
Malisa Smith
7fd65affab
bindings generator: support default ByteString values in dictionary
2016-08-10 10:50:36 -07:00
Emilio Cobos Álvarez
0e3d4ab407
layout: Expand animation test mode to support not force-ticking layout.
2016-08-05 14:42:45 -07:00
Malisa Smith
56bdc002fc
Union types now allow ByteString
2016-07-21 19:19:12 -07:00
bors-servo
4ae0897175
Auto merge of #12541 - jdm:seqseq, r=nox
...
Support sequences of sequences in generated bindings.
This fixes a blocker for #11897 . `unroll` recursively gets the inner type of any sequence type encountered, so it's inappropriate for codegen that only wants the immediate inner type. However, if a type identifies as a sequence and is nullable, we need to reach through the nullable wrapper first. Gecko does very similar things.
---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #12528 (github issue number if applicable).
- [X] There are tests for these changes
<!-- 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/12541 )
<!-- Reviewable:end -->
2016-07-21 14:24:52 -05:00
Josh Matthews
9ef848b65e
Support sequences of sequences in generated bindings.
...
unroll recursively gets the inner type of any sequence type encountered, so it's inappropriate for codegen that only wants the immediate inner type. However, if a type identifies as a sequence and is nullable, we need to reach through the nullable wrapper first. Gecko does very similar things.
2016-07-21 10:26:57 -04:00
Emilio Cobos Álvarez
0b67b218d0
style: Add a new Timer structure to the shared style context, and basic infrastructure for controlling animations.
2016-07-20 09:05:53 -07:00
Zhen Zhang
ab14777312
Remove DataSlice, fix #12249
2016-07-05 17:51:53 +08:00
Corey Farwell
22928f50ac
Refactor util::prefs
operations to be methods on static struct.
2016-07-02 16:43:39 -04:00
Josh Matthews
fbf6c7fc2b
Add a manual test for panicking while JS stack frames exist.
2016-06-22 09:35:19 -04:00
Josh Matthews
99e436eb05
Add a test that forces a crash. This makes it easy to manually check the output of a segfault with a complicated backtrace; the actual automation doesn't help us except to verify that the crash continues to happen as excepted.
2016-06-20 18:32:48 -04:00
Achal Shah
af325a9a3a
Update Blob::{new, new_inherited} to take Strings
2016-06-17 07:43:11 -07:00