Commit graph

15183 commits

Author SHA1 Message Date
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
8859c617a8 webidl: Add test for interface and sequence in the same union 2016-01-15 14:20:23 +01:00
Emilio Cobos Álvarez
a76efa5eca webidl: Add test for interface sequences
Sequence interfaces return values worked before, but had no test.

Sequence interface arguments didn't work until the previous commit.
2016-01-15 14:20:22 +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
bors-servo
b26c7bd7ea Auto merge of #9295 - shssoichiro:move-animationstate, r=KiChjang
Move AnimationState to script_traits

Resolves #9223

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9295)
<!-- Reviewable:end -->
2016-01-14 06:30:05 +05:30
Joshua Holmer
83e66d6959 Move AnimationState to script_traits
Resolves #9223
2016-01-13 18:14:12 -05:00
bors-servo
3c6e16c9ad Auto merge of #9289 - mskrzypkows:move_FrameTreeId, r=KiChjang
Move FrameTreeId type to gfx_traits #9221

Fixes #9221.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9289)
<!-- Reviewable:end -->
2016-01-14 02:06:47 +05:30
bors-servo
a345608a94 Auto merge of #9273 - apopiak:fix_mach_test_error_9253, r=Wafflespeanut
add `faster` flag to `./mach test` command

in order to call `test-tidy` properly

close #9253

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9273)
<!-- Reviewable:end -->
2016-01-14 01:08:29 +05:30
bors-servo
897007f134 Auto merge of #9271 - apopiak:moveMozBrowserEvent_9225, r=KiChjang
Move `MozBrowserEvent` to `script_traits`

close #9225

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9271)
<!-- Reviewable:end -->
2016-01-14 00:10:48 +05:30
apopiak
4b773cefe9 move MozBrowserEvent to script_traits (+ documentation) 2016-01-13 17:48:50 +01:00
bors-servo
c13e84010d Auto merge of #9107 - ecoal95:webgl-uniforms-and-nits, r=simartin
webgl: Track the current program, implement some uniform functions, and nits

Was done while implementing sequence arguments.

Depends on #9056.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9107)
<!-- Reviewable:end -->
2016-01-13 22:14:59 +05:30
apopiak
f34d2a53c8 add faster flag to ./mach test command in order to call test-tidy properly 2016-01-13 16:48:38 +01:00
bors-servo
0b5dda3e9c Auto merge of #9275 - Ms2ger:extern-crate, r=larsbergstrom
Remove some unused extern crates.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9275)
<!-- Reviewable:end -->
2016-01-13 21:16:35 +05:30
Emilio Cobos Álvarez
4092ffd245 webgl: Check shader compilation status on use_program. 2016-01-13 15:28:36 +01:00
Emilio Cobos Álvarez
cf479a2b4f webgl: Fix draw_arrays_simple reftests
It used pre-shader translation syntax
2016-01-13 15:28:35 +01:00
Emilio Cobos Álvarez
48962bd6b6 webgl: Improve debugging
Now we can keep track of errors more easily.
2016-01-13 15:28:34 +01:00
Emilio Cobos Álvarez
5c23c3851a webgl: Remove old WebGLContextEvent idl
It's already defined in its own idl file.
2016-01-13 13:41:32 +01:00
Emilio Cobos Álvarez
e3532dda24 webgl: Check for bound element array buffer on DrawElements
And remove outdated TODOs
2016-01-13 13:41:32 +01:00
Emilio Cobos Álvarez
910b2260ab webgl: Check for pending current_program errors 2016-01-13 13:41:31 +01:00
Emilio Cobos Álvarez
221a583784 webgl: Track uniformlocation's program 2016-01-13 13:41:30 +01:00
Emilio Cobos Álvarez
532b53ddc9 webgl: Implement Uniform1f, Uniform1fv, and Uniform4f
I was going to implement Uniform4fv with sequences, (since it
practically implemented), but we can't until we support Float32Array
args because codegen doesn't know how tu differenciate between both.
2016-01-13 13:41:30 +01:00
Maciej Skrzypkowski
e52c53a7f2 Move FrameTreeId type to gfx_traits #9221 2016-01-13 13:36:28 +01:00
bors-servo
0e6bca8e8e Auto merge of #9272 - Ms2ger:dpi, r=ato
Support device-pixel-ratio in wpt reftests.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9272)
<!-- Reviewable:end -->
2016-01-13 16:46:52 +05:30
bors-servo
ee5aead60b Auto merge of #9282 - mattnenterprise:create-attribute-lowercase, r=nox
Making create attribute lowercase

