Corey Farwell
d838fcce30
Remove some unnecessary uses of as_slice
...
For the majority of these cases, `as_slice` can be removed due to
`Deref`. In particular, `Deref` for:
* `String` -> `str`
* `Atom` -> `str`
The latter of those two requires, a bump of the locked `string-cache`
library
2015-03-29 14:42:19 -04:00
Mukilan Thiyagarajan
e8a1e9eabb
Implement RootedVec<T>
2015-03-29 11:58:25 +02:00
Thiago Pontes
1244f9e016
Notify devtools about new worker globals
2015-03-27 16:04:53 -03:00
Manish Goregaokar
1a952b935b
blanket impl jstraceable on *T
2015-03-26 22:42:47 +05:30
Tetsuharu OHZEKI
9cd1b2c158
Use Finite<T> for our dom code (excluding CanvasRenderingContext2D)
2015-03-25 10:45:30 +09: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
Josh Matthews
48b151948f
Fix double-panic when the script task panics.
2015-03-23 19:19:18 +01:00
Manish Goregaokar
3479d3fa7f
Replace unsafe_blocks by unsafe_code.
2015-03-21 10:27:32 +01:00
Ms2ger
1604515fd9
Fix various build warnings.
2015-03-20 17:57:49 +01:00
Tim Cuthbertson
0052a27b1a
Free the interface prototype array when Window is finalized
...
Fixes #1871
2015-03-20 22:14:14 +11:00
Mátyás Mustoha
d3199aef74
Implement gradient fill styles for canvas.
2015-03-19 15:59:08 +01:00
Ms2ger
5f15eb5fbf
Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev.
2015-03-18 13:18:31 -04:00
bors-servo
b8e87ea020
auto merge of #5217 : zslayton/servo/master, r=jdm
...
@jdm This initial version has a few outstanding issues that I wanted to invite input on. Specifically:
1. I had some difficulty finding a home for the `StorageType` enum. Structs defined outside of the `script` module don't seem to be able to use the `#[jstraceable]` annotation and the `net` module (where `StorageTask` lives) doesn't have access to `script`. Per Simon Sapin's suggestion, I worked around this temporarily by creating a `TraceableStorageType` stand-in struct that was traceable and which could be translated into a regular `StorageType` when being sent to the `StorageTask`. Unsure of the best way to resolve this hack. Thoughts?
2. Apart from the `Storage` constructor used in `Window::SessionStorage` and the new `Window::LocalStorage`, there's also a method called `Storage::Constructor`. I'm unclear on what (if anything) will actually invoke this, so I'm not sure which variant of `StorageType` to use here. I've temporarily created an `Unknown` variant of `StorageType` as a placeholder.
3. I discovered that the web platform tests directory's localStorage tests. Many of them now pass despite the configured expectation that they fail. However, several do not pass. Is there a good way for me to add debug logging or otherwise get a sense of which assertion failed / what went wrong?
Thanks for your continued help!
2015-03-16 14:48:51 -06:00
Zack Slayton
323baf92db
localStorage shim, fixes #5195
2015-03-16 13:33:55 -07:00
Ms2ger
2345f5461b
Null-check the result of JS_GetStringCharsAndLength.
2015-03-13 21:27:58 +01: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
Zack Slayton
08ac0766ed
Use new if let
syntax wherever possible. Fixes #4153 .
2015-03-10 09:18:55 -04:00
bors-servo
73e5bbec43
auto merge of #5054 : psdh/servo/scriptimplementation, r=jdm
...
Fixes #4089
2015-03-06 13:36:53 -07:00
Guro Bokum
bf26d61d5e
ScriptTask::mouse_over_targets is not traced #4985
2015-03-06 20:22:41 +07:00
Prabhjyot Singh Sodhi
64ba4a914e
implement missing steps from "prepare a script" algorithm
...
Fixes #4089
2015-03-06 03:16:59 +05:30
bors-servo
67548a6244
auto merge of #5127 : KiChjang/servo/partial-eq-jsref, r=Ms2ger
...
Fixes #5112 , #3960
2015-03-05 01:15:44 -07:00
Josh Matthews
c816975750
Documentation and cleanup.
2015-03-03 16:25:40 -05: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
Avi Weinstock
bcc27d9bd0
Replace borrow with borrow_for_gc_trace in JSTraceable::trace (Issue #4778 ).
2015-03-03 09:06:45 -05:00
Keith Yeung
a07a0cf39f
Added type parameter to PartialEq on JSRef ( fixes #5112 , #3960 )
2015-03-03 11:46:13 +08: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
62b2c65348
Add support for throwing TypeErrors from DOM implementations.
2015-02-28 18:20:42 +01:00
Ms2ger
fbf4d44674
Clarify the documentation for dom::bindings::error::Error variants.
2015-02-28 18:20:42 +01:00
Ms2ger
6e3c130e6c
Inline DOMException::new_from_error.
2015-02-28 18:20:42 +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
601e80fa43
Simplify RootCollection::unroot a bit.
2015-02-23 22:46:41 +01:00
Patrick Walton
55a0ee6ec7
script: Implement enough 2D canvas support to render basic SVGs such as the tiger.
2015-02-22 22:29:58 -05: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
Prabhjyot Singh Sodhi
cc48797999
Fixing Intermittent failure in pages with timers
...
Fixes #4923
2015-02-22 00:27:16 +05:30
Ms2ger
10ddb86d61
Remove the implementation of ToJSValConvertible for JS<T>.
...
It is unused and doesn't serve a purpose.
2015-02-21 11:09:06 +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