bors-servo
da896b8299
auto merge of #2515 : saneyuki/servo/raw, r=jdm
...
Fix #2511
@jdm r?
2014-05-30 13:16:09 -04:00
Ms2ger
b448972d52
Throw DOMExceptions where appropriate ( fixes #2518 ).
2014-05-30 18:14:02 +02:00
Tetsuharu OHZEKI
106627e6eb
"JS<T>::from_raw" should accept "*T" instead of "*mut T"
2014-05-31 01:10:19 +09:00
Tetsuharu OHZEKI
92da2f16fc
Implement OptionalSettable for 'Cell<Option<JS<U>>>'.
2014-05-30 03:53:07 +09:00
Tetsuharu OHZEKI
6d9dcd087a
Make 'Cell<Option<JS<T>>>' traceable.
2014-05-30 03:41:06 +09:00
Tetsuharu OHZEKI
5ae7c4cbb1
Make 'RefCell<Vec<JS<T>>>' traceable.
2014-05-30 03:38:41 +09:00
Tetsuharu OHZEKI
bf05e6a9e2
Make 'Cell<JS<T>>' traceable.
2014-05-30 03:38:41 +09:00
Tetsuharu OHZEKI
da703d6a80
JS<T> contains '*T' instead of RefCell.
2014-05-30 03:38:40 +09:00
Tetsuharu OHZEKI
3e558fdcb1
JSRef<T> & Root<T> contains '*T' instead of RefCell.
2014-05-30 03:18:40 +09:00
Manish Goregaokar
6f728cb2ca
Enable inline event handlers for XHR, and add most progressevent calls
2014-05-29 21:39:15 +05:30
Manish Goregaokar
5f860bb612
Request header and postdata support for XHR
2014-05-28 20:49:13 +05:30
Josh Matthews
003e5bcd46
Port modern callback handling code from Gecko, and copy related WebIDL parser bits too.
2014-05-27 20:43:52 +02:00
Josh Matthews
33955f0ab2
Implement window forwarding for body event handlers.
2014-05-27 20:43:48 +02:00
Josh Matthews
2d6153772c
Add stubs for inline event handler manipulation.
2014-05-27 20:43:48 +02:00
Ms2ger
51d2891c9b
Make GetProtoOrIfaceArray return the actual type.
2014-05-26 20:19:38 +02:00
Ms2ger
1834855ff5
Pass an immutable pointer to the private in NewProxyObject.
2014-05-26 20:18:00 +02:00
Ms2ger
d5cb4377ef
Use *mut T for the T* pointers in SpiderMonkey.
2014-05-26 18:19:44 +02:00
Manish Goregaokar
4c997e8934
Implement CustomEvent ( #2173 )
2014-05-24 02:51:22 +05:30
Ms2ger
eaedeb07cb
Update Rust.
2014-05-22 16:36:40 -06:00
bors-servo
28e3c17340
auto merge of #2442 : Manishearth/servo/xhr-async, r=jdm
...
(Note that only `getAllResponseHeaders()` is supported at the moment, I'll be adding the other header methods later.)
2014-05-20 12:16:35 -04:00
bors-servo
ca9396ff9c
auto merge of #2434 : Ms2ger/servo/contentWindow, r=jdm
2014-05-20 11:43:46 -04:00
Manish Goregaokar
533fab46f9
Async XHR GET with basic response header support
2014-05-20 21:01:12 +05:30
bors-servo
58283527bf
auto merge of #2452 : Ms2ger/servo/getDefaultRetval, r=jdm
2014-05-16 10:25:51 -04:00
Ms2ger
fcd98e1c0d
Stop returning a default return value from getRetvalInfo.
...
This is now unused.
2014-05-16 12:10:57 +02:00
Ms2ger
7abbef8919
Remove getDefaultRetval.
...
getDefaultRetval was supposed to be used after throwing an exception on the
ErrorResult outparam in C++. However, as we throw exceptions through the
return value in Servo, we don't need it at all.
2014-05-16 12:00:59 +02:00
Glenn Watson
7cba2f1738
Remove unused imports for UnionTypes codegen. Fixes #2440 .
2014-05-16 08:46:20 +10:00
Ms2ger
8182105204
Use JS_ObjectToOuterObject in wrap callbacks.
2014-05-15 20:58:51 +02:00
Cameron Zwarich
b8d423d931
Switch to using ContravariantLifetime in JSRef<'a, T>.
...
Since ContravariantLifetime doesn't take up any storage space, this
means that JSRef will be a single word. This fixes #2333 .
2014-05-14 14:13:58 -07:00
Ms2ger
85285113e4
Instate a pre-wrap hook that outerizes its argument, to satisfy an undocumented JSAPI requirement.
2014-05-14 17:39:13 +02:00
bors-servo
288550a2bf
auto merge of #2428 : zwarich/servo/remove-add-html-element, r=jdm
...
We can just use the defaults for all of the HTML elements for now and
deal with the nonstandard behavior later. This fixes #2207 .
2014-05-14 01:25:13 -04:00
Cameron Zwarich
a44e9e8e6c
Remove addHTMLElement from Bindings.conf.
...
We can just use the defaults for all of the HTML elements for now and
deal with the nonstandard behavior later. This fixes #2207 .
2014-05-13 21:40:36 -07:00
Ms2ger
30fcf7ed61
Remove the isOptional argument and the dealWithOptional return value from getJSToNativeConversionTemplate.
...
Note that dictionaries currently don't support members without default values
right now.
This commit does not change the generated code.
2014-05-10 11:00:01 +02:00
Ms2ger
6ed924f515
Remove the argcAndIndex argument from instantiateJSToNativeConversionTemplate.
...
This commit does not change the generated code.
2014-05-10 10:50:10 +02:00
Guro Bokum
04c807dd53
Convert as many of Page's RefCell fields to Cell as possible ( fixes #1990 ).
2014-05-09 23:52:06 +02:00
Manish Goregaokar
b40d8b4d53
Basic synchronous GET with XHR
2014-05-09 20:39:54 +05:30
Cameron Zwarich
20fa4d7e11
Remove an unused field from CodegenRust.py.
...
The defaultVisibility field was cloned from the C++ implementation,
where it tracks the difference between struct and class visibility.
Since no similar concept exists in Rust, it should be removed.
2014-05-08 13:59:53 -07:00
Manish Goregaokar
2f376a1104
Add ProgressEvent interface
2014-05-08 20:41:51 +05:30
bors-servo
86a6de209e
auto merge of #2346 : gsingh93/servo/master, r=jdm
2014-05-07 18:58:18 -04:00
Gulshan Singh
fb0c433b70
Add Performance object to Window and implement Performance::Now()
2014-05-07 17:30:33 -04:00
Ms2ger
0ab3444af9
Add support for DOMString in unions ( fixes #2324 ).
2014-05-07 17:30:32 -04:00
Ms2ger
87008a5ae1
Remove unused zip_copies.
2014-05-07 12:29:26 +02:00
Glenn Watson
51ef2f06ba
Rename from_unrooted to from_temporary. Fixes #2332 .
2014-05-07 09:25:32 +10:00
bors-servo
8d1b9db5aa
auto merge of #2343 : Ms2ger/servo/String-union, r=jdm
2014-05-06 10:25:23 -04:00
Ms2ger
590a8ac824
Add support for DOMString in unions ( fixes #2324 ).
2014-05-06 15:51:17 +02:00
Ms2ger
8ea3cbf18a
Enter a compartment when calling callbacks.
2014-05-06 12:16:03 +02:00
Ms2ger
0016b1839e
Use a single JSContext per JSRuntime.
...
The long-term plan for SpiderMonkey is to eliminate JSContexts by merging
(most of) it into JSRuntime, so to future-proof our code, we should avoid
creating multiple JSContexts for the same JSRuntime.
However, this implies we'll have to use the same JSContext for objects in
different compartments, so we need to enter compartments. This is done by
using the with_compartment function.
2014-05-05 19:41:02 +02:00
bors-servo
f642d5951a
auto merge of #2299 : Ms2ger/servo/getJSToNativeConversionTemplate-cleanup, r=jdm
2014-05-05 09:43:18 -04:00
Manish Goregaokar
1008a536a7
Fix some unused_mut/unused_result warnings
2014-05-05 15:43:29 +05:30
Ms2ger
262dc30c18
Assign into the argument binding directly in instantiateJSToNativeConversionTemplate.
2014-05-05 11:36:52 +02:00
Ms2ger
aed95dfd94
Move the assignment outside the if when dealing with optional arguments.
2014-05-05 11:36:52 +02:00