Commit graph

216 commits

Author SHA1 Message Date
Anthony Ramine
abc01d598a Add script::dom::utils::validate_qualified_name() 2015-04-08 10:22:28 +02:00
Anthony Ramine
c557736d26 Fix xml_name_type()
Names with a trailing colon are not qualified names.
2015-04-06 14:12:20 +02:00
Ms2ger
1604515fd9 Fix various build warnings. 2015-03-20 17:57:49 +01:00
Tim Cuthbertson
0052a27b1a Free the interface prototype array when Window is finalized
Fixes #1871
2015-03-20 22:14:14 +11:00
Ms2ger
5f15eb5fbf Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev. 2015-03-18 13:18:31 -04:00
Chris Double
2af19b2675 Fix #2108 by renaming unwrap functions to native_from_reflector
As noted by @bholley. "unwrap" is confusing because we are
both stripping off wrappers *and* getting a native from a
reflector. Changing the "unwrap" usage to "native_from_reflector"
for clarity.

This renames 'unwrap' to 'native_from_reflector' and
'unwrap_jsmanaged' to 'native_from_reflector_jsmanaged'.
2015-03-12 19:15:12 +13:00
Zack Slayton
08ac0766ed Use new if let syntax wherever possible. Fixes #4153. 2015-03-10 09:18:55 -04:00
Ms2ger
6d30ec77c8 Replace uint/int by usize/isize in various places. 2015-02-20 14:45:47 +01:00
Ms2ger
b5440a6257 Replace squirrel_away_unique by boxed::into_raw. 2015-02-12 22:01:06 +01:00
Ms2ger
d752cdc44f Rename CreateDOMGlobal to create_dom_global. 2015-01-29 19:40:39 +01:00
Ms2ger
d0627a2592 Remove unused IsConvertibleToCallbackInterface. 2015-01-29 19:40:38 +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
ab52927ac5 Use snake case for the local in get_property_on_prototype. 2015-01-29 19:04:26 +01:00
Ms2ger
747b6c4262 Rename GetPropertyOnPrototype to get_property_on_prototype. 2015-01-29 19:03:36 +01:00
Ms2ger
1af1302010 Use snake case for the local in initialize_global. 2015-01-29 19:01:10 +01:00
Ms2ger
04f5dea19f Rename ThrowingConstructor to throwing_constructor. 2015-01-29 18:59:48 +01:00
Ms2ger
4d1cbae611 Use snake case for arguments to and locals in create_interface_prototype_object. 2015-01-29 18:59:02 +01:00
Ms2ger
23743e3c20 Rename CreateInterfacePrototypeObject to create_interface_prototype_object. 2015-01-29 18:57:53 +01:00
Ms2ger
ffaffd9df8 Rename Define{Constants, Methods, Properties} to define_{constants, methods, properties}. 2015-01-29 18:57:08 +01:00
Ms2ger
b336b024f7 Use snake case for arguments to and locals in create_interface_object. 2015-01-29 18:54:30 +01:00
Ms2ger
47cd2d7eb4 Rename CreateInterfaceObject to create_interface_object. 2015-01-29 18:53:22 +01:00
Ms2ger
38baa130d8 Use snake case for the arguments to do_create_interface_objects. 2015-01-29 18:51:56 +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
bfddd1ec53 Replace the 'GlobalStaticData' free function by a 'new' static member function. 2015-01-29 18:27:31 +01:00
bors-servo
d373f8dc26 auto merge of #4739 : Manishearth/servo/warning-patrol, r=Ms2ger 2015-01-28 02:27:50 -07:00
bors-servo
1a2a08aa50 auto merge of #4717 : Ms2ger/servo/doc-proxy, r=saneyuki 2015-01-28 01:48:52 -07:00
Manish Goregaokar
b8fb725af2 raw_pointer_deriving -> raw_pointer_derive 2015-01-28 13:54:18 +05:30
Josh Matthews
95fc29fa0d Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. 2015-01-28 10:16:49 +10:00
Ms2ger
238f3e2d91 Require documentation for all code in dom::bindings (excluding dom::bindings::codegen). 2015-01-25 22:01:04 +01: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
Guillaume Bort
5fe3a3e54f Fix #3936 – {Window,WorkerGlobalScope}.set{Timeout,Interval}(DOMString) 2015-01-07 11:39:15 +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
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
Manish Goregaokar
d761877ef6 Add inheritance-checking lint 2014-12-27 02:53:35 +05:30
Amanda Watson
582ba9d796 GlobalRef passed by value in reflect_dom_object, reflect_node #4165 2014-12-20 16:20:53 -08:00
Ms2ger
96180ec3ad Move unwrap_jsmanaged and related machinery to conversions.rs. 2014-12-20 14:51:14 +01:00
Ms2ger
b8c2573f4d Remove the proto_{id,depth} arguments from unwrap_jsmanaged.
Instead, we infer them from the type we're unwrapping into. This will prevent
any mismatches between the type we return and the type we check for.
2014-12-20 13:48:21 +01:00
Ms2ger
e1dae2f59b Use the try macro in unwrap_jsmanaged. 2014-12-20 13:42:38 +01:00
Ms2ger
e2b75670bd Rename the PrototypeList enums to fix case build warnings. 2014-12-18 10:33:57 +01:00
Ms2ger
466faac2a5 Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d. 2014-12-17 15:19:45 -05:00
Michael Booth
2cbf5a3671 Updated reflect_dom_object to be passed by value 2014-11-30 19:47:52 +00:00
Ms2ger
c0016c7438 Use Cell::as_unsafe_cell in Reflector::rootable. 2014-11-14 11:56:00 +01:00
Jack Moffitt
d1b433a3b3 Rust upgrade to rustc hash b03a2755193cd756583bcf5831cf4545d75ecb8a 2014-11-13 11:17:43 +10:00
Ms2ger
aa83388f38 Remove VoidVal.
There are no undefined constants in IDL.
2014-11-08 18:00:04 +01:00