Commit graph

162 commits

Author SHA1 Message Date
Ms2ger
db3515240a Introduce HTMLMeterElement::new. 2013-11-01 22:36:17 +01:00
Ms2ger
5cfa70c769 Introduce HTMLModElement::new and use it for del/ins, not the non-existent mod. 2013-11-01 22:12:43 +01:00
Ms2ger
b20461f253 Introduce HTMLObjectElement::new. 2013-11-01 22:02:32 +01:00
Ms2ger
9fbc45ae9c Introduce HTMLOListElement::new. 2013-11-01 21:56:22 +01:00
Ms2ger
6c217c6872 Introduce HTMLOptionElement::new. 2013-11-01 21:52:43 +01:00
Ms2ger
21be4752a1 Introduce HTMLOptGroupElement::new. 2013-11-01 21:47:25 +01:00
Ms2ger
bc61e0348e Introduce HTMLOutputElement::new. 2013-11-01 21:39:55 +01:00
bors-servo
352acbb833 auto merge of #1163 : metajack/servo/kmc-rust-upgrade, r=kmcallister
Most work courtesy of @kmcallister.

I already reviewed Keegan's work, so just the last two commits need attention.
2013-10-31 16:34:14 -07:00
Keegan McAllister
cbcd04ffa8 Store the Page's final URL before parsing
We were parsing URLs like

    //bits.wikimedia.org/static-1.22wmf22/skins/vector/images/search-ltr.png?303-4

as local filenames because HTMLImageElement::update_image didn't have a
current_url to pass to make_url().
2013-10-31 14:58:55 -06:00
Keegan McAllister
e2b7885b73 fmt! -> format! 2013-10-31 14:58:55 -06:00
Ms2ger
78010f96bc Introduce HTMLParagraphElement::new. 2013-10-31 21:11:00 +01:00
Ms2ger
09b840c7ed Introduce HTMLParamElement::new. 2013-10-31 21:06:37 +01:00
Ms2ger
ec2fd955aa Introduce HTMLPreElement::new. 2013-10-31 21:00:19 +01:00
Ms2ger
d4d9395c90 Introduce HTMLProgressElement::new. 2013-10-31 20:47:57 +01:00
Ms2ger
e3ac4c9e00 Introduce HTMLQuoteElement::new. 2013-10-31 20:24:27 +01:00
Ms2ger
152f44db52 Introduce HTMLScriptElement::new. 2013-10-31 20:18:09 +01:00
Ms2ger
9cf5bbbfec Introduce HTMLSelectElement::new. 2013-10-31 20:11:52 +01:00
Ms2ger
c32ec7bf65 Introduce HTMLSourceElement::new. 2013-10-31 20:08:10 +01:00
Ms2ger
64de428d79 Introduce HTMLSpanElement::new. 2013-10-31 20:03:14 +01:00
Ms2ger
8cba205c82 Introduce HTMLStyleElement::new. 2013-10-31 19:58:42 +01:00
Ms2ger
bee5f1be11 Introduce HTMLTableElement::new. 2013-10-31 19:53:52 +01:00
Ms2ger
a54e8046bb Introduce HTMLTableCaptionElement::new. 2013-10-31 19:49:11 +01:00
Ms2ger
e578642278 Introduce HTMLTableColElement::new. 2013-10-31 19:20:37 +01:00
Ms2ger
3a6d6b9a71 Introduce HTMLTableSectionElement::new. 2013-10-31 17:02:13 +01:00
Ms2ger
e48a8d1e30 Introduce HTMLTemplateElement::new. 2013-10-31 16:57:36 +01:00
Ms2ger
8f2b9ac413 Introduce HTMLTextAreaElement::new. 2013-10-31 16:44:47 +01:00
Ms2ger
90fed8e53d Introduce HTMLTimeElement::new. 2013-10-31 16:40:02 +01:00
Ms2ger
9518754fae Introduce HTMLTitleElement::new. 2013-10-31 16:32:50 +01:00
Ms2ger
53562090dc Introduce HTMLTableRowElement::new. 2013-10-31 16:29:17 +01:00
Ms2ger
5f0e8471e3 Introduce HTMLTrackElement::new. 2013-10-31 16:11:27 +01:00
Ms2ger
82e3f71750 Introduce HTMLUListElement::new. 2013-10-31 16:09:50 +01:00
Ms2ger
c9bc5f6409 Introduce HTMLImageElement::new. 2013-10-31 16:01:54 +01:00
Ms2ger
7c17970c21 Introduce HTMLIFrameElement::new. 2013-10-31 15:53:43 +01:00
Ms2ger
8e5cd9f3a8 Introduce HTMLHeadingElement::new. 2013-10-31 15:41:35 +01:00
Ms2ger
a972c470a7 Introduce HTMLTable{Data,Header}CellElement::new. 2013-10-31 15:41:35 +01:00
Ms2ger
618447445f Introduce HTML{Audio,Video}Element::new. 2013-10-31 15:41:30 +01:00
Tetsuharu OHZEKI
98c77a86c4 HTMLDirectoryElement should be 'dir'. Fix #1159 2013-10-31 22:55:08 +09:00
Ms2ger
801348270c Address review comments and replace add_to_doc with node_removed and node_inserted functions. 2013-10-30 11:13:58 +01:00
Ms2ger
2ca1eede9a Implement insertBefore and reimplement appendChild. 2013-10-29 21:48:28 +01:00
bors-servo
2c3d5ec79f auto merge of #1138 : Ms2ger/servo/reflect-HTMLUnknownElement, r=jdm
@jdm: I think we should move nodes more in line with the rest of the DOM. How do you feel about something like this?
2013-10-29 12:17:44 -07:00
Patrick Walton
42092921c1 Optimize reflow by changing enums to traits and inlining more 2013-10-28 13:22:26 -07:00
Ms2ger
49b8c7c9b7 Implement HTMLUnknownElement::new. 2013-10-26 13:24:56 +02:00
Seo Sanghyeon
b2431912d3 Use the new style system
Credits to:
    Deokjin Kim
    Ilyong Cho
    Jaeman Park
    Junyoung Cho
    Ryan Choi
    Sangeun Kim
    Yongjin Kim
    Youngmin Yoo
    Youngsoo Son
