Daniel Robertson
72f74c27ef
Convert unwrapping of ByteString to self.0
...
Convert traditional unwrapping of the tuple struct ByteString to
self.0
2016-02-18 19:41:03 +00:00
Daniel Robertson
d23774d3d7
Add methods to move ByteStrings underlying bytes
...
Add methods to move the underlying Vec<u8> for ByteString.
2016-02-18 19:40:24 +00:00
zakorgyula
6d6f23a69d
Fixing issue with uniontypes not created with primitive types
...
refer to #9531
2016-02-18 11:08:47 +01:00
bors-servo
07cb6599d0
Auto merge of #9678 - servo:debug-enum, r=KiChjang
...
Derive the Debug trait for WebIDL-generated enums.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9678 )
<!-- Reviewable:end -->
2016-02-18 09:51:57 +05:30
Kamil Muszyński
c6dfd7e2fa
Issue #9561 continued - renamed *_thread_source to *_task_source in global.rs and related files
2016-02-17 21:25:12 +01:00
Ms2ger
eede44984d
Derive the Debug trait for WebIDL-generated enums.
2016-02-17 16:29:37 +01:00
bors-servo
61f09cce4e
Auto merge of #9676 - nox:domexception, r=KiChjang
...
Support [ExceptionClass]
Use it on DOMException.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9676 )
<!-- Reviewable:end -->
2016-02-17 18:51:47 +05:30
Anthony Ramine
c21a164396
Support [ExceptionClass]
...
Use it on DOMException.
2016-02-17 13:58:58 +01:00
Guillaume Gomez
bb9d3692c7
All interface objects now share the same hasInstance
2016-02-17 06:37:52 +01:00
Daniel Robertson
7a35ef1555
Implement RootedReference<T> for Option<JS<T>>
...
An implementation of RootedReference for Option<JS<T>> based off of
other implementations of RootedReference for Option wrapped types.
2016-02-16 22:40:03 +00:00
Anthony Ramine
ae72d1dfbe
Fix the hasInstance hook of interface objects
...
Step 2 wasn't properly implemented.
2016-02-15 14:12:53 +01:00
Anthony Ramine
e08f817058
Clean up imports in script::dom::bindings::interface
2016-02-15 12:59:18 +01:00
Peter
f374e8f420
#9640 Refactor: Move util::str::is_token to script::dom::bindings::str
2016-02-14 22:47:52 +00:00
Kamil Muszyński
076cc409e6
Issue #9561 Renamed *_thread_source to *_task_source and ThreadSource to TaskSource
2016-02-14 15:29:44 +01:00
Anthony Ramine
55dcee94be
Bump heapsize to 0.3
2016-02-13 11:13:19 +01:00
Anthony Ramine
71092e142d
Bump js to get fix from servo/rust-mozjs#237
2016-02-12 17:15:09 +01:00
Josh Matthews
2796a4dfa8
Compile raw inline event handlers lazily. Resolves #8489 .
2016-02-11 15:44:52 +01:00
bors-servo
3d63f09361
Auto merge of #9244 - paulrouget:securitychange, r=jdm
...
mozbrowsersecuritychange event
Fixes #8544
No test yet. Is there a way to mock a https connection?
Also, I wish I could use the `HTTPSState` enum instead of a `String` when calling `trigger_mozbrowser_event` (https://github.com/servo/servo/compare/master...paulrouget:securitychange?expand=1#diff-30a18e04d7e0b66aafdf192e416cad44R306 ) but that would require `constellation_msg.rs` to know about `HTTPSState`, which is defined in `document.rs`, which would add a dependency to `components/msg`. I could define `HTTPSState` somewhere else maybe? Or maybe it's fine to use a `String`. But then, should I use the HTTPSState strings (`"modern/deprecated/none"`) or the mozbrowser strings (`"secure/insecure/broken"`) (as it is now)
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9244 )
<!-- Reviewable:end -->
2016-02-09 13:00:29 +05:30
Paul Rouget
63519c3574
mozbrowsersercuritychange event
2016-02-09 08:05:17 +01:00
Alexander Lopatin
2be49404be
Fix #9508 : Beautify our union enums constructors
2016-02-07 02:55:21 +03:00
Anthony Ramine
cb5cd8d881
Say farewell to in-tree HeapSizeOf
2016-02-04 22:03:32 +01:00
Emilio Cobos Álvarez
a1c830f1c1
Update rust-selectors
...
This commits updates rust-selectors to use the generic parser, and as
such it moves the element state into the style crate.
2016-02-03 02:11:31 +01:00
Anthony Ramine
436b952298
Bump Rust to 2016-01-31 nightly
2016-02-01 17:55:36 +01:00
bors-servo
46b3eb6535
Auto merge of #9208 - jmr0:master-img, r=asajeffrey
...
Use image metadata to lay out images
Fixes #7047 .
cc: @jdm
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9208 )
<!-- Reviewable:end -->
2016-01-31 01:18:41 +05:30
jmr0
167ffa7a95
adding image metadata notification capabilities to image cache
2016-01-29 20:54:49 -05:00
Shing Lyu
18b6817755
Add mach test-webidl command
2016-01-29 21:12:21 +08:00
bors-servo
a75f2cecda
Auto merge of #9419 - psdh:includeTypedef, r=nox
...
generate typedefs in CodegenRust.
fixes #9384
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9419 )
<!-- Reviewable:end -->
2016-01-26 22:10:57 +05:30
Prabhjyot Singh Sodhi
d6df844ae5
generate typedefs in CodegenRust
2016-01-26 21:56:44 +05:30
Michael Rosenberg
1f45eaf8a1
For WebIDL interfaces without constant members, do not generate a 'Constant' module
2016-01-26 02:50:53 -05:00
bors-servo
e74021baaa
Auto merge of #9400 - jmr0:websocket, r=nox
...
Fixing websocket subprotocol header validation
This takes care of https://github.com/servo/servo/issues/9034
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9400 )
<!-- Reviewable:end -->
2016-01-25 17:01:39 +05:30
jmr0
3846cf52f2
fix websocket header validation, ensure it meets token requirements, add
...
testing
2016-01-24 18:31:21 -05:00
nxnfufunezn
e54929b4d7
Move ConstantSpec, NonNullJSNative and define_constants from utils to interface
2016-01-24 20:37:30 +05:30
Prabhjyot Singh Sodhi
da40818f25
update to latest tests
2016-01-21 21:53:47 +05:30
Ms2ger
ff0992401e
Remove remaining reference to the long-disappeared JSRef type.
2016-01-18 09:52:23 +01:00
bors-servo
2f0daa1d47
Auto merge of #9304 - ecoal95:sequence-in-unions, r=nox
...
webidl: Implement sequences in unions
Unblocks #9053
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9304 )
<!-- Reviewable:end -->
2016-01-17 17:19:49 +05:30
Emilio Cobos Álvarez
950821989f
webidl: Refactor isSequence in getJSToNativeConversionInfo
...
That way it does not depend on the return value for the same type.
This hopefully makes the code more clear, and avoids errors if something
changes in the future (for example, we could want to pass slices as
sequence arguments).
2016-01-15 14:30:38 +01:00
Emilio Cobos Álvarez
3327f00bce
script: Implement FromJSValConvertible for Root<T>
2016-01-15 13:51:05 +01:00
Emilio Cobos Álvarez
4ad1a8ddcc
webidl: Implement sequences in unions
...
Unblocks #9053
2016-01-15 13:42:08 +01:00
apopiak
e2160cb3b9
implement NonCallbackInterfaceObjectClass::as_jsclass()
2016-01-14 12:51:16 +01:00
Emilio Cobos Álvarez
bb98ac24f4
script: Remove some unused imports
2016-01-12 18:34:03 +01:00
Emilio Cobos Álvarez
92d7c49924
codegen: Implement WebIDL sequence arguments
2016-01-12 18:25:46 +01:00
Emilio Cobos Álvarez
2f1eee599c
codegen: Move conversion behaviour to a common function
2016-01-12 18:25:46 +01:00
bors-servo
e977a6e69a
Auto merge of #8954 - nox:protochain, r=Ms2ger
...
Fix prototypes of interface objects (fixes #2665 )
Callback interface objects' (i.e. NodeFilter's) prototype is now Object instead of
Function and non-callback interface objects' their proper ancestor, starting with
the Function prototype.
The function do_create_interface_objects is removed in favour of 4 functions:
create_callback_interface_object, create_interface_prototype_object,
create_noncallback_interface_object and create_named_constructors.
While this increases the amount of codegen'd code, this greatly improves the
readability of the code involved in this part of DOM, instead of having one function
doing 4 different things. We can always find a more adequate abstraction later.
NativeProperties and everything related to the interface objects have been removed
from the utils module.
Fixes #2665 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8954 )
<!-- Reviewable:end -->
2016-01-12 22:00:47 +05:30
Anthony Ramine
d13da7d9b3
Fix prototypes of interface objects ( fixes #2665 )
2016-01-12 17:15:44 +01:00
Anthony Ramine
a1a9021aad
Inline create_constructor into its only caller
2016-01-12 17:15:43 +01:00
Anthony Ramine
e1d3e4df2a
Describe non-callback interface objects with JSClass structures
...
JS_NewFunction doesn't allow us to set the prototype of the interface objects.
2016-01-12 17:15:42 +01:00
Anthony Ramine
2957a56ad3
Bump rust-mozjs to 4d384eb830d8d53c1268e8ce37135ace21e41721
2016-01-12 17:15:29 +01:00
bors-servo
53c4a782a0
Auto merge of #9255 - ckimes89:remove-globalfield, r=nox
...
Remove global fields from DOM objects
Fixes #9227
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9255 )
<!-- Reviewable:end -->
2016-01-12 18:32:37 +05:30
Anthony Ramine
d52948dfd5
Introduce Descriptor.prototypeDepth
2016-01-12 12:34:18 +01:00
Anthony Ramine
7693aecf15
Use the object prototype for callback interface objects
...
window.NodeFilter's prototype should be the object prototype.
2016-01-12 12:34:18 +01:00