Commit graph

144 commits

Author SHA1 Message Date
bors-servo
5eb7d1cf30 auto merge of #1814 : Ms2ger/servo/more-primitive-setters, r=jdm 2014-03-05 09:55:35 -05:00
bors-servo
da6a571f9e auto merge of #1811 : Ms2ger/servo/Wrap_, r=jdm 2014-03-05 09:31:44 -05:00
Ms2ger
1608f842e9 Rewrite the codegen for nullable primitives to use JSValConvertible. 2014-03-04 18:55:58 +01:00
Ms2ger
d063601ba0 Implement support for returning nullable primitive types. 2014-03-04 17:30:19 +01:00
Ms2ger
3d28f31ea9 Use JSValConvertible::to_jsval from codegen. 2014-03-04 17:08:56 +01:00
Ms2ger
8acf36c6d4 Get the Page from the global object for ResolveProperty. 2014-03-04 15:28:12 +01:00
Ms2ger
d3ca4afaf5 Get the Page directly off the Window in CreateBindingJSObject. 2014-03-04 15:17:12 +01:00
Ms2ger
787108deaf Pass &JS<Window> to the Wrap functions in codegen. 2014-03-04 15:08:44 +01:00
Ms2ger
b6138580d3 Stop passing the scope argument to global object bindings' Wrap functions. 2014-03-04 13:24:16 +01:00
Ms2ger
12380edc63 Merge the Wrap and Wrap_ functions in codegen. 2014-03-04 13:17:36 +01:00
Ms2ger
99574f14d9 Return a JS<Window> from global_object_for_{dom,js}_object. 2014-03-04 11:41:46 +01:00
Ms2ger
c8bd9615f4 When calling constructors, retrieve the global object from the callee rather than the JSContext. 2014-03-04 10:46:49 +01:00
Ms2ger
3530f1e107 Remove support for external (i.e. XPIDL) interfaces. 2014-03-03 19:49:08 +01:00
bors-servo
b8de1b3ca7 auto merge of #1791 : Ms2ger/servo/conversions, r=jdm 2014-03-03 13:13:35 -05:00
Ms2ger
bec0dcd023 Remove unused argument to CreateInterfaceObjects2. 2014-03-03 16:00:49 +01:00
Ms2ger
6bc2c79f92 Pass a JSContext to JSValConvertible::from_jsval. 2014-03-02 22:30:54 +01:00
Josh Matthews
fa542e5de7 De-@mut the script crate. 2014-02-28 13:42:03 -05:00
Saurabh Anand
5c5cb3e9a7 Move Error, Fallible, ErrorResult out of utils.rs (fixes #1749) 2014-02-28 13:32:00 +05:30
bors-servo
421ba1a856 auto merge of #1736 : sankha93/servo/issue1733, r=jdm 2014-02-26 17:52:36 -05:00
Sankha Narayan Guria
1e9fec9172 Merge master into this branch 2014-02-27 03:31:05 +05:30
lpy
f706123208 Move Traceable, trace_reflector from utils.rs to trace.rs.(fixes #1748) 2014-02-26 19:33:21 +08:00
Ms2ger
1c49319173 Remove support for some more obsolete configurations. 2014-02-25 14:41:17 +01:00
Ms2ger
3c7f9832f0 Remove support for workers-specific codegen. 2014-02-25 14:28:27 +01:00
Ms2ger
c96c7bab12 Remove support for some more obsolete configurations. 2014-02-25 13:45:58 +01:00
Ms2ger
8360aa24d6 Remove support for some obsolete configurations. 2014-02-25 13:30:36 +01:00
Josh Matthews
232ca59708 Address review comments. Fix union conversion result mistakes introduced in refactoring. 2014-02-24 17:20:37 -05:00
Josh Matthews
4cdb4df70c Remove commented bits that aren't necessary. 2014-02-24 15:56:38 -05:00
Josh Matthews
9f05f70754 Clean up TrySetTo interface to avoid mutable outrefs. 2014-02-24 15:56:38 -05:00
Josh Matthews
d590a327bd Implement WebIDL union support. 2014-02-24 15:56:38 -05:00
Josh Matthews
d0bfdbf150 Initial unmodified dump of Gecko's union codegen. 2014-02-24 15:56:38 -05:00
Josh Matthews
625325434b Implement JSManaged for DOM objects. 2014-02-24 15:16:42 -05:00
Sankha Narayan Guria
47e6e6ec8f Be more explicit in casts of generated bindings 2014-02-23 03:03:48 +05:30
Ms2ger
59184bf6e1 Move DOMString into servo_util. 2014-02-14 12:48:51 +01:00
Jack Moffitt
a7ef1cd35e Upgrade to latest Rust. 2014-01-12 19:45:45 -07:00
Patrick Walton
436b1e891d script: Eliminate the phantom type in Node, as it is no longer needed
for enforcing layout memory safety.
2013-12-17 18:07:41 -08:00
Ms2ger
29a7405b4e Report exceptions to JS when the DOM implementation fails.
As a bonus, adds some debugging statements.
2013-12-05 16:14:02 +01:00
Keegan McAllister
5157eac238 Warning police
And fix some formatting.
2013-11-25 13:29:34 -08:00
Tom Schuster
73e67568c1 Add FormData constructor 2013-11-24 22:37:28 +01:00
Tom Schuster
586dd6aed6 Add some more Blob methods/types 2013-11-15 17:56:11 +01:00
Tetsuharu OHZEKI
f5ef4365f4 Stop passing DOMStrings via borrowed pointer. (#1201) 2013-11-14 20:35:36 +09:00
Ms2ger
08afc6d19d Don't pass nullable strings to native DOM methods that want non-nullable strings. Fixes #1207. 2013-11-12 13:57:18 +01:00
Ms2ger
803cd4b7cf Make DOMString represent a non-nullable string. 2013-11-12 13:32:53 +01:00
Ms2ger
793d87f07d Rewrite jsval_to_str and introduce jsval_to_domstring. 2013-11-09 14:49:15 +01:00
Ms2ger
610d1649cd Introduce jsid_to_str to simplify jsval_to_str callers that have an id. 2013-11-09 14:05:53 +01:00
Ms2ger
edd9c1d5eb Remove WrapNativeParent and nearby cleanup. 2013-11-06 21:56:36 +01:00
Ms2ger
4074412107 Pass a Reflector to WrapNewBindingObject instead of a Reflectable, and rename it GetReflector. 2013-11-06 17:52:59 +01:00
Josh Matthews
bb97fd13f3 Add Event and EventTarget hierarchy via gross AbstractFoo mechanism. 2013-11-05 12:58:28 -05:00
Josh Matthews
7ecf5abbbd Generate code for handling callbacks. Implement add/removeEventListener and hacky dispatchEvent proof-of-concept. 2013-11-05 12:58:28 -05:00
Josh Matthews
06b1db8818 Import unmodified callbacks-related codegen source from Gecko. 2013-11-05 12:57:02 -05:00
Keegan McAllister
e2b7885b73 fmt! -> format! 2013-10-31 14:58:55 -06:00