This should fix #9252. I need some help getting the test case to work correctly. I get output that "TITLE" should FAIL, but it PASS. How do I make it to where it should PASS?

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9282)
<!-- Reviewable:end -->
2016-01-13 15:46:13 +05:30
Ms2ger
86d3c576f2 Remove some unused extern crates. 2016-01-13 09:37:28 +01:00
bors-servo
9c8382cbde Auto merge of #9277 - PythonNut:master, r=Wafflespeanut
Call WPT lint directly in tidy, fixes #9189

This should be fairly straightforward. :)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9277)
<!-- Reviewable:end -->
2016-01-13 12:39:24 +05:30
Matt McCoy
e684a20a1a Making create attribute lowercase 2016-01-12 21:03:50 -05:00
bors-servo
cbb5a0d872 Auto merge of #9279 - nerith:documentstate, r=nox
Move DocumentState to script_traits

Fixes #9224.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9279)
<!-- Reviewable:end -->
2016-01-13 02:58:32 +05:30
PythonNut
fcd33e2b70 Call WPT lint directly in tidy, fixes #9189 2016-01-12 21:13:54 +00:00
bors-servo
64b0e47c27 Auto merge of #9264 - waterlink:debian-linuxes-requirements-add-build-essential, r=jdm
Add build-essential to Debian based Linuxes' requirements

This is discovered here: #9262

Particularly `make` needs to be available.

Usually on developer workstation `build-essential` is already installed. That is why it wasn't there in requirements.

It occurs that if you use minimal ubuntu image for some kind of automated build, it doesn't have `build-essential` by default. So would be nice to still have `build-essential` there in the command.

--
Kind Regards,
Oleksii

--

/cc @jdm

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9264)
<!-- Reviewable:end -->
2016-01-13 00:57:13 +05:30
bors-servo
6736593c47 Auto merge of #9266 - frewsxcv:redundant-getter-tracking-issue, r=metajack
Link to tracking issue for redundant codegen getter

https://github.com/servo/servo/issues/5875

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9266)
<!-- Reviewable:end -->
2016-01-13 00:11:39 +05:30
Brandon Fairchild
d1186eda7a Move DocumentState to script_traits
Fixes #9224.
2016-01-12 13:30:33 -05:00
bors-servo
c97d557720 Auto merge of #9056 - ecoal95:sequence-args, r=nox
Implement WebIDL sequence arguments

And use it for `WebGLRenderingContext#uniform1fv`.

Blocked on https://github.com/servo/rust-mozjs/pull/226

Fixes #544

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9056)
<!-- Reviewable:end -->
2016-01-12 23:27:30 +05:30
Emilio Cobos Álvarez
bb98ac24f4 script: Remove some unused imports 2016-01-12 18:34:03 +01:00
Emilio Cobos Álvarez
1509d87545 codegen: Test WebIDL sequence arguments 2016-01-12 18:25:47 +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
bors-servo
6b1e73c1c0 Auto merge of #9240 - coder543:Refactoring, r=ecoal95
Refactor WebGLPaintTask to prevent creating extra IPC channels #9228

Closes #9228

I think this code will actually do what is desired now. I had to rebase off of master since WebGLPaintTask was renamed to WebGLPaintThread in a commit since last night.

I'm sorry this has been so much trouble so far. I'm still learning how things are done around here. I didn't even think about trailing whitespace, but now I know about the test-tidy tool.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9240)
<!-- Reviewable:end -->
2016-01-12 17:33:32 +05:30
Ms2ger
bfec0f7274 Move pixel_snapping_position_a.html to wpt reftests. 2016-01-12 13:02:54 +01:00
Ms2ger
3b9d165ee8 Move pixel_snapping_border_a.html to wpt reftests. 2016-01-12 13:02:52 +01:00
Ms2ger
198ee0f2c6 Support device-pixel-ratio in wpt reftests. 2016-01-12 13:02:50 +01:00
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