2013-10-23 16:49:35 +09:00
Jack Moffitt
94202661c0 Update to latest Rust. 2013-10-21 17:38:34 -06:00
Marcos Caceres
faf53fd05c Implemention of HTMLMainElement 2013-10-18 22:03:58 +01:00
Keegan McAllister
5b1fede394 Factor out a convenience function load_whole_resource
Also remove an unnecessary spawn in js_script_listener, and remember the final
script URL after redirects.
2013-10-17 19:28:43 -07:00
bors-servo
ebe1c1353c auto merge of #1077 : kmcallister/servo/jsstr, r=jdm
This doesn't resolve the big questions of how Servo will represent strings; it's just about doing the conversion correctly for our existing types.
2013-10-17 16:34:30 -07:00
bors-servo
6db57e6f72 auto merge of #1075 : SimonSapin/servo/newnewcss, r=kmcallister
I believe this is all the preparatory work discussed in #1006 and #1057: The new 'style' crate implements the whole style system (including parsing, matching and cascading) and only depends on cssparser and util, so that gfx, script and main can all depend on it.

Next: porting the layout code to this. (Really, this time! I think.)
2013-10-16 15:37:42 -07:00
Keegan McAllister
279ae53b7b Pass scripts as ~str to support non-ASCII string literals etc.
Of course scripts on the Web are not always encoded as UTF-8 and we will have
to deal with that at some point.
2013-10-16 14:59:05 -07:00
Simon Sapin
62f1f03c16 Move Element::get_attr to a trait defined in util::tree
… and add a get_local_name() method to that trait.
2013-10-16 18:10:39 +01:00