Commit graph

5232 commits

Author SHA1 Message Date
Ms2ger
4fa12841e7 Don't initialize nullable interface arguments to None in codegen.
This allows Rust to check that we've actually initialized all cases.
2014-03-07 11:28:29 +01:00
lpy
0130392420 implement the setter for Node.nodeValue.(fixes #1825) 2014-03-07 13:11:02 +08:00
bors-servo
4a47145e69 auto merge of #1787 : hgentry/servo/mozilla-servo, r=jdm
Fixes #1779. Most of them were able to be replaced without issue.
2014-03-06 23:55:30 -05:00
hgentry
9b1213ed4d Removed glob imports from CodegenRust.py
Removed glob imports from CodegenRust.py (code review changes)

Removed many glob imports from CodegenRust.py (code review changes)

Removed glob imports from CodegenRust.py (cleanup)
2014-03-06 20:32:47 -05:00
Ms2ger
3a0b7fe621 Common up some more code in the handling of default values for primitive types. 2014-03-06 23:07:42 +01:00
Ms2ger
9fba4bcfba Simplify the code flow in the conversion to primitive types so that default values are handled together. 2014-03-06 22:56:10 +01:00
Ms2ger
922d191948 Common up some code in the conversion to nullable and non-nullable primitive types. 2014-03-06 22:52:57 +01:00
bors-servo
134d1f6fe3 auto merge of #1846 : Ms2ger/servo/non-null-default, r=jdm 2014-03-06 16:52:31 -05:00
Ms2ger
54a59b9d38 Avoid a type error with a non-null default value for an optional nullable string argument. 2014-03-06 22:42:26 +01:00
Ms2ger
716e1ce144 Avoid a type error with a non-null default value for an optional nullable primitive argument. 2014-03-06 22:26:12 +01:00
Ms2ger
8b5778993a Inline dataLoc in the one place that can see it and the one place that can't. 2014-03-06 22:20:47 +01:00
Ms2ger
eab9fd765c Add disabled tests for optional nullable arguments with non-null default values. 2014-03-06 22:18:49 +01:00
bors-servo
968a2e1735 auto merge of #1839 : Ms2ger/servo/optional-test, r=jdm 2014-03-06 14:52:38 -05:00
Ms2ger
9fe72eb379 Add interface codegen tests. 2014-03-06 19:05:14 +01:00
Ms2ger
48ebd2a5e3 Add tests for optional nullable arguments without default values. 2014-03-06 18:45:58 +01:00
Ms2ger
77f1224b24 Add some tests for string codegen. 2014-03-06 16:40:10 +01:00
bors-servo
3d8e469534 auto merge of #1835 : Ms2ger/servo/hasAttributes, r=metajack 2014-03-06 09:43:32 -05:00
Ms2ger
b1f2a104cc Remove Node.hasAttributes() method that was removed from the specification. 2014-03-06 10:26:04 +01:00
bors-servo
07b8c9bf88 auto merge of #1832 : ibnc/servo/fixed_display_lists_fixed, r=larsbergstrom
fixes #1831
2014-03-05 19:01:28 -05:00
bors-servo
6f43c8aaf6 auto merge of #1805 : pradeep90/servo/replaced-absolute-position, r=pcwalton
Add reftests for replaced and nested absolute flows.
2014-03-05 17:19:30 -05:00
Isabelle Carter
25a3918415 Children of fixed flows make into parent DL
fixes #1831
2014-03-05 15:13:10 -06:00
bors-servo
b9b4eebab5 auto merge of #1829 : Ms2ger/servo/page_from_context, r=jdm 2014-03-05 15:13:29 -05:00
Ms2ger
57be68ca8b Stop sticking a Page in the JSContext's private. 2014-03-05 21:04:57 +01:00
Ms2ger
14f679d455 Remove some dead code from CGCreateInterfaceObjectsMethod. 2014-03-05 20:01:58 +01:00
bors-servo
a2c611e8f1 auto merge of #1827 : Ms2ger/servo/Node, r=jdm 2014-03-05 14:01:33 -05:00
Ms2ger
efde051666 Add pointers to specific issues in node.rs. 2014-03-05 18:54:20 +01:00
Ms2ger
933f29f512 Match the spec more closely in Node.webidl. 2014-03-05 18:53:43 +01:00
Ms2ger
daf9cf8b9d Move Node::SetTextContent to a better place. 2014-03-05 18:53:20 +01:00
Ms2ger
22a6485708 Move Node::Children to a better place. 2014-03-05 18:52:49 +01:00
bors-servo
cfbcb5c62b auto merge of #1821 : Ms2ger/servo/result-JSValConvertible, r=jdm 2014-03-05 12:19:33 -05:00
bors-servo
81ef420e3f auto merge of #1819 : Ms2ger/servo/createHTMLCollection-JS, r=jdm 2014-03-05 10:19:31 -05:00
bors-servo
5eb7d1cf30 auto merge of #1814 : Ms2ger/servo/more-primitive-setters, r=jdm 2014-03-05 09:55:35 -05:00
bors-servo
da6a571f9e auto merge of #1811 : Ms2ger/servo/Wrap_, r=jdm 2014-03-05 09:31:44 -05:00
Ms2ger
7ecc39e9ba Rewrite Document::create_collection to work better with createNodeList. 2014-03-05 12:19:28 +01:00
Ms2ger
cd1d81e402 Pass a JS<Element> to the callback in createHTMLCollection. 2014-03-05 12:00:23 +01:00
bors-servo
ee549af3ae auto merge of #1756 : Manishearth/servo/nodelist-1744, r=Ms2ger
I haven't been able to test it yet (need to run a full build), but it looks like it should work.
2014-03-05 05:22:39 -05:00
bors-servo
b308c58f79 auto merge of #1817 : Manishearth/servo/patch-2, r=kmcallister 2014-03-04 17:22:44 -05:00
Manish Goregaokar
199dc55450 Add link to testing 2014-03-05 03:25:57 +05:30
bors-servo
bc2a79599a auto merge of #1816 : Ms2ger/servo/str_to_jsval-fail, r=jdm 2014-03-04 16:55:46 -05:00
Ms2ger
23d9a5af4b Fail if JS_NewUCStringCopyN returns null in str_to_jsval. 2014-03-04 22:49:25 +01:00
Ms2ger
81a9b54bf8 Return Result from JSValConvertible::from_jsval. 2014-03-04 22:44:55 +01:00
bors-servo
d9cf8cc4cc auto merge of #1812 : Ms2ger/servo/ResolveProperty, r=metajack 2014-03-04 14:49:40 -05:00
Ms2ger
1608f842e9 Rewrite the codegen for nullable primitives to use JSValConvertible. 2014-03-04 18:55:58 +01:00
bors-servo
60e438e03d auto merge of #1804 : kmcallister/servo/cpu-ref-test, r=metajack
Alternative to PR #1610.
2014-03-04 12:34:47 -05:00
Ms2ger
aa9a61a78c Add tests for optional primitive arguments. 2014-03-04 18:34:24 +01:00
bors-servo
a6410e86b3 auto merge of #1810 : Ms2ger/servo/test-binding, r=jdm 2014-03-04 12:05:57 -05:00
Ms2ger
d063601ba0 Implement support for returning nullable primitive types. 2014-03-04 17:30:19 +01:00
Ms2ger
3d28f31ea9 Use JSValConvertible::to_jsval from codegen. 2014-03-04 17:08:56 +01:00
Ms2ger
595cd96f24 Extend and update primitive conversions. 2014-03-04 17:01:30 +01:00
Ms2ger
6d3c0bf763 Reorder implementations in conversions.rs. 2014-03-04 16:38:05 +01:00