Commit graph

469 commits

Author SHA1 Message Date
Josh Matthews
cb826f9920 Make proxy bindings generate trace and finalization hooks. 2013-09-30 22:14:27 -04:00
bors-servo
7ffcc29d54 auto merge of #955 : kmcallister/servo/bindings, r=metajack 2013-09-18 19:39:47 -07: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
James Graham
29a75daa66 Add support for clearTimeout. 2013-09-19 00:02:41 +01: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
37787d55d0 Pass the AbstractNode into the Node.textContent setter. 2013-09-16 23:39:16 -04:00
Patrick Walton
76d288fe62 script: Implement image source setting from script and write a demo for this. 2013-09-12 18:03:11 -07: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
Jack Moffitt
227bb95213 Add document.createElement and document.createTextNode.
This re-uses the parser's node creation code. That could probably be put
somewhere nicer. Suggestions welcome!
2013-09-10 16:21:58 -06:00
Ilyong Cho
0d4cfd0eb9 Add node.appendChild 2013-09-10 12:39:58 +09:00
Ilyong Cho
bcd7c0b8c6 Add node.removeChild 2013-09-10 11:35:31 +09: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
Tom Schuster
e81fed7b58 Implement Navigator 2013-09-05 19:09:10 -04: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
bors-servo
df2906fc29 auto merge of #831 : SimonSapin/servo/newnewcss, r=metajack
I started this in a [separate repository](https://github.com/SimonSapin/servo-style), and imported it with [git-subtree](https://github.com/git/git/blob/master/contrib/subtree/git-subtree.txt) into `servo/src/components/script/style` after some Rust minor upgrades.

I move this into the script crate because it’s gonna both need stuff there (the content tree, for selector matching) and be needed by stuff there (the HTML parser calls the CSS parser). As far as I know, we can not have circular dependencies between crates.
2013-09-04 10:00:52 -07: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
Tetsuharu OHZEKI
17e888bfea Generate bindings for HTMLAudioElement, HTMLVideoElement. 2013-09-01 06:51:33 +09:00
Tetsuharu OHZEKI
a76e46416a Generate bindings for HTMLMediaElement. 2013-08-31 20:00:26 +09:00
Tetsuharu OHZEKI
d3108a898d Generate bindings for HTMLTrackElement. 2013-08-31 20:00:26 +09:00
Tetsuharu OHZEKI
9919bae897 Generate bindings for HTMLLabelElement. 2013-08-31 20:00:26 +09:00
Tetsuharu OHZEKI
f7bc8beb18 Generate bindings for HTMLLegendElement. 2013-08-31 20:00:26 +09:00
Tetsuharu OHZEKI
e55b3d6b86 Generate bindings for HTMLPreElement. 2013-08-31 20:00:25 +09:00
Tetsuharu OHZEKI
22e02b573d Generate bindings for HTMLTemplateElement. 2013-08-31 20:00:25 +09: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
Youngsoo Son
c9f9d29ff3 Generate bindings for HTMLFormElement. 2013-08-29 20:27:54 +09:00
Josh Matthews
8070f02e39 Generate bindings for Comment and DocumentType. 2013-08-28 20:31:30 -04:00
Josh Matthews
1eb5eeb630 Generate bindings for HTMLUnknownElement. 2013-08-28 19:51:07 -04:00
Josh Matthews
65c993e7e6 Generate bindings for HTMLSelectElement. 2013-08-28 19:41:08 -04:00
Josh Matthews
e26a541eb2 Generate bindings for HTMLParamElement. 2013-08-28 17:53:36 -04:00
Josh Matthews
8693459b28 Generate bindings for HTMLOutputElement. 2013-08-28 17:47:29 -04:00
Josh Matthews
cb0adec792 Generate bindings for HTMLOptionElement. 2013-08-28 17:36:37 -04:00
Josh Matthews
4e3b948a37 Generate bindings for HTMLOptGroupElement. 2013-08-28 17:25:37 -04:00
Josh Matthews
a2739fd196 Generate bindings for HTMLObjectElement. 2013-08-28 09:22:08 -04:00
Josh Matthews
4c92810291 Generate bindings for HTMLModElement. 2013-08-28 01:39:38 -04:00
Josh Matthews
0fae7afa54 Generate bindings for HTMLMeterElement. 2013-08-28 01:24:44 -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
540993f196 Generate bindings for HTMLFontElement.webidl 2013-08-26 16:05:11 -04:00
Josh Matthews
1b5f48abe1 Generate bindings for HTMLFieldSetElement. 2013-08-26 15:51:19 -04:00