bors-servo
1f9de5ee2c
Auto merge of #5779 - nox:css-escape, r=Ms2ger
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5779 )
<!-- Reviewable:end -->
2015-04-25 05:42:41 -05:00
Anthony Ramine
7e7b421db9
Fix generation of static JS methods
...
They now take a global argument.
2015-04-25 12:23:39 +02:00
Ms2ger
4d41f1c991
Stop using the deprecated range function.
2015-04-22 20:26:40 +02:00
bors-servo
1f9c2f9b34
Auto merge of #3726 - ChrisParis:callback-constants, r=jdm
...
This addresses https://github.com/servo/servo/issues/3149 . The immediate purpose is to support the constants in NodeFilter. The changes mostly follow the current Gecko Codegen.py. The main gist is that the generation of certain code artifacts is now gated by hasInterfaceObject() or hasInterfacePrototypeObject(), rather than by isCallback().
2015-04-13 14:34:39 -05:00
Chris Paris
d2b0d5e040
Support callback interfaces with constants.
2015-04-11 09:34:44 -10:00
Josh Matthews
9619390ece
Clean up CGImports a bit more.
2015-04-10 10:31:44 -04:00
bors-servo
596091e32c
Auto merge of #5619 - jdm:bindglob, r=Manishearth
...
r? @Ms2ger
2015-04-10 04:41:46 -05:00
Josh Matthews
81ba72d99c
Remove glob import from generated bindings. Fixes #1788 .
2015-04-09 12:56:29 -04:00
Anthony Ramine
45b490c977
Generate from_layout_js() conversion methods
2015-04-09 16:54:53 +02:00
bors-servo
71e07013de
Auto merge of #5564 - Ms2ger:FromJSValConvertible, r=saneyuki
2015-04-08 06:09:56 -05:00
bors-servo
3fb666cf60
Auto merge of #5569 - Ms2ger:object, r=jdm
2015-04-07 13:32:02 -05:00
Ms2ger
5570bc3798
Implement support for object in IDL.
2015-04-07 17:05:27 +02:00
Anthony Ramine
fc31aef8b4
Add casts to Temporary types
2015-04-07 14:47:31 +02:00
Ms2ger
6b79d57920
When converting a non-finite float, throw the TypeError from the FromJSValConvertible implementation.
...
This removes some unnecessary custom code in the codegen and makes this
implementation follow the convention of having thrown an exception when
returning Err() from FromJSValConvertible.
2015-04-07 14:16:34 +02:00
Ms2ger
c2e81be8a5
Stop using int/uint in script.
2015-04-03 20:47:53 +02:00
Tetsuharu OHZEKI
4c96732077
Support the conversion behavior from ECMAScript value to restricted float.
...
This is defined by WebIDL spec:
- http://heycam.github.io/webidl/#es-float
- http://heycam.github.io/webidl/#es-double
2015-03-25 10:45:30 +09:00
Tetsuharu OHZEKI
f7fd34c0aa
Introduce Finite<T: Float> for restricted values defined in WebIDL.
2015-03-25 10:45:30 +09:00
Tetsuharu OHZEKI
2bf2c0020b
Add bindings support for unrestricted float/double values.
2015-03-25 10:45:30 +09:00
Tim Cuthbertson
0052a27b1a
Free the interface prototype array when Window is finalized
...
Fixes #1871
2015-03-20 22:14:14 +11:00
Ms2ger
bbbdb98897
Implement USVString.
2015-03-13 21:27:58 +01:00
Ms2ger
4157a2b02b
Update the WebIDL parser.
2015-03-13 21:27:58 +01:00
Ms2ger
6eb9607bb9
Don't define empty FooMethods traits.
2015-03-13 14:54:45 +01:00
Ms2ger
b213a80f80
Remove unused lifetime parameters to dictionaries.
...
They were used for Root members, but those no longer use lifetimes.
2015-03-13 14:49:36 +01:00
Chris Double
2af19b2675
Fix #2108 by renaming unwrap functions to native_from_reflector
...
As noted by @bholley. "unwrap" is confusing because we are
both stripping off wrappers *and* getting a native from a
reflector. Changing the "unwrap" usage to "native_from_reflector"
for clarity.
This renames 'unwrap' to 'native_from_reflector' and
'unwrap_jsmanaged' to 'native_from_reflector_jsmanaged'.
2015-03-12 19:15:12 +13:00
Josh Matthews
e2c4f5ed67
Move everything unrelated to the frame tree out of Page and into Document or Window. Reduce the API surface of Page to a bare minimum to allow for easier future removal.
2015-03-03 16:25:40 -05:00
Ms2ger
5a1e6b772c
Fix string default values.
2015-03-02 20:54:55 +01:00
bors-servo
184d32b519
auto merge of #5103 : Ms2ger/servo/from_actual, r=jdm
2015-02-28 13:33:49 -07:00
bors-servo
5eaf1144c3
auto merge of #5099 : Ms2ger/servo/exceptions, r=saneyuki
2015-02-28 11:09:55 -07:00
Ms2ger
ca21675359
Use the correct lifetime bounds for FooCast::from_actual.
2015-02-28 19:06:04 +01:00
Ms2ger
4873682a3c
Rename FailureUnknown to JSFailed.
2015-02-28 18:20:41 +01:00
bors-servo
1f53d30f85
auto merge of #5094 : chmanchester/servo/binarynames, r=jdm
2015-02-28 09:57:58 -07:00
Ms2ger
d24a948142
Fix a typo in argument_type.
2015-02-28 16:41:38 +01:00
Chris Manchester
c81f1cc541
Add support for BinaryName attribute to servo's codegen ( fixes #4435 ) r=jdm
2015-02-27 18:28:01 -08:00
Ms2ger
931d535f52
Mark some unused arguments as unused in bindings.
2015-02-22 17:54:08 +01:00
Ms2ger
c12b4029aa
Only unwrap the object once when finalizing.
...
Previously, we had 'value' and 'this' locals, both storing a pointer to the
DOM object, for no good reason.
2015-02-22 16:32:36 +01:00
bors-servo
172db80703
auto merge of #4882 : chmanchester/servo/stringifiers, r=Ms2ger
2015-02-20 13:01:02 -07:00
Chris Manchester
00f863b4fe
Add stringifier method support to CodegenRust.py ( fixes #1986 )
...
Add a stringifier to URLUtils (Location). (fixes #4605 )
wpt metadata updates for #4605
2015-02-20 11:35:16 -08:00
Ms2ger
6d30ec77c8
Replace uint/int by usize/isize in various places.
2015-02-20 14:45:47 +01:00
Ms2ger
9c863a6bd4
Pass isize to ptr.offset().
2015-02-20 14:45:47 +01:00
Ms2ger
a3fedee46e
Return usize from IDLInterface::get_prototype_depth.
...
It is used as an index into an array.
2015-02-20 14:45:47 +01:00
Ms2ger
21a1143dd1
Use u32 for reserved slot indices.
...
This is what the JSAPI expects.
2015-02-20 14:45:46 +01:00
Ms2ger
f75f279804
Stop casting the right-hand side of shifts to uint.
...
This is no longer required.
2015-02-20 14:45:46 +01:00
Ms2ger
81eab460b1
Use the try macro to initialize dictionaries.
2015-02-20 10:39:40 +01:00
Ms2ger
c58213b698
Remove the Option<Self> arguments from IDLInterface.
2015-02-19 09:52:48 +01:00
Prabhjyot Singh Sodhi
ca146ccfa6
Porting Gecko's JSToNativeConversionInfo changes to Servo's codegen
...
Fixes #4800
2015-02-18 19:37:17 +05:30
Ms2ger
0e11178d66
Replace the FooCast traits by structs.
...
This should allow us to remove most type annotations in the DOM.
2015-02-16 00:20:16 +01:00
Ms2ger
c54e79b2f2
Fix indentation in InheritTypes.
2015-02-16 00:19:18 +01:00
Ms2ger
746c3ebd7d
Improve the formatting for FromJSValConvertible implementations in UnionTypes.
2015-02-15 23:18:37 +01:00
Ms2ger
b5440a6257
Replace squirrel_away_unique by boxed::into_raw.
2015-02-12 22:01:06 +01:00
Ms2ger
147dadce89
Implement an Unrooted smart pointer to replace JS when it is not traced.
2015-02-06 12:33:32 +01:00