Tetsuharu OHZEKI
aaa8c838d2
Use Cell/RefCell for interior mutability of NodeList, Performance, TestBinding, and ValidityState.
2014-05-30 03:54:23 +09:00
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
Ms2ger
d5cb4377ef
Use *mut T for the T* pointers in SpiderMonkey.
2014-05-26 18:19:44 +02:00
Ms2ger
eaedeb07cb
Update Rust.
2014-05-22 16:36:40 -06:00
Ms2ger
ab8b62e28d
Add tests for return values of interface methods.
2014-05-16 16:53:54 +02:00
Ms2ger
590a8ac824
Add support for DOMString in unions ( fixes #2324 ).
2014-05-06 15:51:17 +02:00
Ms2ger
6cab06fee6
Use default methods to reduce code duplication for TestBinding.
2014-05-05 15:39:28 +02:00
Ms2ger
243814022e
Replace all ~"" with "".to_owned().
2014-05-03 22:17:45 +02:00
Josh Matthews
91278da9dd
Address review comments.
2014-05-03 14:18:31 -04:00
Josh Matthews
7b3e6d1f21
Remove all root collections.
2014-05-03 14:18:31 -04:00
Josh Matthews
522d3f167b
s/Unrooted/Temporary/g
2014-05-03 14:18:31 -04:00
Josh Matthews
76783b029e
Move WebIDL methods to traits implemented by JSRef types.
2014-05-03 14:18:30 -04:00
Josh Matthews
d7b96db33c
Implement safe rooting strategy via Unrooted, Root, JSRef, and JS.
2014-05-03 14:18:30 -04:00
Josh Matthews
ffdc3f5b32
Turn on GC all the time. Fix rooting errors during parsing and storing timers. Fix borrow errors during tracing.
2014-05-03 14:18:30 -04:00
bors-servo
b36b779d24
auto merge of #2290 : saneyuki/servo/export, r=jdm
...
- Fix #2128
- Take over from #2220
I didn't change `InterfaceTypes.rs` to `type.rs` because `type` is very common name which might be troublesome.
2014-05-01 23:34:39 -04:00
Ms2ger
8c879c8bf8
Implement WebIDL codegen for ByteString.
2014-05-01 22:02:53 +02:00
Tetsuharu OHZEKI
78856c87a4
Remove the 'pub use self::BindingDeclarations::*;' export.
2014-05-01 18:49:16 +09:00
bors-servo
32bceb3ae7
auto merge of #2244 : Ms2ger/servo/optional-rewrite, r=jdm
...
This moves all handling of `isOptional` (except `type.isCallback()`, which I believe @jdm is rewriting in #2204 ) into one place.
2014-04-28 10:46:46 -04:00
bors-servo
9f742a9462
auto merge of #2237 : Ms2ger/servo/union-fromjsvalconvertible, r=jdm
...
With bonus codegen tests.
2014-04-28 04:01:36 -04:00
Lars Bergstrom
948daf2422
This batch of changes upgrades Servo to work with the Rust upgrade as of
...
April 10, 2014. The main changes are to privacy, to work around the
issues with incorrect bounds on the libstd `Arc<Mutex<T>>`, and the
various API changes strewn throughout the libraries.
2014-04-27 15:46:12 -05:00
Ms2ger
54d2e8e235
Use handleOptional for interface conversion.
2014-04-27 20:55:21 +02:00
Ms2ger
89d4fac36e
Use handleOptional for the enumeration conversion.
2014-04-26 18:32:45 +02:00
Ms2ger
b73a87e955
Use handleOptional for the union conversion.
...
Note that unions didn't handle optional arguments correctly before.
2014-04-26 17:22:07 +02:00
Ms2ger
adcc7e694f
Increase codegen test coverage.
2014-04-26 16:41:09 +02:00
Josh Matthews
94dffca1e1
Remove all traces of WindowProxy. Implement basic browser context concept and outerizing of inner windows.
2014-04-22 10:57:25 -04:00
Ms2ger
4d20d1716d
Implement support for default values for enumeration arguments.
2014-04-18 11:08:21 +02:00
Ms2ger
fa653a5984
Introduce some (commented-out) tests for enumeration codegen.
2014-04-18 10:18:11 +02:00
Ms2ger
a52cffebeb
Use ToJSValConvertible to convert nullable enums to JSVal.
2014-04-06 19:51:12 +02:00
Ms2ger
ccaa46e4a3
Use ToJSValConvertible to convert enums to JSVal.
2014-04-06 19:42:39 +02:00
Ms2ger
acffed2dcd
Fix code generation for a null default value for nullable string arguments.
2014-03-20 22:51:31 +01:00
Ms2ger
59bcabb75e
Pass Option<T> for optional primitive arguments without a default value ( fixes #1813 ).
2014-03-19 19:05:59 +01:00
Ms2ger
84b0f45ed5
Use FooValue() functions.
2014-03-09 18:51:38 +01:00
Ms2ger
9fbfb1909c
Move JSVal into the jsval module.
2014-03-08 18:49:55 +01:00
Ms2ger
971a4c58bb
Pass Option<JSVal> for optional JSVals.
2014-03-07 12:40:25 +01:00
Ms2ger
54a59b9d38
Avoid a type error with a non-null default value for an optional nullable string argument.
2014-03-06 22:42:26 +01:00
Ms2ger
716e1ce144
Avoid a type error with a non-null default value for an optional nullable primitive argument.
2014-03-06 22:26:12 +01:00
Ms2ger
eab9fd765c
Add disabled tests for optional nullable arguments with non-null default values.
2014-03-06 22:18:49 +01:00
Ms2ger
9fe72eb379
Add interface codegen tests.
2014-03-06 19:05:14 +01:00
Ms2ger
48ebd2a5e3
Add tests for optional nullable arguments without default values.
2014-03-06 18:45:58 +01:00
Ms2ger
77f1224b24
Add some tests for string codegen.
2014-03-06 16:40:10 +01:00
Ms2ger
aa9a61a78c
Add tests for optional primitive arguments.
2014-03-04 18:34:24 +01:00
Ms2ger
d063601ba0
Implement support for returning nullable primitive types.
2014-03-04 17:30:19 +01:00
Ms2ger
595cd96f24
Extend and update primitive conversions.
2014-03-04 17:01:30 +01:00
Ms2ger
4166ff4794
Introduce a test IDL file.
2014-03-04 16:28:34 +01:00