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
Ms2ger
d7de6973c7
Rename defineProperty_ to define_property.
2015-01-29 17:28:06 +01:00
Ms2ger
4b0c4e5ba2
Rename getPropertyDescriptor to get_property_descriptor.
2015-01-29 17:28:05 +01:00
Ms2ger
505159a464
Import the util crate as util rather than servo_util.
...
This used to conflict with the util crate from the standard library, which
has long since been removed.
The import in layout has not been changed because of a conflict with the
util mod there.
2015-01-29 12:16:41 +01:00
Josh Matthews
95fc29fa0d
Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.
2015-01-28 10:16:49 +10:00
Ms2ger
01ed338746
Move to to_owned rather than into_string.
...
into_string has been removed from Rust.
2015-01-20 14:49:07 +01:00
Ms2ger
05c4e3b9f5
Stop using Vec::from_elem.
...
It is obsolete on Rust master.
2015-01-19 14:42:30 +01:00
Ms2ger
8efcca986c
Remove RethrowContentExceptions and related infrastructure.
...
We do not intend to implement the DOM in JS, so this code isn't necessary.
2015-01-10 20:22:03 +01:00
bors-servo
7800d98728
auto merge of #4566 : mattnenterprise/servo/globalref-by-value, r=Ms2ger
2015-01-08 13:12:55 -07:00
bors-servo
df6a7959df
auto merge of #4069 : guillaumebort/servo/fix/3936, r=jdm
2015-01-08 08:48:54 -07:00
Ms2ger
16c7060bc8
Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19.
2015-01-08 09:58:46 -05:00
Matt McCoy
85df7f0d6f
Fixes #4164 Make Constructor and new functions take GlobalRef by value
2015-01-07 18:52:41 -05:00
Guillaume Bort
5fe3a3e54f
Fix #3936 – {Window,WorkerGlobalScope}.set{Timeout,Interval}(DOMString)
2015-01-07 11:39:15 +01:00
Ms2ger
121904dd89
Slice some fixed-size arrays.
2015-01-04 11:59:50 +01:00