Tamir Duberstein
a3d463093e
Avoid extra O(n) scan in validate_and_extract
...
Also `debug_assert!`s that `splitn` was called with the
correct `count` argument.
2015-05-26 13:26:26 -04:00
Simon Sapin
ef8edd4e87
Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.
2015-05-05 10:07:34 -04:00
Ms2ger
903305416a
Implement Clone for Copy types.
2015-04-28 23:31:10 +02:00
Anthony Ramine
7197052c0d
Uniformise root() methods
...
They now live in traits Rootable, OptionalOptionalRootable, OptionalRootable
and ResultRootable.
2015-04-28 09:22:45 +02:00
Ms2ger
e8b02acb1d
Pass Atom to Attr:new for the prefix argument.
2015-04-27 12:20:23 -07:00
Ms2ger
4d41f1c991
Stop using the deprecated range function.
2015-04-22 20:26:40 +02:00
Ms2ger
49393a8762
Update some URLs.
...
The HTML spec's division into pages is not stable, so it is safer to use the
URL without a specific page (which will redirect).
2015-04-14 10:44:51 +02:00
Chris Paris
d2b0d5e040
Support callback interfaces with constants.
2015-04-11 09:34:44 -10:00
Anthony Ramine
7b4f6126c8
Add script::dom::utils::validate_and_extract()
...
Accidentally fixes bugs about Document::createElementNS() where the
implementation of "validate and extract" used to check whether the local name
extracted from the qualified name was "xmlns" instead of the qualified name
itself.
2015-04-08 10:22:30 +02:00
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