Commit graph

843 commits

Author SHA1 Message Date
Josh Matthews
ca6cfb5bca Add support for trait-based virtual methods on Nodes, and use it for before_remove_attr and after_set_attr. 2014-04-10 10:27:28 +02:00
Ms2ger
ea2560ef20 Rename before_remove_attr and after_set_attr to allow reusing those names in the next commit. 2014-04-09 23:55:45 +02:00
bors-servo
d7f450dbd7 auto merge of #2045 : Manishearth/servo/pub-struct-2044, r=SimonSapin
See #2044
2014-04-09 10:40:26 -04:00
bors-servo
b9a7949ce4 auto merge of #2067 : saneyuki/servo/id, r=Ms2ger
Follow up #1917
(Derived from #2066)
2014-04-08 14:55:01 -04:00
Tetsuharu OHZEKI
25e6366efc Remove the needless comment for document.getElementById. 2014-04-09 03:20:47 +09:00
Ms2ger
ed18e4c948 Merge Attr::new_ns and Attr::new. 2014-04-08 20:17:15 +02:00
Ms2ger
d665ad5a17 Reimplement SetAttributeNS. 2014-04-08 20:17:15 +02:00
Ms2ger
bf73a47ce0 Reimplement SetAttribute. 2014-04-08 20:17:15 +02:00
Ms2ger
883d67882a Move SetAttributeNS onto JS<Element>. 2014-04-08 20:16:55 +02:00
Ms2ger
b19165e9e1 Move SetAttribute onto JS<Element>. 2014-04-08 20:16:55 +02:00
Ms2ger
3347c3ef80 Split out a do_set_attribute method. 2014-04-08 20:16:55 +02:00
bors-servo
6b1799caa3 auto merge of #2063 : lpy/servo/issue2059, r=Ms2ger
see #2059
2014-04-08 11:37:09 -04:00
bors-servo
aa36ae62cd auto merge of #2058 : jdm/servo/rmcrust, r=Ms2ger 2014-04-08 11:13:12 -04:00
bors-servo
51ff762bc5 auto merge of #1917 : lpy/servo/issue1822, r=jdm
see #1822
2014-04-08 10:49:14 -04:00
Josh Matthews
b87d351fee Remove all traces of C wrappers for SpiderMonkey class stubs. 2014-04-08 10:15:12 -04:00
lpy
77941dc996 Move Node.namespaceURI to Element.(fixes #2059) 2014-04-08 22:13:28 +08:00
lpy
50aea70f98 Make sure getElementById always returns the first element with the given ID in tree order.(fixes #1822) 2014-04-08 12:21:58 +08:00
bors-servo
7541b57526 auto merge of #2051 : Ms2ger/servo/more-xray, r=jdm
On top of #2050
2014-04-07 13:01:16 -04:00
bors-servo
a65ff6089a auto merge of #2048 : Ms2ger/servo/set_uint_attribute, r=jdm 2014-04-07 12:34:18 -04:00
bors-servo
f9c9e62340 auto merge of #2053 : Ms2ger/servo/createElementNS, r=jdm
#1391 rebased
2014-04-07 11:43:22 -04:00
Ms2ger
4e34fcd264 Remove trailing whitespace. 2014-04-07 11:41:58 +02:00
Daniel Glazman
4b0da08573 Implement Document.createElementNS. 2014-04-07 10:20:10 +02:00
Ms2ger
2e2a39b8d5 Remove some more xray code. 2014-04-06 23:08:54 +02:00
bors-servo
86c83f7bfc auto merge of #2050 : sankha93/servo/rmxray, r=Ms2ger 2014-04-06 17:04:26 -04:00
Sankha Narayan Guria
9a4bec304f Remove XRay related stuff from codegen (fixes #1936) 2014-04-07 02:27:53 +05:30
Ms2ger
a52cffebeb Use ToJSValConvertible to convert nullable enums to JSVal. 2014-04-06 19:51:12 +02:00
Ms2ger
ccaa46e4a3 Use ToJSValConvertible to convert enums to JSVal. 2014-04-06 19:42:39 +02:00
Ms2ger
9a909229e3 Remove EnumEntry, as Rust already provides O(1) access to the string length. 2014-04-06 19:16:24 +02:00
Ms2ger
3e0d4a2509 Move all the generated code for enums into CGEnum. 2014-04-06 19:06:58 +02:00
Ms2ger
bb732ef4e6 Introduce a set_uint_attribute method. 2014-04-06 14:19:30 +02:00
Manish Goregaokar
c397c5233d fix visibility warnings in script crate (#2044) 2014-04-06 02:53:55 +05:30
Manish Goregaokar
05e793f4fb make attr getters/setters case insensitive (#1962) 2014-04-05 14:11:33 +05:30
bors-servo
2a5f82a764 auto merge of #2032 : brunoabinader/servo/html-whitespace, r=Ms2ger
Specs:
http://dom.spec.whatwg.org/#concept-ordered-set-parser
http://encoding.spec.whatwg.org/#ascii-whitespace

This PR implements the HTMLSpaceCharSplits iterator, used to split a string in a subset of strings separated by valid HTML space characters. Its first usage is upon splitting ```class``` attribute values.

Closes #1840.
2014-04-05 04:04:34 -04:00
bors-servo
ef5567b585 auto merge of #1994 : hyunjunekim/servo/try, r=jdm
#1991
2014-04-04 20:01:47 -04:00
Ms2ger
fb09979502 Address review comments. 2014-04-04 21:30:33 +02:00
Ms2ger
31eee791dd Upgrade rust. 2014-04-04 20:10:32 +02:00
Bruno de Oliveira Abinader
943743195f Split class names using split_html_space_chars helper function 2014-04-04 09:08:36 -04:00
hyunjunekim
a344d465e8 documnet location 2014-04-04 21:18:30 +09:00
Tetsuharu OHZEKI
faea175505 Document::create_collection's callback should return a boolean instead of a node. (#2027) 2014-04-04 00:51:03 +09:00
lpy
d4d6fcb5f0 Get rid of match statements in layout queries in script_task 2014-04-02 01:28:44 +08:00
lpy
ac5a634082 Get rid of match statements in Layout queries.(fixes #2019) 2014-04-02 00:55:33 +08:00
Martin Robinson
1a8a3cc271 Store Window.active_timers in a HashMap
A HashMap allows easily looking up a timer and canceling it in
Window.ClearTimeout.

Fixes #1477.
2014-03-31 15:07:50 -07:00
bors-servo
0204745595 auto merge of #1952 : brunoabinader/servo/htmlcollection-live, r=Ms2ger
Closes #1662.

PS: Cached collections will be next step.
2014-03-26 11:46:47 -04:00
Bruno de Oliveira Abinader
b05e3666e4 Cleaned up recursive code in Node.clone 2014-03-26 09:49:08 -04:00
Bruno de Oliveira Abinader
990545c310 Implemented Node.adoptNode
Spec:
http://dom.spec.whatwg.org/#dom-document-adoptnode
2014-03-26 09:49:07 -04:00
Bruno de Oliveira Abinader
8a457a2caa Implemented Document.importNode
Spec:
http://dom.spec.whatwg.org/#dom-document-importnode
2014-03-26 09:49:07 -04:00
Bruno de Oliveira Abinader
3a8a0927e2 HTMLCollection::create returns live collections by default 2014-03-26 09:12:38 -04:00
Bruno de Oliveira Abinader
7f5b3690f3 Support live HTMLCollection for DataListElement.options 2014-03-26 09:12:08 -04:00
Bruno de Oliveira Abinader
9038f21026 Support live HTMLCollection for FieldSet.elements 2014-03-26 09:11:13 -04:00
Bruno de Oliveira Abinader
e95aa0febd Support live HTMLCollection for Document collections
The following interface methods now return live collections:
Document.{images,embeds,plugins,links,forms,scripts,anchors,applets}
2014-03-26 09:11:13 -04:00