Commit graph

241 commits

Author SHA1 Message Date
Manish Goregaokar
c397c5233d fix visibility warnings in script crate (#2044) 2014-04-06 02:53:55 +05:30
Ms2ger
31eee791dd Upgrade rust. 2014-04-04 20:10:32 +02:00
Ms2ger
038a195ead Move attributes-related functions onto JS<Element>. 2014-03-20 19:42:42 +01:00
Tetsuharu OHZEKI
0fccf5e386 Split TCast::to into TCast::to_unchecked and TCast::to. 2014-03-20 23:41:59 +09:00
Josh Matthews
64c0de9fe7 Warning police. 2014-03-18 09:31:22 -05:00
Josh Matthews
f279abbf9f Remove all traces of Box representation from bindings. Work around file read runtime problem. 2014-03-18 09:30:35 -05:00
Lars Bergstrom
bbac8aa5c3 Rust upgrades 2014-03-18 09:30:35 -05:00
Patrick Walton
3f8882450c script: Fix background color of Acid2.
There were two problems here: (1) we did not process style sheets with an
unexpected `rel` attribute but a correct MIME type; (2) we did not
consider `none` a valid value for the `background` property.
2014-03-13 18:08:50 -07:00
Ms2ger
a15cac53bc Don't use the Untraceable fields outside the module they're defined in.
This pattern will become illegal with the next Rust upgrade.
2014-03-12 14:30:19 +01:00
lpy
b13a7c73c5 Remove next_subpage_id argument from parse_html.(fixes #1801) 2014-03-04 08:40:48 +08:00
Josh Matthews
fa542e5de7 De-@mut the script crate. 2014-02-28 13:42:03 -05:00
hgentry
39e571ae4e Renamed HTMLIframeElementTypeId to HTMLIFrameElementTypeId 2014-02-27 15:35:27 -05:00
Ms2ger
2639e36c78 Remove the image loading workaround from the parser. 2014-02-25 19:04:47 +01:00
Josh Matthews
625325434b Implement JSManaged for DOM objects. 2014-02-24 15:16:42 -05:00
Youngmin Yoo
13f9a66632 Impl Basic support for object element 2014-02-20 17:31:16 +09:00
Youngmin Yoo
7b56e75adb Support base_url in stylesheet 2014-02-19 17:23:50 +09:00
lpy
cc77c29265 Change <em> and <strong> to be HTMLElement (fixes #1704) 2014-02-17 00:37:26 +08:00
Ms2ger
e45b7fa22d Use eq() and eq_slice() less, and map_default() more. 2014-02-16 10:24:24 +01:00
Adam Sinnett
ffcd3833de Change Text, Comment and ProcessingInstructions parent name from element to characterdata
All other node's parent type names reflect the actual type of the parent. This change extends that convention to the indicated nodes.

closes #1594
2014-02-15 13:52:33 -08:00
Ms2ger
59184bf6e1 Move DOMString into servo_util. 2014-02-14 12:48:51 +01:00
Ms2ger
0f5c9a35b9 Use DOMString more consistently. 2014-02-13 19:32:59 +01:00
Tetsuharu OHZEKI
d3cbdd8865 Reduce copying on parse_url() call sites. 2014-02-09 05:03:06 +09:00
bors-servo
fe1bb6a325 auto merge of #1608 : SimonSapin/servo/url, r=metajack
Align with spec terminology.
2014-02-07 14:31:35 -05:00
Bruno de Oliveira Abinader
a6c897e445 Implement document.characterSet
Spec:
http://dom.spec.whatwg.org/#dom-document-characterset

This is a sub-task for #1428.
2014-02-06 07:46:24 -04:00
Simon Sapin
33f8ef618b Rename make_url/current_url to parse_url/base_url, to align with spec terminology. 2014-02-01 17:51:15 +01:00
Bruno de Oliveira Abinader
56572a2814 Implement document.compatMode
Spec:
http://dom.spec.whatwg.org/#dom-document-compatmode

This is a sub-task for #1428.
2014-01-30 19:12:19 -04:00
Simon Sapin
624e2714d4 Move script::dom::namespace into util, in order to use it from style later. 2014-01-25 12:14:06 -08:00
Jack Moffitt
c443bcbfff Change get_attr() to get_attr_val_for_layout().
The old code was used by both layout and script, but was erroneously
borrowing for the layout case (which causes parallelism
problems). script now uses only `value_ref()` or `get_attribute()`, and
layout now has its own unsafe version that dances around the borrows of
`@mut Attr`.
2014-01-22 17:02:21 -07:00
Bruno de Oliveira Abinader
ef8ce13550 DocumentType does not need to know about quirks mode
TSIA. Closes #1498.
2014-01-15 16:07:11 -04:00
zmike
193b6d2635 add names for all servo spawned tasks
* add servo_util::task::{spawn_named,spawn_with_named} functions

* add name param for spawn_listener and spawn_conversation functions

this should resolve #1169
2014-01-13 13:12:48 -05:00
Jack Moffitt
a7ef1cd35e Upgrade to latest Rust. 2014-01-12 19:45:45 -07:00
Ms2ger
4c0e7dda7b Make Element::set_attribute not lower-case the name argument.
In particular, for SetAttributeNS, we should not change the case.
2014-01-04 18:06:57 +01:00
Ms2ger
95913d1fed Pass a Namespace to Element::get_attr. 2013-12-23 13:03:52 +01:00
Patrick Walton
be69a503fe script: Eliminate the phantom type in favor of just whitelisting methods
that layout can safely call.

This is simpler. Currently, the set of methods is not safe, but I plan
to lock it down more soon.
2013-12-17 18:07:12 -08:00
Patrick Walton
199ca33b72 script: Make trees less generic 2013-12-17 13:46:14 -08:00
Patrick Walton
971f77d2c6 layout: Stop going to the DOM for iframe sizes 2013-12-13 15:10:04 -08:00
Patrick Walton
21e8c72a75 constellation: Stop using futures for frame sizes.
This will allow us to stop going to the DOM in order to handle iframe
sizing. Instead we can just store the pipeline and frame IDs of iframes
inside the flow tree itself.
2013-12-13 10:43:27 -08:00
Simon Sapin
b290823f4d Fix #1264: support namespaced attribute selectors. 2013-12-10 17:53:12 +00:00
Ms2ger
dc6dbc63af Make the HTML parser parse into the document rather than an element.
This removes the duplicate html element.
2013-11-17 13:58:24 +01:00
Ms2ger
591de8cff5 Cleanup attribute setting functions a bit. 2013-11-13 17:38:08 +01:00
James Graham
15b9d4d199 Initial support for Attr and namespaces. 2013-11-12 17:39:04 +09:00
Ms2ger
a431202989 Rewrite Comment::new to current standards. 2013-11-02 22:10:07 +01:00
Ms2ger
da37fde44f Rewrite Text::new to current standards. 2013-11-02 21:55:36 +01:00
Ms2ger
8c388f6bd4 Rewrite DocumentType::new to current standards. 2013-11-02 21:34:44 +01:00
Ms2ger
655a2099ef Rename handle_newable_element to handle_element. 2013-11-02 21:14:15 +01:00
Ms2ger
7700a892fc Cleanup build_element_from_tag's signature. 2013-11-02 21:13:37 +01:00
Ms2ger
b4559334bb Introduce HTMLElement::new. 2013-11-02 21:05:37 +01:00
Ms2ger
4ac0dc1bfd Use HTMLHtmlElement::new in parse_html. 2013-11-02 20:45:22 +01:00
Ms2ger
375af8d437 Remove the now-unused handle_element macro. 2013-11-02 19:40:48 +01:00
Ms2ger
9e236a3dfd Introduce HTMLAnchorElement::new. 2013-11-02 18:49:44 +01:00