Commit graph

1070 commits

Author SHA1 Message Date
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
Bruno de Oliveira Abinader
0bc59eb4de Implemented HTMLCollection::create_live 2014-03-26 09:01:58 -04:00
Bruno de Oliveira Abinader
904e464824 Added CollectionFilter, CollectionTypeId 2014-03-26 08:59:59 -04:00
Huon Wilson
94e4ab3eaf Remove some unnecessary transmutes.
These can either be done by implicit `&` -> `*` coercions, explicit `*`
-> `*` casts, or an explicit `&*x` `*` -> `&` re-borrow (which is still
unsafe, but significantly more controlled compared to a `transmute`).
2014-03-25 22:23:55 +11:00
bors-servo
3401a568f2 auto merge of #1966 : lpy/servo/issue1955, r=jdm
see #1955
2014-03-23 13:25:42 -04:00
Tetsuharu OHZEKI
cfb2af60d8 Annotate 'inline' to TCast::to/to_unchecked/from. 2014-03-23 23:12:12 +09:00
lpy
f6d912a94f Remove |unused| field from DOMClass.(fixes #1960) 2014-03-22 15:17:44 +08:00
lpy
2fe92bf7ba Make JS<T>::clone inline.(fixes #1955) 2014-03-22 14:57:55 +08:00
bors-servo
54da52fa77 auto merge of #1950 : Ms2ger/servo/nullable-string-with-null-default, r=jdm 2014-03-21 06:49:34 -04:00
Ms2ger
6ee2e29e62 Make unwrap and unwrap_object less generic. 2014-03-20 23:26:22 +01:00
Ms2ger
a4fc6961a8 Remove support for non-castable arguments. 2014-03-20 23:17:46 +01:00
Ms2ger
acffed2dcd Fix code generation for a null default value for nullable string arguments. 2014-03-20 22:51:31 +01:00
Ms2ger
077243caa7 Stop returning None from getRetvalDeclarationForType and update documentation. 2014-03-20 21:14:28 +01:00
Ms2ger
322893009d Make the result and result_fallible variables immutable. 2014-03-20 21:06:55 +01:00
Ms2ger
eec2e10d9c Remove the declareResult argument to CGCallGenerator's constructor. 2014-03-20 20:34:52 +01:00
Ms2ger
ad086ba7da Use CGIfElseWrapper in a few more places. 2014-03-20 20:32:16 +01:00
Ms2ger
904e8eaf17 Remove the codeToSetNull argument to wrapObjectTemplate. 2014-03-20 20:27:30 +01:00
Ms2ger
022dfa0a5e Remove the preSuccess and postSuccess arguments to getJSToNativeConversionTemplate.
They were used for unions until 06f9afdad5.
2014-03-20 20:16:39 +01:00
Ms2ger
4ba093939a Remove unused import of std::intrinsics::uninit. 2014-03-20 20:16:38 +01:00
Ms2ger
038a195ead Move attributes-related functions onto JS<Element>. 2014-03-20 19:42:42 +01:00
bors-servo
8317122068 auto merge of #1864 : saneyuki/servo/split_cast_to, r=jdm
fix #1836
2014-03-20 10:58:36 -04:00
Tetsuharu OHZEKI
0fccf5e386 Split TCast::to into TCast::to_unchecked and TCast::to. 2014-03-20 23:41:59 +09:00
bors-servo
2fb8c84bac auto merge of #1943 : lpy/servo/issue1933, r=jdm
see #1933
2014-03-20 10:19:30 -04:00
bors-servo
9e53b4d828 auto merge of #1945 : Ms2ger/servo/1196-isDefinitelyObject, r=jdm
... and fix nearby whitespace (fixes #1196).
2014-03-20 09:40:32 -04:00