Commit graph

122 commits

Author SHA1 Message Date
Josh Matthews
e2c4f5ed67 Move everything unrelated to the frame tree out of Page and into Document or Window. Reduce the API surface of Page to a bare minimum to allow for easier future removal. 2015-03-03 16:25:40 -05:00
Ms2ger
5a1e6b772c Fix string default values. 2015-03-02 20:54:55 +01:00
bors-servo
184d32b519 auto merge of #5103 : Ms2ger/servo/from_actual, r=jdm 2015-02-28 13:33:49 -07:00
bors-servo
5eaf1144c3 auto merge of #5099 : Ms2ger/servo/exceptions, r=saneyuki 2015-02-28 11:09:55 -07:00
Ms2ger
ca21675359 Use the correct lifetime bounds for FooCast::from_actual. 2015-02-28 19:06:04 +01:00
Ms2ger
4873682a3c Rename FailureUnknown to JSFailed. 2015-02-28 18:20:41 +01:00
bors-servo
1f53d30f85 auto merge of #5094 : chmanchester/servo/binarynames, r=jdm 2015-02-28 09:57:58 -07:00
Ms2ger
d24a948142 Fix a typo in argument_type. 2015-02-28 16:41:38 +01:00
Chris Manchester
c81f1cc541 Add support for BinaryName attribute to servo's codegen (fixes #4435) r=jdm 2015-02-27 18:28:01 -08:00
Ms2ger
931d535f52 Mark some unused arguments as unused in bindings. 2015-02-22 17:54:08 +01:00
Ms2ger
c12b4029aa Only unwrap the object once when finalizing.
Previously, we had 'value' and 'this' locals, both storing a pointer to the
DOM object, for no good reason.
2015-02-22 16:32:36 +01:00
bors-servo
172db80703 auto merge of #4882 : chmanchester/servo/stringifiers, r=Ms2ger 2015-02-20 13:01:02 -07:00
Chris Manchester
00f863b4fe Add stringifier method support to CodegenRust.py (fixes #1986)
Add a stringifier to URLUtils (Location). (fixes #4605)

wpt metadata updates for #4605
2015-02-20 11:35:16 -08:00
Ms2ger
6d30ec77c8 Replace uint/int by usize/isize in various places. 2015-02-20 14:45:47 +01:00
Ms2ger
9c863a6bd4 Pass isize to ptr.offset(). 2015-02-20 14:45:47 +01:00
Ms2ger
a3fedee46e Return usize from IDLInterface::get_prototype_depth.
It is used as an index into an array.
2015-02-20 14:45:47 +01:00
Ms2ger
21a1143dd1 Use u32 for reserved slot indices.
This is what the JSAPI expects.
2015-02-20 14:45:46 +01:00
Ms2ger
f75f279804 Stop casting the right-hand side of shifts to uint.
This is no longer required.
2015-02-20 14:45:46 +01:00
Ms2ger
81eab460b1 Use the try macro to initialize dictionaries. 2015-02-20 10:39:40 +01:00
Ms2ger
c58213b698 Remove the Option<Self> arguments from IDLInterface. 2015-02-19 09:52:48 +01:00
Prabhjyot Singh Sodhi
ca146ccfa6 Porting Gecko's JSToNativeConversionInfo changes to Servo's codegen
Fixes #4800
2015-02-18 19:37:17 +05:30
Ms2ger
0e11178d66 Replace the FooCast traits by structs.
This should allow us to remove most type annotations in the DOM.
2015-02-16 00:20:16 +01:00
Ms2ger
c54e79b2f2 Fix indentation in InheritTypes. 2015-02-16 00:19:18 +01:00
Ms2ger
746c3ebd7d Improve the formatting for FromJSValConvertible implementations in UnionTypes. 2015-02-15 23:18:37 +01:00
Ms2ger
b5440a6257 Replace squirrel_away_unique by boxed::into_raw. 2015-02-12 22:01:06 +01:00
Ms2ger
147dadce89 Implement an Unrooted smart pointer to replace JS when it is not traced. 2015-02-06 12:33:32 +01:00
Ms2ger
444e76c397 Remove the to_js methods.
They are unused.
2015-02-03 15:12:01 +01:00
bors-servo
462940fc2a auto merge of #4613 : saneyuki/servo/layoutjs, r=jdm
#4571
2015-01-31 16:24:48 -07:00
Tetsuharu OHZEKI
80a4911f9c Add BarCast::to_layout_js<T>(). 2015-02-01 01:54:37 +09:00
Manish Goregaokar
5c9b1019a9 Move FromJSValConvertible to associated types (avoids old impl check) 2015-01-31 16:05:16 +05:30
Ms2ger
f5412355b1 Use snake case for arguments and locals in CGGetPerInterfaceObject. 2015-01-30 16:10:45 +01:00
Ms2ger
10ce1c8df5 Use snake case for arguments and locals in CGCreateInterfaceObjectsMethod. 2015-01-30 16:09:43 +01:00
Ms2ger
1056ea320b Use snake case for arguments and locals in CGWrapMethod. 2015-01-30 16:08:24 +01:00
Ms2ger
36ce24454c Rename GetContext to get_context. 2015-01-29 21:13:15 +01:00
Ms2ger
bbf1359024 Rename WrapCallThisObject to wrap_call_this_object. 2015-01-29 21:12:00 +01:00
Ms2ger
cfbe464428 Rename GetCallableProperty to get_callable_property. 2015-01-29 21:09:52 +01:00
Ms2ger
d752cdc44f Rename CreateDOMGlobal to create_dom_global. 2015-01-29 19:40:39 +01:00
Ms2ger
69c4c8223c Rename HasPropertyOnPrototype to has_property_on_prototype. 2015-01-29 19:12:40 +01:00
Ms2ger
59909efff1 Rename IsPlatformObject to is_platform_object. 2015-01-29 19:10:51 +01:00
Ms2ger
a0f5250cb8 Rename GetArrayIndexFromId to get_array_index_from_id. 2015-01-29 19:06:38 +01:00
Ms2ger
747b6c4262 Rename GetPropertyOnPrototype to get_property_on_prototype. 2015-01-29 19:03:36 +01:00
Ms2ger
04f5dea19f Rename ThrowingConstructor to throwing_constructor. 2015-01-29 18:59:48 +01:00
Ms2ger
d7af3da919 Rename CreateInterfaceObjects2 to do_create_interface_objects. 2015-01-29 18:48:48 +01:00
Ms2ger
23813577d1 Use snake case for the members of NativeProperties.
Note that the codegen uses the names of the Python fields to initialize the
Rust struct.
2015-01-29 18:41:30 +01:00
Ms2ger
b4b59df5e4 Rename GetProtoOrIfaceArray to get_proto_or_iface_array. 2015-01-29 18:29:07 +01:00
Ms2ger
009cc87b6a Rename getOwnPropertyNames_ and enumerate_ to get_own_property_names and enumerate. 2015-01-29 17:28:07 +01:00
Ms2ger
bcd9ca6081 Rename FillPropertyDescriptor to fill_property_descriptor. 2015-01-29 17:28:07 +01:00
Ms2ger
0b9549746b Rename GetExpandoObject to get_expando_object. 2015-01-29 17:28:07 +01:00
Ms2ger
f84cbd4025 Rename _obj_toString to object_to_string. 2015-01-29 17:28:06 +01:00
Ms2ger
6920aa970d Rename delete_ to delete. 2015-01-29 17:28:06 +01:00