Guro Bokum
97714ec5ed
Firefox timeline integration #4957
2015-04-13 21:08:07 +07:00
bors-servo
b019df8927
Auto merge of #5633 - jdm:codegencleanup, r=Ms2ger
...
r? @Ms2ger
2015-04-12 03:37:05 -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
Ms2ger
d46db6d7f1
Resume tracing our collections of roots.
...
The second JS_SetExtraGCRootsTracer call clobbered the first, so
trace_collections was no longer being called.
2015-04-10 14:53:18 +02:00
bors-servo
596091e32c
Auto merge of #5619 - jdm:bindglob, r=Manishearth
...
r? @Ms2ger
2015-04-10 04:41:46 -05:00
Aneesh Agrawal
f3aee90b06
Add Rust code for RangeErrors.
...
Implementation is alongside that of TypeErrors.
Note: the jsapi codes are reused for our own purposes, namely
distinguishing error_numbers in the get_error_message callback. See
comments in components/script/dom/bindings/error.rs for details.
2015-04-10 01:49:14 -04: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
1c09557398
Auto merge of #5606 - Ms2ger:errors, r=jdm
2015-04-08 21:07:18 -05:00
bors-servo
9b7bf415d7
Auto merge of #5590 - nox:document-createattributens, r=Ms2ger
2015-04-08 18:55:19 -05:00
Ms2ger
f8dec0fe58
Adjust the assertions in throw_dom_exception.
2015-04-08 20:44:49 +02:00
bors-servo
71e07013de
Auto merge of #5564 - Ms2ger:FromJSValConvertible, r=saneyuki
2015-04-08 06:09:56 -05:00
Anthony Ramine
7b4f6126c8
Add script::dom::utils::validate_and_extract()
...
Accidentally fixes bugs about Document::createElementNS() where the
implementation of "validate and extract" used to check whether the local name
extracted from the qualified name was "xmlns" instead of the qualified name
itself.
2015-04-08 10:22:30 +02:00
Anthony Ramine
abc01d598a
Add script::dom::utils::validate_qualified_name()
2015-04-08 10:22:28 +02:00
bors-servo
2089c1f285
Auto merge of #5550 - aneeshusa:fix-issue-5540, r=jdm
...
Fixes issue #5540 .
As far as I can tell this is all that's necessary, but I'm new to Rust, so let me know if I missed something!
2015-04-07 23:04:12 -05:00
bors-servo
3fb666cf60
Auto merge of #5569 - Ms2ger:object, r=jdm
2015-04-07 13:32:02 -05:00
bors-servo
184d214e26
Auto merge of #5543 - jagtalon:jag/slashdot, r=jdm
...
Partially fixes #5504 .
Props to @ehegnes and @jdm for the help!
2015-04-07 11:56:50 -05:00
bors-servo
e57630711f
Auto merge of #5541 - nox:node-iterators-temporary, r=jdm
2015-04-07 10:22:10 -05:00
Ms2ger
5570bc3798
Implement support for object in IDL.
2015-04-07 17:05:27 +02:00
bors-servo
e521860a0e
Auto merge of #5490 - nox:namednodemap, r=jdm
2015-04-07 09:31:20 -05: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
e3683c8598
Merge the To/FromJSValConvertible implementations for Finite<T>.
2015-04-07 13:34:06 +02:00
Ms2ger
58a8cfda52
Drop the FromJSValConvertible implementation for interfaces.
...
It doesn't really fit in the design, and native_from_reflector_jsmanaged has
gained the usability improvements that it used to lack.
2015-04-07 13:11:45 +02:00
bors-servo
7f773d73c4
Auto merge of #5526 - frewsxcv:expect, r=jdm
...
None
2015-04-07 03:33:11 -05:00
Aneesh Agrawal
04468a53df
Don't consume self when calling root on a Temporary<T>.
...
Fixes issue #5540 .
2015-04-06 18:57:06 -04:00
Corey Farwell
2a01cec521
Utilize Option::expect
2015-04-06 14:06:05 -07:00
Jag Talon
6e013d3c9c
RootCollection: Start using RootedVec instead of SmallVec32.
...
dom/bindings/js.rs: Alphabetize `use`.
dom/bindings/js.rs: moved `unsafe` block to a let binding.
dom/bindings/trace.rs: rename alternate constructor of RootedVec.
dom/bindings/trace.rs: `new()` is now using `new_with_destination_address()` internally.
dom/bindings/js.rs: alphabetize imports.
2015-04-06 16:36:10 -04:00
Anthony Ramine
fbe2e4b626
Add dom::bindings::error::Error::InUseAttribute
2015-04-06 22:27:00 +02:00
bors-servo
3c5c2f416b
Auto merge of #5529 - ehegnes:issue-5521, r=jdm
...
Fixes #5521
2015-04-06 15:16:39 -05:00
bors-servo
8d1a6c45f6
Auto merge of #5503 - nox:cleanup-attributes, r=Manishearth
...
This makes all tests in attributes.html pass.
2015-04-06 12:36:09 -05:00
Anthony Ramine
c557736d26
Fix xml_name_type()
...
Names with a trailing colon are not qualified names.
2015-04-06 14:12:20 +02:00
thiagopnts
ea5c702f4a
Add devtools_chan method to GlobalRef and make new globals notifications work with nested workers
...
fixup! Add devtools_chan method to GlobalRef and make new globals notifications work with nested workers
fixup! Add devtools_chan method to GlobalRef and make new globals notifications work with nested workers
2015-04-06 00:54:16 -03:00
Eric Hegnes
e398725242
Consistently name enum members in dom::bindings::error::Error
...
Fixes #5521
2015-04-05 00:09:40 -04:00
bors-servo
036b3eaa04
auto merge of #5511 : Ms2ger/servo/int, r=jdm
2015-04-03 13:54:46 -06:00
Ms2ger
c2e81be8a5
Stop using int/uint in script.
2015-04-03 20:47:53 +02:00
Gilles Leblanc
ba36a108c1
Split out shared networking code into net_traits crate
...
Fixes #4476
2015-04-03 13:38:10 -04:00
Ms2ger
03c526dd20
Add more documentation about the DOM bindings.
...
Most of this documentation is based on
<https://developer.mozilla.org/en-US/docs/Mozilla/WebIDL_bindings >.
2015-04-03 11:33:53 +02:00
bors-servo
85808c1cdd
auto merge of #5425 : pcwalton/servo/optimize-rooting, r=Ms2ger
...
This was showing up very high in instruction-level profiling.
r? @jdm
2015-04-02 10:51:40 -06:00
Patrick Walton
d1c13faf4b
script: Optimize JS rooting to not move the entire Root
struct from
...
the stack to the return out-pointer.
This was showing up very high in instruction-level profiling.
2015-04-02 09:03:45 -07:00
Ms2ger
bc8ed81dc1
Use a larger small vector.
2015-04-02 09:47:30 +02:00
bors-servo
52cc63a262
auto merge of #5166 : JIoJIaJIu/servo/gc, r=jdm
2015-03-31 09:24:58 -06:00
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