Commit graph

36 commits

Author SHA1 Message Date
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
2d6153772c Add stubs for inline event handler manipulation. 2014-05-27 20:43:48 +02:00
Ms2ger
d5cb4377ef Use *mut T for the T* pointers in SpiderMonkey. 2014-05-26 18:19:44 +02:00
Ms2ger
243814022e Replace all ~"" with "".to_owned(). 2014-05-03 22:17:45 +02:00
Josh Matthews
dfdda0098a Remove JS::get/get_mut to enforce sound rooting practices. 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
Ms2ger
8c879c8bf8 Implement WebIDL codegen for ByteString. 2014-05-01 22:02:53 +02: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
ac46cc6047 Implement FromJSValConvertible for JS<T>. 2014-04-15 21:33:18 +02:00
Ms2ger
8c4a3aa387 Use ToJSValConvertible for all conversions to JSVal. 2014-04-10 12:09:18 +02:00
Ms2ger
31eee791dd Upgrade rust. 2014-04-04 20:10:32 +02:00
Ms2ger
256a5cbf9f Replace GetReflector by an implementation of ToJSValConvertible. 2014-03-11 17:23:48 +01:00
Ms2ger
58382471d5 Replace jsval_to_str and jsval_to_domstring with a FromJSValConvertible implementation. 2014-03-10 16:31:13 +01:00
Ms2ger
17411db8ca Replace str_to_jsval and domstring_to_jsval by a ToJSValConvertible implementation. 2014-03-10 16:31:13 +01:00
Ms2ger
476699a114 Allow passing options to FromJSValConvertible::from_jsval. 2014-03-10 16:31:13 +01:00
Ms2ger
5f9e649491 Pass a JSContext to ToJSValConvertible::to_jsval. 2014-03-10 16:31:13 +01:00
bors-servo
52ab85c45d auto merge of #1861 : Ms2ger/servo/split-JSValConvertible, r=jdm
Later, we'll want to implement variations of the conversion *from* JS, but
not the conversion *to* JS.
2014-03-10 11:01:52 -04:00
Ms2ger
9709dce07a Use the JSVal member functions to replace JSVAL_IS_* and JSVAL_TO_*. 2014-03-09 18:52:05 +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
b18c5e518b Split JSValConvertible into two traits.
Later, we'll want to implement variations of the conversion *from* JS, but
not the conversion *to* JS.
2014-03-08 11:13:08 +01:00
Ms2ger
81a9b54bf8 Return Result from JSValConvertible::from_jsval. 2014-03-04 22:44:55 +01:00
Ms2ger
1608f842e9 Rewrite the codegen for nullable primitives to use JSValConvertible. 2014-03-04 18:55:58 +01:00
Ms2ger
595cd96f24 Extend and update primitive conversions. 2014-03-04 17:01:30 +01:00
Ms2ger
6d3c0bf763 Reorder implementations in conversions.rs. 2014-03-04 16:38:05 +01:00
Ms2ger
87715c14e1 Reimplement conversion to primitive types for correctness in the face of non-primitive arguments. 2014-03-02 22:56:07 +01:00
Ms2ger
6bc2c79f92 Pass a JSContext to JSValConvertible::from_jsval. 2014-03-02 22:30:54 +01:00
Josh Matthews
02d2ec5ccd Make JSVal conversions actually fallible. 2014-02-24 17:18:47 -05:00
Jack Moffitt
a7ef1cd35e Upgrade to latest Rust. 2014-01-12 19:45:45 -07:00
Tom Schuster
586dd6aed6 Add some more Blob methods/types 2013-11-15 17:56:11 +01:00
Brian Anderson
1026556477 Update Rust 2013-08-29 15:36:36 -07:00
Tetsuharu OHZEKI
9b284431ef Implement trait dom::bindings::conversions::JSValConvertible for f64. 2013-08-24 01:22:56 +09:00
Josh Matthews
09d50147f7 Autogenerate DOM bindings for Document. 2013-07-28 12:04:11 -04:00
Josh Matthews
65f9aefb78 Generate DOM bindings for UIEvent and MouseEvent. 2013-07-10 16:41:08 -04:00
Brian Anderson
56e5ba1b82 Update for language changes 2013-06-26 13:44:26 -07:00
Patrick Walton
bf82bc54f3 Separate the DOM and layout into separate crates. 2013-05-28 17:13:40 -07:00
Renamed from src/components/main/dom/bindings/conversions.rs (Browse further)