Commit graph

107 commits

Author SHA1 Message Date
Tom Schuster
73e67568c1 Add FormData constructor 2013-11-24 22:37:28 +01:00
Tom Schuster
586dd6aed6 Add some more Blob methods/types 2013-11-15 17:56:11 +01:00
Tetsuharu OHZEKI
f5ef4365f4 Stop passing DOMStrings via borrowed pointer. (#1201) 2013-11-14 20:35:36 +09:00
Ms2ger
08afc6d19d Don't pass nullable strings to native DOM methods that want non-nullable strings. Fixes #1207. 2013-11-12 13:57:18 +01:00
Ms2ger
803cd4b7cf Make DOMString represent a non-nullable string. 2013-11-12 13:32:53 +01:00
Ms2ger
793d87f07d Rewrite jsval_to_str and introduce jsval_to_domstring. 2013-11-09 14:49:15 +01:00
Ms2ger
610d1649cd Introduce jsid_to_str to simplify jsval_to_str callers that have an id. 2013-11-09 14:05:53 +01:00
Ms2ger
edd9c1d5eb Remove WrapNativeParent and nearby cleanup. 2013-11-06 21:56:36 +01:00
Ms2ger
4074412107 Pass a Reflector to WrapNewBindingObject instead of a Reflectable, and rename it GetReflector. 2013-11-06 17:52:59 +01:00
Josh Matthews
bb97fd13f3 Add Event and EventTarget hierarchy via gross AbstractFoo mechanism. 2013-11-05 12:58:28 -05:00
Josh Matthews
7ecf5abbbd Generate code for handling callbacks. Implement add/removeEventListener and hacky dispatchEvent proof-of-concept. 2013-11-05 12:58:28 -05:00
Josh Matthews
06b1db8818 Import unmodified callbacks-related codegen source from Gecko. 2013-11-05 12:57:02 -05:00
Keegan McAllister
e2b7885b73 fmt! -> format! 2013-10-31 14:58:55 -06:00
Ms2ger
25cae74093 Remove unused aTriedToWrap argument. 2013-10-17 16:43:28 +02:00
Bobby Holley
c4bbc4cd37 Introduce mutable/immutable variants of reflector() with named lifetimes, and kill unsafe casts. 2013-10-10 13:11:24 +02:00
Bobby Holley
6bf740d967 Rename {get,set}_wrapper to {get,set}_jsobject. v1 2013-10-09 12:13:18 +02:00
Bobby Holley
62ddac8b6f Rename get_wrappercache() to reflector(). v1
I also updated some variable names in the codegen.
2013-10-09 12:11:25 +02:00
Bobby Holley
0a0599ad9b Rename CacheableWrapper to Reflectable. 2013-10-09 12:03:18 +02:00
Josh Matthews
bc81716c30 Make proxy finalizers retrieve the DOM object from the right slot. 2013-10-02 01:43:14 -04:00
Josh Matthews
cb826f9920 Make proxy bindings generate trace and finalization hooks. 2013-09-30 22:14:27 -04:00
Keegan McAllister
73c1a12f30 bindings: Return errors in Result rather than setting an out parameter
Fixes #909.
2013-09-18 18:07:37 -07:00
Keegan McAllister
4b0680a136 Replace our rust_box with std::unstable::raw::Box
This will keep us in sync with compiler changes.  In fact we had the 'prev' and
'next' fields in the wrong order (but we aren't using them).
2013-09-18 14:57:12 -07:00
Keegan McAllister
68ddc6b4ab Make DOMString an alias for Option<~str>
Fixes #898.
2013-09-18 14:46:42 -07:00
Josh Matthews
d465abdb1c Make all DOM manipulation wait until it's safe to do so (ie. all reflows for the page have completed). Fix a race where a newly-initiated reflow would be considered complete when receiving the completion notice for the previous reflow. 2013-09-16 23:41:34 -04:00
Josh Matthews
a410651fba Make Element.set_attr require an AbstractNode so we can always downcast. 2013-09-12 14:40:00 -07:00
bors-servo
5aa207a7f7 auto merge of #912 : brson/servo/longcat, r=jdm
This also comes with a longcat demo, including about 35k of images that I don't know the copyright status of.
2013-09-11 23:49:02 -07:00
Brian Anderson
42c6a53148 Implement getters and setters for img width and height properties 2013-09-11 22:08:44 -07:00
Josh Matthews
636c30affe Add trace hooks for Window and Document, and remove explicit rooting for the root DOM node. Fixes #901. 2013-09-11 12:18:23 -07:00
Josh Matthews
da599c6ccf Make the global object be the Window object. Fixes #833. 2013-09-09 10:25:39 -07:00
Brian Anderson
13a3865e4e Update rust 2013-09-06 15:14:22 -07:00
bors-servo
3afcddcc67 auto merge of #820 : jdm/servo/tracehook, r=metajack 2013-09-04 10:33:50 -07:00
Josh Matthews
329f92a41d Add trace hooks for all generated derivatives of Node. 2013-09-04 13:13:03 -04:00
Simon Sapin
0c726b4581 Upgrade to rustc 0.8-pre (0ac3e02 2013-08-30 05:45:45 -0700) 2013-09-02 17:25:35 +01:00
Brian Anderson
9624148f18 Merge remote-tracking branch 'origin/master' into HEAD
Conflicts:
	src/components/script/dom/bindings/proxyhandler.rs
	src/components/script/dom/bindings/text.rs
2013-08-29 16:04:52 -07:00
Brian Anderson
1026556477 Update Rust 2013-08-29 15:36:36 -07:00
Josh Matthews
65c993e7e6 Generate bindings for HTMLSelectElement. 2013-08-28 19:41:08 -04:00
Josh Matthews
d31e308d3f Remove many long ugly lists of imports of HTML element types. They can now be obtained via dom::types::*, which is autogenerated. 2013-08-27 17:38:27 -04:00
Josh Matthews
48ce912757 Generate bindings for HTMLMapElement. 2013-08-26 17:25:10 -04:00
Josh Matthews
39772f0bf4 Generate bindings for HTMLHeadingElement. 2013-08-26 17:09:24 -04:00
Josh Matthews
e71b3e67a4 Generate bindings for HTMLFrameSetElement. 2013-08-26 16:36:24 -04:00
Josh Matthews
e552cfd4ce Generate bindings for HTMLFrameElement. 2013-08-26 16:25:02 -04:00
Josh Matthews
1b5f48abe1 Generate bindings for HTMLFieldSetElement. 2013-08-26 15:51:19 -04:00
Josh Matthews
7e9caddb39 Generate bindings for HTMLDirectoryElement and HTMLEmbedElement 2013-08-26 15:14:35 -04:00
Josh Matthews
f68639755d Generate bindings for HTMLDataListElement. 2013-08-26 12:52:37 -04:00
Josh Matthews
b36ae3b0df Generate bindings for HTMLButtonElement. 2013-08-26 12:29:07 -04:00
Tetsuharu OHZEKI
4fc2f74139 Generate bindings for HTMLProgressElement. 2013-08-24 10:16:42 +09:00
Tetsuharu OHZEKI
6b764440d7 Generate bindings for HTMLLIElement. 2013-08-24 00:43:44 +09:00
Tetsuharu OHZEKI
14bdd21ed8 Generate bindings for HTMLInputElement. 2013-08-24 00:25:26 +09:00
Tetsuharu OHZEKI
c2391fe5ff Generate bindings for HTMLTableColElement. 2013-08-24 00:25:17 +09:00
Tetsuharu OHZEKI
d86d38c584 Generate bindings for HTMLTableCellElement. 2013-08-24 00:25:06 +09:00