Commit graph

4860 commits

Author SHA1 Message Date
Ms2ger
20f649da71 Make get_nodes_under_mouse return Vec. 2014-04-28 23:06:26 +02:00
Ms2ger
558986c87e Make chain in eventdispatcher.rs use Vec. 2014-04-28 23:06:26 +02:00
Ms2ger
39ad37d8b6 Make open_elements in htmlserializer.rs use Vec. 2014-04-28 23:06:26 +02:00
Ms2ger
2a3b693054 Make PageTree::inner and PageTreeIterator::stack a Vec. 2014-04-28 23:06:26 +02:00
Ms2ger
ebe4b416f3 Make ScriptTask::mouse_over_targets use Vec. 2014-04-28 23:06:25 +02:00
Ms2ger
3ecfb9197f Remove unused support for passing extra arguments for timers. 2014-04-28 23:06:25 +02:00
Ms2ger
674fd893cb Make simple NodeLists use Vec. 2014-04-28 23:06:25 +02:00
Ms2ger
a1ec0cec11 Make TreeIterator::nodes a Vec. 2014-04-28 23:06:25 +02:00
Ms2ger
cc23a324e5 Make static HTMLCollections use Vec. 2014-04-28 23:06:25 +02:00
Ms2ger
251e22266e Make EventTarget::handlers store a Vec. 2014-04-28 23:06:25 +02:00
Ms2ger
25357434e1 Make Element::attrs a Vec. 2014-04-28 23:06:25 +02:00
Ms2ger
7346992981 Make Document::idmap store a Vec. 2014-04-28 23:06:25 +02:00
Ms2ger
50ab85f3ee Make ClientRectList::rects a Vec. 2014-04-28 23:06:24 +02:00
Matt Brubeck
c4f5ffb114 Remove now-redundant clone() 2014-04-28 11:01:08 -07:00
Matt Brubeck
9f76252928 Make ContainerLayer::first_child borrow temporary
Fixes a crash in ContainerLayer::remove_child (#1778).
2014-04-28 10:52:39 -07:00
bors-servo
0bfbe06f4b auto merge of #2194 : Ms2ger/servo/typeerror-2, r=jdm 2014-04-28 13:19:36 -04:00
bors-servo
6f5983ea07 auto merge of #2251 : SimonSapin/servo/rust-http-makefile, r=larsbergstrom
Update submodule for mozilla-servo/rust-http#15

r? @larsbergstrom
2014-04-28 12:04:40 -04:00
Ms2ger
505e7d472a Use more rustic names for ThrowTypeError and infrastructure. 2014-04-28 17:18:28 +02:00
Simon Sapin
172474439e Update submodule for mozilla-servo/rust-http#15 2014-04-28 15:52:09 +01:00
Ms2ger
7ff9fff421 Move ThrowTypeError to error.rs. 2014-04-28 16:50:53 +02:00
bors-servo
32bceb3ae7 auto merge of #2244 : Ms2ger/servo/optional-rewrite, r=jdm
This moves all handling of `isOptional` (except `type.isCallback()`, which I believe @jdm is rewriting in #2204) into one place.
2014-04-28 10:46:46 -04:00
bors-servo
abe50544a9 auto merge of #2248 : Manishearth/servo/unused_mut, r=jdm 2014-04-28 10:13:37 -04:00
Manish Goregaokar
4ddcc7ddc7 Remove unused_mut warning 2014-04-28 17:05:13 +05:30
bors-servo
6e9d8366b3 auto merge of #2245 : jgraham/servo/make_wptargs, r=Ms2ger 2014-04-28 06:07:35 -04:00
James Graham
76125bbd51 Allow passing extra args to wptrunner via an environment variable 2014-04-28 10:51:19 +01:00
Ms2ger
bfde816da0 Throw a TypeError when too few arguments are passed. 2014-04-28 11:29:46 +02:00
bors-servo
b6ed24621e auto merge of #2233 : campadrenalin/servo/initialize-event-bubbling-to-false, r=Ms2ger
Fixes #2183.
2014-04-28 04:55:31 -04:00
Ms2ger
095ed61c94 Use handleOptional for callback interface conversion. 2014-04-28 10:44:11 +02:00
Ms2ger
08fce9a321 Use handleOptional for dictionary conversion.
This does not have any effect, as isOptional is always False for dictionaries.
This change is made only for consistency.
2014-04-28 10:38:44 +02:00
bors-servo
9f742a9462 auto merge of #2237 : Ms2ger/servo/union-fromjsvalconvertible, r=jdm
With bonus codegen tests.
2014-04-28 04:01:36 -04:00
bors-servo
493aa2cdf3 auto merge of #2238 : mozilla/servo/rustup_20140410c, r=Ms2ger
r? @metajack 

Note that all pending submodule PRs must be landed before this should be given r+.
2014-04-27 18:52:39 -04:00
Lars Bergstrom
948daf2422 This batch of changes upgrades Servo to work with the Rust upgrade as of
April 10, 2014. The main changes are to privacy, to work around the
issues with incorrect bounds on the libstd `Arc<Mutex<T>>`, and the
various API changes strewn throughout the libraries.
2014-04-27 15:46:12 -05:00
Ms2ger
54d2e8e235 Use handleOptional for interface conversion. 2014-04-27 20:55:21 +02:00
Ms2ger
7c3480de60 Move optional/nullable handling out of CastableObjectUnwrapper.
This puts the code that wraps the type in Option<> and the code that wraps
the expression in Some() into the same if block, which should clarify the
code.
2014-04-27 19:44:09 +02:00
Ms2ger
89d4fac36e Use handleOptional for the enumeration conversion. 2014-04-26 18:32:45 +02:00
Ms2ger
13e26e0fe0 Use handleOptional for the DOMString conversion. 2014-04-26 17:29:30 +02:00
Ms2ger
b73a87e955 Use handleOptional for the union conversion.
Note that unions didn't handle optional arguments correctly before.
2014-04-26 17:22:07 +02:00
Ms2ger
1e2be02eb8 Use handleOptional for the 'any' conversion. 2014-04-26 17:15:28 +02:00
Ms2ger
b264c65f2e Implement a cleaner way of dealing with optional arguments in codegen and use it for primitive types.
This puts the Some constructor outside the match, making the actual
generating code independent of the optionality of the argument.
2014-04-26 17:10:59 +02:00
Ms2ger
35f6a24de7 Use FromJSValConvertible's nullable conversion code. 2014-04-26 16:42:39 +02:00
Ms2ger
9cc5460dd6 Implement FromJSValConvertible for union types. 2014-04-26 16:42:39 +02:00
Ms2ger
adcc7e694f Increase codegen test coverage. 2014-04-26 16:41:09 +02:00
Philip Horger
6312ff38dc #2183 Initialize Event::bubbles to false 2014-04-25 14:48:48 -07:00
bors-servo
4942cc76bd auto merge of #2231 : Ms2ger/servo/remove-holderType, r=jdm
It is always None.
2014-04-25 10:28:13 -04:00
Ms2ger
06df422718 Remove the holderType return value of getJSToNativeConversionTemplate.
It is always None.
2014-04-25 16:24:21 +02:00
bors-servo
691d82a92f auto merge of #2228 : Ms2ger/servo/object-unwrapping-expressionify, r=jdm 2014-04-25 09:19:14 -04:00
bors-servo
27798980bf auto merge of #2229 : Ms2ger/servo/getUnionAccessorSignatureType, r=jdm 2014-04-25 08:52:18 -04:00
Ms2ger
ee23074232 Remove unused function getUnionAccessorSignatureType. 2014-04-25 11:59:03 +02:00
Ms2ger
1d51e7d227 Rewrite dictionary codegen to initialize members directly into the struct. 2014-04-25 11:51:47 +02:00
Ms2ger
66c89f27aa Remove the 'retval' local variable from union TryConvertTo methods. 2014-04-25 11:33:18 +02:00