Commit graph

303 commits

Author SHA1 Message Date
Ms2ger
1d27e96eca Return slices from get_attribute_parts. 2014-07-14 18:39:02 +02:00
James Graham
130cf760ee Make Element.remove_attribute take &str instead of DOMString 2014-07-13 18:31:46 +01:00
Patrick Walton
78eeb8e2e7 Revert "Implement Element.matches()."
This reverts commit b6edd5318f.
2014-07-09 14:58:38 -07:00
Tetsuharu OHZEKI
b6edd5318f Implement Element.matches(). 2014-07-05 23:27:40 +09:00
Manish Goregaokar
f5b5b337d3 Upgrade to latest Rust. 2014-06-27 18:50:32 -06:00
Tetsuharu OHZEKI
975fee82da Remove needless mutabilities from script crate. 2014-06-22 21:22:58 +09:00
Ms2ger
c90a8529c5 Use internal mutability for Attr::value. 2014-06-22 20:39:21 +09:00
Ms2ger
e09ed14362 Remove Reflectable::mut_reflector. 2014-06-13 19:19:58 +02:00
bors-servo
da668f53d9 auto merge of #2616 : Ms2ger/servo/attrvalue, r=jdm
Obsoletes #2073.
2014-06-13 11:41:13 -04:00
Ms2ger
b012c99e05 Implement parsed 'unsigned long' attributes.
This commit is partially based on earlier work by Bruno Abinader in #2073.
2014-06-13 14:13:29 +02:00
Ms2ger
972c69883e Implement Element.classList (partially fixes #1717). 2014-06-13 14:13:00 +02:00
Ms2ger
0803e5d0ac Implement support for parsed attributes.
This commit is heavily based on earlier work by Bruno Abinader in #2073.
2014-06-13 14:07:49 +02:00
bors-servo
897e39dcf3 auto merge of #2640 : Ms2ger/servo/derefmut, r=jdm 2014-06-11 17:19:51 -04:00
Ms2ger
34c42f6acb Use internal mutability for Document::idmap. 2014-06-11 22:39:52 +02:00
Bruno de Oliveira Abinader
95dcab66b2 Implement support for ParentNode's querySelectorAll 2014-06-10 12:11:20 -04:00
Ms2ger
37e9458514 Simplify Element::set_attribute for its remaining callers. 2014-06-08 17:09:22 +02:00
Ms2ger
efe69f3a82 Make Attr::value private. 2014-06-08 17:09:22 +02:00
Tetsuharu OHZEKI
a2a94d9421 Use RefCell for mutability of Element::style_attribute. 2014-06-08 23:36:38 +09:00
bors-servo
b52fbe0a5f auto merge of #2591 : brunoabinader/servo/document-queryselector-v3, r=jdm
This is a subtask for #2254 & #2576.

Spec:
http://dom.spec.whatwg.org/#dom-parentnode-queryselector
2014-06-06 17:22:25 -04:00
Tetsuharu OHZEKI
2aa1554b0c Remove needless '&self mut' from VirtualMethods trait. 2014-06-07 00:58:43 +09:00
Bruno de Oliveira Abinader
3601aebaa2 Implement querySelector for Element 2014-06-05 16:54:26 -07:00
Bruno de Oliveira Abinader
f0aadb790d Added ParentNode.querySelector skeleton 2014-06-05 16:54:26 -07:00
Bruno de Oliveira Abinader
8187916ee4 Implement TElement for JSRef<Element> 2014-06-05 16:54:26 -07:00
Jack Moffitt
629c4c6afe Upgrade Rust. 2014-06-05 09:58:59 -06:00
bors-servo
1d6a1fc066 auto merge of #2552 : saneyuki/servo/mut, r=jdm
related #2514
2014-06-02 14:58:27 -04:00
Tetsuharu OHZEKI
59ed832fa6 Remove needless '&mut self' from element.rs. 2014-06-03 03:27:28 +09:00
Ms2ger
97efd122a3 Rename BindingDeclarations to Bindings. 2014-06-02 19:48:42 +02:00
Tetsuharu OHZEKI
49362aa255 Remove HTMLMainElement.
https://github.com/mozilla/servo/issues/2541
2014-06-02 04:40:46 +09:00
Tetsuharu OHZEKI
b0239b5a5a Use Cell/RefCell for interior mutability of Element. 2014-05-30 03:53:07 +09:00
Tetsuharu OHZEKI
b22f6e1f81 Clean up AttributeHandlers::get_attribute() for JSRef. 2014-05-27 18:39:32 +09:00
Ms2ger
eaedeb07cb Update Rust. 2014-05-22 16:36:40 -06:00
Ms2ger
cb9d875aef Handle all attributes coming from the HTML parser (fixes #1976). 2014-05-13 12:28:15 +02:00
Ms2ger
479c927a39 Use Vec in GetClientRects. 2014-05-07 12:27:14 +02:00
Harry Maclean
6f310a5c20 Implement ChildNode.remove() 2014-05-05 14:04:25 -04:00
Ms2ger
25542e3f7e Replace most ~"string"s with "string".to_owned(). 2014-05-04 09:39:07 +02:00
Ms2ger
243814022e Replace all ~"" with "".to_owned(). 2014-05-03 22:17:45 +02:00
Josh Matthews
91278da9dd Address review comments. 2014-05-03 14:18:31 -04:00
Josh Matthews
46a33b4b38 Fix up the virtual method unsoundness. 2014-05-03 14:18:31 -04:00
Josh Matthews
0f2d0b1dc3 Address review comments. 2014-05-03 14:18:31 -04:00
Josh Matthews
7b3e6d1f21 Remove all root collections. 2014-05-03 14:18:31 -04:00
Josh Matthews
522d3f167b s/Unrooted/Temporary/g 2014-05-03 14:18:31 -04:00
Josh Matthews
109410900c Move all methods on T to JSRef<T> or JS<T> as appropriate. 2014-05-03 14:18:30 -04:00
Josh Matthews
7daa97c7e5 Remove abstract_self. 2014-05-03 14:18:30 -04:00
Josh Matthews
76783b029e Move WebIDL methods to traits implemented by JSRef types. 2014-05-03 14:18:30 -04:00
Josh Matthews
dfdda0098a Remove JS::get/get_mut to enforce sound rooting practices. 2014-05-03 14:18:30 -04:00
Josh Matthews
d7b96db33c Implement safe rooting strategy via Unrooted, Root, JSRef, and JS. 2014-05-03 14:18:30 -04:00
Josh Matthews
ffdc3f5b32 Turn on GC all the time. Fix rooting errors during parsing and storing timers. Fix borrow errors during tracing. 2014-05-03 14:18:30 -04:00
Tetsuharu OHZEKI
78856c87a4 Remove the 'pub use self::BindingDeclarations::*;' export. 2014-05-01 18:49:16 +09:00
Ms2ger
55ed05f2c7 Use Vec for the remaining ~[T]s in script. 2014-04-28 23:06:26 +02:00
Ms2ger
25357434e1 Make Element::attrs a Vec. 2014-04-28 23:06:25 +02:00