lpy
1abdd9c526
Force infallible binding methods to return void.( fixes #1933 )
2014-03-20 16:24:15 +08:00
bors-servo
7f188500a1
auto merge of #1915 : Ms2ger/servo/wrap-return-js, r=jdm
...
This lets us avoid the sketchy tricks in JS::new and Window::new, where we
kept an unsafe pointer to the native object across the Wrap call that
consumed the owned pointer.
2014-03-19 19:01:48 -04:00
bors-servo
26f9543e60
auto merge of #1910 : Ms2ger/servo/dead-arg-CGAbstractMethod, r=jdm
2014-03-19 18:37:51 -04:00
bors-servo
6270178628
auto merge of #1855 : lpy/servo/issue1842, r=jdm
...
see #1842
When I tried to use like `datalist.options[0].value`, it returned nothing. So is it implemented?
2014-03-19 18:04:57 -04:00
bors-servo
b345e9458a
auto merge of #1865 : lpy/servo/issue1843, r=jdm
...
see #1843
2014-03-19 17:02:05 -04:00
Lars Bergstrom
a6100563a6
Rust upgrade for new master rebase
2014-03-18 22:00:48 -05:00
Josh Matthews
64c0de9fe7
Warning police.
2014-03-18 09:31:22 -05:00
Josh Matthews
f279abbf9f
Remove all traces of Box representation from bindings. Work around file read runtime problem.
2014-03-18 09:30:35 -05:00
Lars Bergstrom
bbac8aa5c3
Rust upgrades
2014-03-18 09:30:35 -05:00
lpy
5915b061c5
Implement HTMLFieldSetElement.elements.( fixes #1843 )
2014-03-17 10:12:08 +08:00
Tetsuharu OHZEKI
620755b95f
Expose named constants in bindings.
2014-03-16 13:50:33 +09:00
bors-servo
082de0e252
auto merge of #1914 : evilpie/servo/constants, r=Ms2ger
...
Generated code looks like this:
```rust
pub mod UIEventConstants {
static SCROLL_PAGE_UP: i32 = -32768;
static SCROLL_PAGE_DOWN: i32 = 32768;
} // mod UIEventConstants
```
2014-03-15 17:56:23 -04:00
bors-servo
2d2fae5fc5
auto merge of #1894 : khodzha/servo/node_normalize, r=Ms2ger
...
To resolve issue #1823 (without DOM Range updates)
2014-03-15 06:14:14 -04:00
bors-servo
508fe57f8d
auto merge of #1907 : brunoabinader/servo/element-classname, r=Ms2ger
...
Removes stub implementation from HTMLElement & implements logic in Element WebIDL.
2014-03-15 05:47:18 -04:00
Tom Schuster
a8362e103a
Implement named constants in bindings
2014-03-14 18:15:49 +01:00
Shamir Khodzha
574fba310f
implemented Node.normalize()
2014-03-14 17:46:35 +04:00
Ms2ger
4ad3b6ccd1
Return a JS<T> from *Binding::Wrap rather than a JSObject.
...
This lets us avoid the sketchy tricks in JS::new and Window::new, where we
kept an unsafe pointer to the native object across the Wrap call that
consumed the owned pointer.
2014-03-14 13:06:51 +01:00
Ms2ger
b610ce0cd2
Remove a dead argument from CGAbstractMethod methods.
2014-03-13 23:07:39 +01:00
Bruno de Oliveira Abinader
6274ecba07
Implement Element.className
2014-03-13 13:48:24 -04:00
Bruno de Oliveira Abinader
1703c427bc
Implement Node.cloneNode
...
Spec:
http://dom.spec.whatwg.org/#dom-node-clonenode
Closes #1240 .
2014-03-13 12:34:31 -04:00
Ms2ger
c7e09c0570
Remove support for returning values through outparams.
2014-03-12 18:26:25 +01:00
bors-servo
b84bd4c894
auto merge of #1862 : Manishearth/servo/comparedoc-1794, r=Ms2ger
2014-03-12 09:07:38 -04:00
Manish Goregaokar
a2e15df4ab
Add compareDocumentPosition ( fixes #1794 ) to Node
2014-03-12 17:40:06 +05:30
lpy
a2189ee066
implement HTMLDataListElement.options
2014-03-12 11:29:58 +08:00
Ms2ger
dd160b6392
Merge CGThing.declare and CGThing.define.
...
This distincion is carried over from the C++ codegen, but it has no meaning
in Rust.
2014-03-11 21:22:43 +01:00
Ms2ger
06f9afdad5
Completely rewrite the code to convert JSVals to unions.
...
This code works correctly for the two unions currently in use, and raises
exceptions in codegen for most other cases. I will implement those cases when
the need arises.
2014-03-11 19:44:07 +01:00
Ms2ger
256a5cbf9f
Replace GetReflector by an implementation of ToJSValConvertible.
2014-03-11 17:23:48 +01:00
Ms2ger
d71e43e712
Remove a pointless argument to generate_file in GlobalGen.py.
2014-03-11 13:24:10 +01:00
Ms2ger
6c3f67d719
Remove some C++-related code in BindingGen.py.
2014-03-11 13:16:00 +01:00
Ms2ger
b32c157904
Reorder GetProtoObject.
2014-03-11 13:04:22 +01:00
Ms2ger
d08ad3c243
Cleanup and simplify CGImports.
2014-03-11 12:56:04 +01:00
Ms2ger
c97408969e
Cleanup the code in PrototypeList().
2014-03-11 12:45:43 +01:00
Ms2ger
f7a847c581
Stop pointlessly indenting GetProtoObject.
2014-03-11 12:15:54 +01:00
Ms2ger
d1f5b0971d
Remove some dead code from CGAbstractMethod._decorators.
2014-03-11 11:51:03 +01:00
Ms2ger
e54a17bfea
Remove unused CGAbstractStaticMethod class.
2014-03-11 11:46:04 +01:00
bors-servo
92f295bc07
auto merge of #1877 : Ms2ger/servo/dead-codegen-code, r=jdm
2014-03-10 15:37:51 -04:00
Ms2ger
e0e0ba4c93
Remove code from codegen that is nowhere close to working.
2014-03-10 20:10:03 +01:00
Ms2ger
58382471d5
Replace jsval_to_str and jsval_to_domstring with a FromJSValConvertible implementation.
2014-03-10 16:31:13 +01:00
Ms2ger
17411db8ca
Replace str_to_jsval and domstring_to_jsval by a ToJSValConvertible implementation.
2014-03-10 16:31:13 +01:00
Ms2ger
476699a114
Allow passing options to FromJSValConvertible::from_jsval.
2014-03-10 16:31:13 +01:00
Ms2ger
5f9e649491
Pass a JSContext to ToJSValConvertible::to_jsval.
2014-03-10 16:31:13 +01:00
bors-servo
52ab85c45d
auto merge of #1861 : Ms2ger/servo/split-JSValConvertible, r=jdm
...
Later, we'll want to implement variations of the conversion *from* JS, but
not the conversion *to* JS.
2014-03-10 11:01:52 -04:00
Ms2ger
9709dce07a
Use the JSVal member functions to replace JSVAL_IS_* and JSVAL_TO_*.
2014-03-09 18:52:05 +01:00
Ms2ger
84b0f45ed5
Use FooValue() functions.
2014-03-09 18:51:38 +01:00
Ms2ger
9fbfb1909c
Move JSVal into the jsval module.
2014-03-08 18:49:55 +01:00
Ms2ger
b18c5e518b
Split JSValConvertible into two traits.
...
Later, we'll want to implement variations of the conversion *from* JS, but
not the conversion *to* JS.
2014-03-08 11:13:08 +01:00
bors-servo
2238d81b53
auto merge of #1838 : brunoabinader/servo/htmlcollection-live, r=jdm
2014-03-07 15:43:24 -05:00
Ms2ger
9003d212b0
Remove a pointless argIsPointer local variable.
2014-03-07 20:14:54 +01:00
bors-servo
3a31372217
auto merge of #1850 : Ms2ger/servo/init-interface, r=jdm
...
This allows Rust to check that we've actually initialized all cases.
2014-03-07 11:34:26 -05:00
bors-servo
810699c47d
auto merge of #1851 : Ms2ger/servo/optional-jsval, r=jdm
...
Right now, we silently default to null, which is somewhat fishy.
2014-03-07 11:07:29 -05:00