aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
* Implement gl.getParameter(gl.ALIASED_POINT_SIZE_RANGE)Anthony Ramine2018-03-242-1/+9
|
* Implement missing WebGLShader checksAnthony Ramine2018-03-242-66/+82
| | | | | Methods compileShader and getShaderParameter should emit an error when the shader has been deleted.
* Implement WebGLRenderingContextBase.getAttachedShadersAnthony Ramine2018-03-244-1/+30
|
* Implement missing checks in WebGLRenderingContext::GetBufferParameterAnthony Ramine2018-03-241-9/+29
|
* Auto merge of #20400 - servo:webgl, r=emiliobors-servo2018-03-242-1/+45
|\ | | | | | | | | | | | | | | Implement HTMLCanvasElement.toDataURL for WebGL canvas (fixes #19147) <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20400) <!-- Reviewable:end -->
| * Implement HTMLCanvasElement.toDataURL for WebGL canvas (fixes #19147)Anthony Ramine2018-03-232-1/+45
| |
* | Auto merge of #20404 - MaximilianDauner:issue_20392, r=jdmbors-servo2018-03-231-4/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GamepadButtonList::sync_from_vr should use more iterators #20392 <!-- Please describe your changes on the following line: --> Used the zip function instead of iterating over both vectors with an indexing variable and using unwrap. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #20392(github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because it says in the issue description no need for tests <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20404) <!-- Reviewable:end -->
| * | Used the zip function to iterate over both vectors simultaneously instead of anMaximilianDauner2018-03-231-4/+2
| | | | | | | | | | | | index variable and unwrapping the result.
* | | Use safe to_vec() for typed arrays in WebGL bindingsIgor Matuszewski2018-03-231-75/+21
| | |
* | | Add codegen test for function overloads taking typed array argsIgor Matuszewski2018-03-232-0/+6
| | |
* | | Unify argument auto rooting in codegenIgor Matuszewski2018-03-231-11/+8
| | |
* | | Fix indentationIgor Matuszewski2018-03-231-6/+6
| | |
* | | Fix sanity check in vertex attribIgor Matuszewski2018-03-231-16/+16
| | |
* | | Appease test-tidyIgor Matuszewski2018-03-232-4/+5
| | |
* | | Adapt uniform[fv] and similar to accept typed array argsIgor Matuszewski2018-03-234-376/+411
| | |
* | | Adapt function bodies for usage with typed array argsIgor Matuszewski2018-03-231-74/+54
| | |
* | | Change WebGL function signatures accepting typed arraysIgor Matuszewski2018-03-233-99/+66
|/ /
* | Auto merge of #20399 - Xanewok:remove-heap-handle-mut, r=jdmbors-servo2018-03-235-6/+25
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sanitize Heap::handle(_mut) functions <!-- Please describe your changes on the following line: --> Complementary to https://github.com/servo/rust-mozjs/pull/404. Removing `Heap::handle_mut` didn't warrant any changes on Servo side, and so the changes here are only to fix compilation with `Heap::handle` being now marked as `unsafe`. The main idea is that we can't hand out handles to heap values themselves, since they're not guaranteed to be rooted, but it's safe to do when we are - hence why the safe impl on `RootedTraceableBox<Heap<T>>` and why it's safe to use inside structs that hold a Heap and are `#[must_root]`. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because the compiler forces correctness here. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20399) <!-- Reviewable:end -->
| * Use unsafe Heap::handle wherever neededIgor Matuszewski2018-03-233-3/+12
| |
| * Add safe `handle` function for rooted heap valuesIgor Matuszewski2018-03-231-2/+12
| |
| * Use mozjs 0.4Igor Matuszewski2018-03-231-1/+1
| |
* | Implement OES_element_index_uint (fixes #20384)Anthony Ramine2018-03-235-4/+79
| |
* | Fix some more WebGL methodsAnthony Ramine2018-03-233-24/+12
|/
* Auto merge of #20389 - christianpoveda:issue_20350, r=jdmbors-servo2018-03-222-19/+12
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | getRandomValues uses ArrayBufferView now <!-- Please describe your changes on the following line: --> - Changed the `Crypto.webidl` file to allow getRandomValues to recieve an ArrayBufferView as input - Removed unnecesary checks from `crypto.rs` and did the necessary changes to match the `webidl` changes. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #20350 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20389) <!-- Reviewable:end -->
| * getRandomValues uses ArrayBufferView nowChristian Poveda2018-03-222-19/+12
| |
* | Auto merge of #20132 - nakul02:issue_19223, r=jdmbors-servo2018-03-2218-56/+77
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Profiler for blocked IpcReceiver::recv() <!-- Please describe your changes on the following line: --> Implements feature #19223 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #19223 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> WIP. @jdm - this is the new profiler : "Blocked at IPC Receive" Should I dig through all the calls to `ipc::channel` and replace them with this profiled `IpcReceiver`? ![screenshot from 2018-02-27 01-35-37](https://user-images.githubusercontent.com/5394361/36721061-b46edea4-1b5e-11e8-91d6-7faba742f237.png) <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20132) <!-- Reviewable:end -->
| * | Implements profiler for blocked recvNakul Jindal2018-03-2218-56/+77
| | |
* | | Implement gl.getParameter(gl.VIEWPORT)Anthony Ramine2018-03-221-1/+9
| | |
* | | Implement gl.getParameter(gl.CURRENT_PROGRAM)Anthony Ramine2018-03-221-0/+3
| | |
* | | Make some WebGL parameters non-optional (fixes #8753)Anthony Ramine2018-03-223-171/+121
| | | | | | | | | | | | | | | | | | | | | Those parameters aren't optional in the current spec. The test element-array-buffer-delete-recreate.html now fails because we don't actually implement gl.getParameter(gl.CURRENT_PROGRAM).
* | | Implement a missing INVALID_OPERATION check in DrawArraysAnthony Ramine2018-03-221-17/+21
| | |
* | | Fix an off-by-one error with limits.max_vertex_attribsAnthony Ramine2018-03-221-4/+4
|/ /
* | Auto merge of #20317 - gootorov:webgl-getFramebufferAttachmentParameter, r=jdmbors-servo2018-03-224-3/+132
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement WebGL getFrameBufferAttachmentParameter API <!-- Please describe your changes on the following line: --> Implementation of `getFramebufferAttachmentParameter` as in WebGL1 specification. Part of https://github.com/servo/servo/issues/10209. r? emilio or jdm. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20317) <!-- Reviewable:end -->
| * Implement WebGL getFramebufferAttachmentParameter APIIgor Gutorov2018-03-224-3/+132
| |
* | Auto merge of #20378 - Eijebong:parking_lot, r=jdmbors-servo2018-03-211-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | Bump parking_lot to 0.5 <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20378) <!-- Reviewable:end -->
| * | Bump parking_lot to 0.5Bastien Orivel2018-03-211-1/+1
| | |
* | | Auto merge of #20370 - christianpoveda:issue_20348, r=jdmbors-servo2018-03-213-11/+19
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Blobs support typed arrays now <!-- Please describe your changes on the following line: --> Blobs support typed arrays now, the relevant test were modified --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #20348 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20370) <!-- Reviewable:end -->
| * | Blobs support typed arrays nowChristian Poveda2018-03-213-11/+19
| | |
* | | Bump ipc-channel and bincodeBastien Orivel2018-03-212-3/+3
| |/ |/| | | | | This required bumping uuid too which unfortunately duplicated rand.
* | Simplify GetShaderPrecisionFormatIgor Gutorov2018-03-211-13/+20
| |
* | Simplify BufferParameterIgor Gutorov2018-03-201-9/+13
| |
* | Simplify VertexAttribOffsetIgor Gutorov2018-03-201-1/+5
| |
* | Simplify GetTexParameterIgor Gutorov2018-03-201-21/+29
|/
* Update steps with new specCYBAI2018-03-201-17/+21
|
* Make `type` argument as optional and ignore it in open methodCYBAI2018-03-202-17/+5
|
* Auto merge of #20314 - Xanewok:remove-heap-constructor, r=jdmbors-servo2018-03-185-24/+42
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't use unsafe Heap::new constructor <!-- Please describe your changes on the following line: --> Pulls https://github.com/servo/rust-mozjs/pull/398 and aims to close https://github.com/servo/rust-mozjs/issues/343. We can't convert from `JSVal` to `Heap<JSVal>` safely (due to GC barriers we can't move Heap value after changing its underlying value to something meaningful, e.g. non-null or non-undefined), so I decided to also wrap the Heap values in a Box (and in dictionaries in RootedTraceableBox, see https://github.com/servo/servo/pull/20265#issuecomment-372838379 and the issue for more details) in dictionaries. Since we allocate more to be safe, I think it'd be good to also do some sort of a JS perf run, if there is any to see if there's any significant overhead. r? @jdm --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because checking for not moving Heap after setting a value would require encoding a lot more info in type system (Heap) and I'm not sure how to do that and end up with an ergonomic and consistent API <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20314) <!-- Reviewable:end -->
| * Root `any` members in dictionariesIgor Matuszewski2018-03-164-19/+39
| |
| * Root JS object members in dictionariesIgor Matuszewski2018-03-162-6/+4
| |
| * Use mozjs 0.3 fork without Heap::newIgor Matuszewski2018-03-161-1/+1
| |
* | alias some euclid typesPaul Rouget2018-03-162-5/+6
| |