Commit graph

199 commits

Author SHA1 Message Date
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
bors-servo
141b5d038f auto merge of #4526 : servo/servo/deref-1, r=Manishearth
This is a start towards fixing #3868. Not all callers have been fixed yet, so the `Deref` implementation remains for now.
2015-01-02 09:22:51 -07:00
Ms2ger
43eecf6e7a Stop using ptr.is_not_null() in script.
This method is deprecated in rust master; removing its users in advance will
make a future rust upgrade smoother.
2015-01-01 22:19:34 +01:00
Ms2ger
6077ed0ce8 Rename GlobalRoot::root_ref() to GlobalRoot::r() for consistency. 2015-01-01 20:38:04 +01:00
Ms2ger
1dad710063 Replace Root::deref() calls by Root::r() calls where possible.
This changes those calls that were already sound.
2015-01-01 20:36:43 +01:00
Ms2ger
c9f26dfd59 Rename Root::root_ref() to Root::r().
As it will be used much more widely after the upcoming changes, this limits
the effort reading and writing the method calls.
2015-01-01 20:36:43 +01:00
yodalee
bb087c238b use str to_jsval() now
xmlhttprequest.rs, CodegenRust.py
replace into_string().to_jsval() to to_jsval()

conversions.rs
DOMString to_jsval() use as_slice().tojsval() now
2015-01-01 02:17:33 +08:00
Bruno de Oliveira Abinader
bb577968e5 Codegen style fix 2014-12-30 12:40:49 -04:00
Bruno de Oliveira Abinader
7cca51b3b4 Codegen empty lines fix 2014-12-30 12:40:48 -04:00
Bruno de Oliveira Abinader
0721c624d9 Codegen indent fixes 2014-12-30 12:40:48 -04:00
Bruno de Oliveira Abinader
c950e3d61e Codegen whitespace fixes 2014-12-30 11:28:59 -04:00